curl --request POST \
--url https://api.example.com/v1/projects/{project}/plans \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"state": "STATE_UNSPECIFIED",
"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>"
}
}
],
"deployment": {
"environments": [
"<string>"
],
"databaseGroupMappings": [
{
"databaseGroup": "<string>",
"databases": [
"<string>"
]
}
]
}
}
'{
"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>"
]
}
]
}
}Creates a new deployment plan. Permissions required: bb.plans.create
curl --request POST \
--url https://api.example.com/v1/projects/{project}/plans \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"state": "STATE_UNSPECIFIED",
"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>"
}
}
],
"deployment": {
"environments": [
"<string>"
],
"databaseGroupMappings": [
{
"databaseGroup": "<string>",
"databases": [
"<string>"
]
}
]
}
}
'{
"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>"
]
}
]
}
}The project id.
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 title of the plan.
The description of the plan.
The deployment specs for the plan.
Show child attributes
Show child attributes
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?