Skip to main content

management_servers

Creates, updates, deletes, gets or lists a management_servers resource.

Overview

Namemanagement_servers
TypeResource
Idgoogle.backupdr.management_servers

Fields

NameDatatypeDescription
namestringOutput only. Identifier. The resource name.
descriptionstringOptional. The description of the ManagementServer instance (2048 characters or less).
baProxyUriarrayOutput only. The hostname or ip address of the exposed AGM endpoints, used by BAs to connect to BA proxy.
createTimestringOutput only. The time when the instance was created.
etagstringOptional. Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.
labelsobjectOptional. Resource labels to represent user provided metadata. Labels currently defined: 1. migrate_from_go= If set to true, the MS is created in migration ready mode.
managementUriobjectManagementURI for the Management Server resource.
networksarrayRequired. VPC networks to which the ManagementServer instance is connected. For this version, only a single network is supported.
oauth2ClientIdstringOutput only. The OAuth 2.0 client id is required to make API calls to the BackupDR instance API of this ManagementServer. This is the value that should be provided in the 'aud' field of the OIDC ID Token (see openid specification https://openid.net/specs/openid-connect-core-1_0.html#IDToken).
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
statestringOutput only. The ManagementServer state.
typestringOptional. The type of the ManagementServer resource.
updateTimestringOutput only. The time when the instance was updated.
workforceIdentityBasedManagementUriobjectManagementURI depending on the Workforce Identity i.e. either 1p or 3p.
workforceIdentityBasedOauth2ClientIdobjectOAuth Client ID depending on the Workforce Identity i.e. either 1p or 3p,

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, managementServersId, projectsIdGets details of a single ManagementServer.
listSELECTlocationsId, projectsIdLists ManagementServers in a given project and location.
createINSERTlocationsId, projectsIdCreates a new ManagementServer in a given project and location.
deleteDELETElocationsId, managementServersId, projectsIdDeletes a single ManagementServer.

SELECT examples

Lists ManagementServers in a given project and location.

SELECT
name,
description,
baProxyUri,
createTime,
etag,
labels,
managementUri,
networks,
oauth2ClientId,
satisfiesPzi,
satisfiesPzs,
state,
type,
updateTime,
workforceIdentityBasedManagementUri,
workforceIdentityBasedOauth2ClientId
FROM google.backupdr.management_servers
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new management_servers resource.

/*+ create */
INSERT INTO google.backupdr.management_servers (
locationsId,
projectsId,
description,
labels,
type,
networks,
etag
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ description }}',
'{{ labels }}',
'{{ type }}',
'{{ networks }}',
'{{ etag }}'
;

DELETE example

Deletes the specified management_servers resource.

/*+ delete */
DELETE FROM google.backupdr.management_servers
WHERE locationsId = '{{ locationsId }}'
AND managementServersId = '{{ managementServersId }}'
AND projectsId = '{{ projectsId }}';