GET /v1/projects/{projectId}/billing/operations/{operationId}
Returns the authoritative state of a billing operation belonging to the selected project. Use it to recover or poll a plan-change request until the operation reaches success or failure. An accepted request is not evidence that the plan change has completed.
- TypeScript
- Python
- Rust
TypeScript
Parameters
string
required
The project being billed.
string
required
Operation id returned by a purchase or quantity change.
Returns
200 Authoritative recovery snapshot for a billing operation. BillingOperation
One of: PendingBillingOperation
null
required
BillingOperationKind
required
string
required
Stable handle for this provisioning action.
null
required
null
required
"pending"
required
Accepted and still executing. Poll the operation route.
string | null
required
null
required
BillingOperationKind
required
string
required
Stable handle for this provisioning action.
string | null
required
BillingOperationResult
required
"succeeded"
required
Terminal. The result is authoritative.
string | null
required
BillingOperationFailure
required
BillingOperationKind
required
string
required
Stable handle for this provisioning action.
string | null
required
null
required
"failed"
required
Terminal. Failure contains a stable code and retryability.
string | null
required