{
"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
{
"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
A UUID4 string that uniquely identifies the Spec.
Show child attributes
The resource name of the instance on which the database is created. Format: instances/{instance}
The name of the database to create.
table is the name of the table, if it is not empty, Bytebase should create a table after creating the database. For example, in MongoDB, it only creates the database when we first store data in that database.
character_set is the character set of the database.
collation is the collation of the database.
cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <
owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <
The environment resource. Format: environments/prod where prod is the environment resource ID.
Show child attributes
The list of targets. Multi-database format: [instances/{instance-id}/databases/{database-name}]. Single database group format: [projects/{project}/databaseGroups/{databaseGroup}].
The resource name of the sheet. Format: projects/{project}/sheets/{sheet}
The resource name of the release. Format: projects/{project}/releases/{release}
Type is the database change type.
DATABASE_CHANGE_TYPE_UNSPECIFIED, MIGRATE, SDL If set, a backup of the modified data will be created automatically before any changes are applied.
Whether to use gh-ost for online schema migration.
Show child attributes
The list of targets. Multi-database format: [instances/{instance-id}/databases/{database-name}]. Single database group format: [projects/{project}/databaseGroups/{databaseGroup}].
The resource name of the sheet. Format: projects/{project}/sheets/{sheet}
The format of the exported file.
FORMAT_UNSPECIFIED, CSV, JSON, SQL, XLSX The zip password provide by users. Leave it empty if no needs to encrypt the zip file.
Format: users/[email protected]
Show child attributes
The environments deploy order.
Was this page helpful?