backups
Creates, updates, deletes, gets or lists a backups
resource.
Overview
Name | backups |
Type | Resource |
Id | google.managedidentities.backups |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The unique name of the Backup in the form of projects/{project_id}/locations/global/domains/{domain_name}/backups/{name} |
createTime | string | Output only. The time the backups was created. |
labels | object | Optional. Resource labels to represent user provided metadata. |
state | string | Output only. The current state of the backup. |
statusMessage | string | Output only. Additional information about the current status of this backup, if available. |
type | string | Output only. Indicates whether it’s an on-demand backup or scheduled. |
updateTime | string | Output only. Last update time. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | backupsId, domainsId, projectsId | Gets details of a single Backup. |
list | SELECT | domainsId, projectsId | Lists Backup in a given project. |
create | INSERT | domainsId, projectsId | Creates a Backup for a domain. |
delete | DELETE | backupsId, domainsId, projectsId | Deletes identified Backup. |
patch | UPDATE | backupsId, domainsId, projectsId | Updates the labels for specified Backup. |
SELECT
examples
Lists Backup in a given project.
SELECT
name,
createTime,
labels,
state,
statusMessage,
type,
updateTime
FROM google.managedidentities.backups
WHERE domainsId = '{{ domainsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new backups
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.managedidentities.backups (
domainsId,
projectsId,
labels
)
SELECT
'{{ domainsId }}',
'{{ projectsId }}',
'{{ labels }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: labels
value: object
- name: createTime
value: string
- name: updateTime
value: string
- name: type
value: string
- name: state
value: string
- name: statusMessage
value: string
UPDATE
example
Updates a backups
resource.
/*+ update */
UPDATE google.managedidentities.backups
SET
labels = '{{ labels }}'
WHERE
backupsId = '{{ backupsId }}'
AND domainsId = '{{ domainsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified backups
resource.
/*+ delete */
DELETE FROM google.managedidentities.backups
WHERE backupsId = '{{ backupsId }}'
AND domainsId = '{{ domainsId }}'
AND projectsId = '{{ projectsId }}';