curl --request GET \
--url https://api.example.com/v1/projects/{project}/plans/{plan}{
"name": "<string>",
"state": "STATE_UNSPECIFIED",
"issue": "<string>",
"rollout": "<string>",
"title": "<string>",
"description": "<string>",
"specs": [
{
"id": "<string>",
"createDatabaseConfig": {
"target": "<string>",
"database": "<string>",
"table": "<string>",
"characterSet": "<string>",
"collation": "<string>",
"cluster": "<string>",
"owner": "<string>",
"environment": "<string>"
},
"changeDatabaseConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"release": "<string>",
"type": "DATABASE_CHANGE_TYPE_UNSPECIFIED",
"ghostFlags": {},
"enablePriorBackup": true,
"enableGhost": true
},
"exportDataConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"format": "FORMAT_UNSPECIFIED",
"password": "<string>"
}
}
],
"creator": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"planCheckRunStatusCount": {},
"deployment": {
"environments": [
"<string>"
],
"databaseGroupMappings": [
{
"databaseGroup": "<string>",
"databases": [
"<string>"
]
}
]
}
}Retrieves a deployment plan by name. Permissions required: bb.plans.get
curl --request GET \
--url https://api.example.com/v1/projects/{project}/plans/{plan}{
"name": "<string>",
"state": "STATE_UNSPECIFIED",
"issue": "<string>",
"rollout": "<string>",
"title": "<string>",
"description": "<string>",
"specs": [
{
"id": "<string>",
"createDatabaseConfig": {
"target": "<string>",
"database": "<string>",
"table": "<string>",
"characterSet": "<string>",
"collation": "<string>",
"cluster": "<string>",
"owner": "<string>",
"environment": "<string>"
},
"changeDatabaseConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"release": "<string>",
"type": "DATABASE_CHANGE_TYPE_UNSPECIFIED",
"ghostFlags": {},
"enablePriorBackup": true,
"enableGhost": true
},
"exportDataConfig": {
"targets": [
"<string>"
],
"sheet": "<string>",
"format": "FORMAT_UNSPECIFIED",
"password": "<string>"
}
}
],
"creator": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"planCheckRunStatusCount": {},
"deployment": {
"environments": [
"<string>"
],
"databaseGroupMappings": [
{
"databaseGroup": "<string>",
"databases": [
"<string>"
]
}
]
}
}OK
The name of the plan.
plan is a system generated ID.
Format: projects/{project}/plans/{plan}
The state of the plan.
STATE_UNSPECIFIED, ACTIVE, DELETED The issue associated with the plan. Can be empty. Format: projects/{project}/issues/{issue}
The rollout associated with the plan. Can be empty. Format: projects/{project}/rollouts/{rollout}
The title of the plan.
The description of the plan.
The deployment specs for the plan.
Show child attributes
Format: users/[email protected]
The status count of the latest plan check runs. Keys are:
Show child attributes
Show child attributes
Was this page helpful?