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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The resource name.
baProxyUriarrayOutput only. The hostname or ip address of the exposed AGM endpoints, used by BAs to connect to BA proxy.
createTimestring (google-datetime)Output only. The time when the instance was created.
descriptionstringOptional. The description of the ManagementServer instance (2048 characters or less).
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.
managementUriobjectOutput only. The hostname or ip address of the exposed AGM endpoints, used by clients to connect to AGM/RD graphical user interface and APIs. (id: ManagementURI)
networksarrayOptional. VPC networks to which the ManagementServer instance is connected. For this version, only a single network is supported. This field is optional if MS is created without PSA
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.
updateTimestring (google-datetime)Output only. The time when the instance was updated.
workforceIdentityBasedManagementUriobjectOutput only. The hostnames of the exposed AGM endpoints for both types of user i.e. 1p and 3p, used to connect AGM/RM UI. (id: WorkforceIdentityBasedManagementURI)
workforceIdentityBasedOauth2ClientIdobjectOutput only. The OAuth client IDs for both types of user i.e. 1p and 3p. (id: WorkforceIdentityBasedOAuth2ClientID)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, managementServersIdGets details of a single ManagementServer.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists ManagementServers in a given project and location.
createinsertprojectsId, locationsIdmanagementServerId, requestIdCreates a new ManagementServer in a given project and location.
deletedeleteprojectsId, locationsId, managementServersIdrequestIdDeletes a single ManagementServer.
ms_compliance_metadataexecprojectsId, locationsIdReturns the Assured Workloads compliance metadata for a given project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
managementServersIdstring
projectsIdstring
filterstring
managementServerIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring

SELECT examples

Gets details of a single ManagementServer.

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

INSERT examples

Creates a new ManagementServer in a given project and location.

INSERT INTO google.backupdr.management_servers (
data__description,
data__labels,
data__type,
data__networks,
data__etag,
projectsId,
locationsId,
managementServerId,
requestId
)
SELECT
'{{ description }}',
'{{ labels }}',
'{{ type }}',
'{{ networks }}',
'{{ etag }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ managementServerId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes a single ManagementServer.

DELETE FROM google.backupdr.management_servers
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND managementServersId = '{{ managementServersId }}' --required
AND requestId = '{{ requestId }}';

Lifecycle Methods

Returns the Assured Workloads compliance metadata for a given project.

EXEC google.backupdr.management_servers.ms_compliance_metadata 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"projectId": "{{ projectId }}"
}';