Tool: ListBackupPlanAssociations
Lists all BackupPlanAssociations. BPAs link a specific workload to a BackupPlan to enable protection.
The following sample demonstrate how to use curl to invoke the ListBackupPlanAssociations MCP tool.
| Curl Request |
|---|
curl --location 'https://backupdr.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "ListBackupPlanAssociations", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
Request message for List BackupPlanAssociation
ListBackupPlanAssociationsRequest
| JSON representation |
|---|
{ "parent": string, "pageSize": integer, "pageToken": string, "filter": string } |
| Fields | |
|---|---|
parent |
Required. The project and location for which to retrieve backup Plan Associations information, in the format |
pageSize |
Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. |
pageToken |
Optional. A token identifying a page of results the server should return. |
filter |
Optional. Filtering results |
Output Schema
Response message for List BackupPlanAssociation
ListBackupPlanAssociationsResponse
| JSON representation |
|---|
{
"backupPlanAssociations": [
{
object ( |
| Fields | |
|---|---|
backupPlanAssociations[] |
The list of Backup Plan Associations in the project for the specified location. If the |
nextPageToken |
A token identifying a page of results the server should return. |
unreachable[] |
Locations that could not be reached. |
BackupPlanAssociation
| JSON representation |
|---|
{ "name": string, "resourceType": string, "resource": string, "backupPlan": string, "createTime": string, "updateTime": string, "state": enum ( |
| Fields | |
|---|---|
name |
Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId} |
resourceType |
Required. Immutable. Resource type of workload on which backupplan is applied |
resource |
Required. Immutable. Resource name of workload on which the backup plan is applied. The format can either be the resource name (e.g., "projects/my-project/zones/us-central1-a/instances/my-instance") or the full resource URI (e.g., "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance"). |
backupPlan |
Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId} |
createTime |
Output only. The time when the instance was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The time when the instance was updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
state |
Output only. The BackupPlanAssociation resource state. |
rulesConfigInfo[] |
Output only. The config info related to backup rules. |
dataSource |
Output only. Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource} |
backupPlanRevisionId |
Output only. The user friendly revision ID of the Example: v0, v1, v2, etc. |
backupPlanRevisionName |
Output only. The resource id of the Format: |
Union field resource_properties. Properties of the protected Google Cloud resource. resource_properties can be only one of the following: |
|
cloudSqlInstanceBackupPlanAssociationProperties |
Output only. Cloud SQL instance's backup plan association properties. |
filestoreInstanceBackupPlanAssociationProperties |
Output only. Filestore instance's backup plan association properties. |
alloydbClusterBackupPlanAssociationProperties |
Output only. AlloyDB cluster's backup plan association properties. |
Timestamp
| JSON representation |
|---|
{ "seconds": string, "nanos": integer } |
| Fields | |
|---|---|
seconds |
Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be between -62135596800 and 253402300799 inclusive (which corresponds to 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z). |
nanos |
Non-negative fractions of a second at nanosecond resolution. This field is the nanosecond portion of the duration, not an alternative to seconds. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be between 0 and 999,999,999 inclusive. |
RuleConfigInfo
| JSON representation |
|---|
{ "ruleId": string, "lastBackupState": enum ( |
| Fields | |
|---|---|
ruleId |
Output only. Backup Rule id fetched from backup plan. |
lastBackupState |
Output only. The last backup state for rule. |
lastBackupError |
Output only. google.rpc.Status object to store the last backup error. |
lastSuccessfulBackupConsistencyTime |
Output only. The point in time when the last successful backup was captured from the source. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Status
| JSON representation |
|---|
{ "code": integer, "message": string, "details": [ { "@type": string, field1: ..., ... } ] } |
| Fields | |
|---|---|
code |
The status code, which should be an enum value of |
message |
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the |
details[] |
A list of messages that carry the error details. There is a common set of message types for APIs to use. An object containing fields of an arbitrary type. An additional field |
Any
| JSON representation |
|---|
{ "typeUrl": string, "value": string } |
| Fields | |
|---|---|
typeUrl |
Identifies the type of the serialized Protobuf message with a URI reference consisting of a prefix ending in a slash and the fully-qualified type name. Example: type.googleapis.com/google.protobuf.StringValue This string must contain at least one The prefix is arbitrary and Protobuf implementations are expected to simply strip off everything up to and including the last All type URL strings must be legal URI references with the additional restriction (for the text format) that the content of the reference must consist only of alphanumeric characters, percent-encoded escapes, and characters in the following set (not including the outer backticks): In the original design of |
value |
Holds a Protobuf serialization of the type described by type_url. A base64-encoded string. |
CloudSqlInstanceBackupPlanAssociationProperties
| JSON representation |
|---|
{ "instanceCreateTime": string } |
| Fields | |
|---|---|
instanceCreateTime |
Output only. The time when the instance was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
FilestoreInstanceBackupPlanAssociationProperties
| JSON representation |
|---|
{ "instanceCreateTime": string } |
| Fields | |
|---|---|
instanceCreateTime |
Output only. The time when the instance was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
AlloyDBClusterBackupPlanAssociationProperties
| JSON representation |
|---|
{ "clusterUid": string } |
| Fields | |
|---|---|
clusterUid |
Output only. The cluster UID of the AlloyDB cluster. |
State
Enum for State of BackupPlan Association
| Enums | |
|---|---|
STATE_UNSPECIFIED |
State not set. |
CREATING |
The resource is being created. |
ACTIVE |
The resource has been created and is fully usable. |
DELETING |
The resource is being deleted. |
INACTIVE |
The resource has been created but is not usable. |
UPDATING |
The resource is being updated. |
LastBackupState
Enum for LastBackupState
| Enums | |
|---|---|
LAST_BACKUP_STATE_UNSPECIFIED |
State not set. |
FIRST_BACKUP_PENDING |
The first backup is pending. |
PERMISSION_DENIED |
The most recent backup could not be run/failed because of the lack of permissions. |
SUCCEEDED |
The last backup operation succeeded. |
FAILED |
The last backup operation failed. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌