curl --request GET \
--url https://api.example.com/v1/projects/{project}/plans/{plan}/planCheckRuns{
"planCheckRuns": [
{
"name": "<string>",
"type": "TYPE_UNSPECIFIED",
"status": "STATUS_UNSPECIFIED",
"target": "<string>",
"sheet": "<string>",
"results": [
{
"status": "ADVICE_LEVEL_UNSPECIFIED",
"title": "<string>",
"content": "<string>",
"code": 123,
"sqlSummaryReport": {
"statementTypes": [
"<string>"
],
"affectedRows": "<string>",
"changedResources": {
"databases": [
{
"name": "<string>",
"schemas": [
{
"name": "<string>",
"tables": [
{
"name": "<string>",
"tableRows": "<string>",
"ranges": [
{
"start": 123,
"end": 123
}
]
}
],
"views": [
{
"name": "<string>",
"ranges": [
{
"start": 123,
"end": 123
}
]
}
],
"functions": [
{
"name": "<string>",
"ranges": [
{
"start": 123,
"end": 123
}
]
}
],
"procedures": [
{
"name": "<string>",
"ranges": [
{
"start": 123,
"end": 123
}
]
}
]
}
]
}
]
}
},
"sqlReviewReport": {
"startPosition": {
"line": 123,
"column": 123
},
"endPosition": {
"line": 123,
"column": 123
}
}
}
],
"error": "<string>",
"createTime": "2023-11-07T05:31:56Z"
}
]
}Lists plan check runs for a deployment plan. Permissions required: bb.planCheckRuns.list
curl --request GET \
--url https://api.example.com/v1/projects/{project}/plans/{plan}/planCheckRuns{
"planCheckRuns": [
{
"name": "<string>",
"type": "TYPE_UNSPECIFIED",
"status": "STATUS_UNSPECIFIED",
"target": "<string>",
"sheet": "<string>",
"results": [
{
"status": "ADVICE_LEVEL_UNSPECIFIED",
"title": "<string>",
"content": "<string>",
"code": 123,
"sqlSummaryReport": {
"statementTypes": [
"<string>"
],
"affectedRows": "<string>",
"changedResources": {
"databases": [
{
"name": "<string>",
"schemas": [
{
"name": "<string>",
"tables": [
{
"name": "<string>",
"tableRows": "<string>",
"ranges": [
{
"start": 123,
"end": 123
}
]
}
],
"views": [
{
"name": "<string>",
"ranges": [
{
"start": 123,
"end": 123
}
]
}
],
"functions": [
{
"name": "<string>",
"ranges": [
{
"start": 123,
"end": 123
}
]
}
],
"procedures": [
{
"name": "<string>",
"ranges": [
{
"start": 123,
"end": 123
}
]
}
]
}
]
}
]
}
},
"sqlReviewReport": {
"startPosition": {
"line": 123,
"column": 123
},
"endPosition": {
"line": 123,
"column": 123
}
}
}
],
"error": "<string>",
"createTime": "2023-11-07T05:31:56Z"
}
]
}If set to true, only the latest plan check run will be returned.
Filter is used to filter plan check runs returned in the list. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
Supported filters:
For example: status in ["DONE", "FAILED"] status == "RUNNING" result_status in ["SUCCESS", "ERROR"] result_status == "WARNING"
OK
The plan check runs from the specified request.
Show child attributes
Was this page helpful?