Docs
Live demo
GET/api/v2/activity/operations/{id}

One operation of the caller's organization with the operations it started, every attempt with the pause before it, the time it waited for a worker and its typical duration. An operation of another organization answers 404.

Parameters

Path1 required of 1
idstring · uuidpathrequired

Operation ID (UUID), the same as the job ID

Responses

200

OK

ActivityOperationDetailResponse · 23 fields
idstring · uuidrequired

Operation ID, the same as the job ID.

kindstringrequired
discoverydrift_checkapplybulk_applybulksyncremediationcleanuptarget_deletemaintenance
job_typestringrequired
statusstringrequired
runningsucceededpartialneeds_decisionfailedcancelled

An object of an operation as the product names it. Name is null when the object is gone.

can be null
3 fields
kindstringrequired
targetruleconnectorapplication
idstring · uuidrequired
namestringrequired
can be null
relatedarray of ActivityObjectResponserequired

Other objects of the operation, such as the target of a rule apply.

3 fields
kindstringrequired
targetruleconnectorapplication
idstring · uuidrequired
namestringrequired
can be null
started_byActivityInitiatorResponserequired

Who or what started the operation. person is set whenever a person stands behind it, also when another operation started it on their behalf. parent_operation_id is set when another operation started it.

3 fields
kindstringrequired
personoperationschedulesystem
can be null
3 fields
idstring · uuidrequired
namestringrequired

Display name, email or username. Null when the identity is gone.

can be null
servicebooleanrequired

True for a service account or a service identity.

parent_operation_idstring · uuidrequired
can be null
routinebooleanrequired

Finished successfully and started by nobody, such as a scheduled check that went fine.

needs_actionbooleanrequired

Failed, will not retry by itself and no later run of the same operation on the same object finished after it. A later run that ends with a problem needs action instead of this one.

attemptintegerrequired
max_attemptsintegerrequired
next_retry_atstring · date-time
created_atstring · date-timerequired
finished_atstring · date-time
4 fields
stagestring (entity.DiscoveryStage)required

A stage actually emitted by a discovery worker.

application_discovery_warningchecking_stalenesscleaned_stalecleaning_stalecompleteconnectconnectingdatabases_completediscovered_api_resourcesdiscovered_application_candidatesdiscovered_cluster_role_bindingsdiscovered_cluster_rolesdiscovered_namespacesdiscovered_role_bindingsdiscovered_rolesdiscovered_tablesdiscovering_api_resourcesdiscovering_application_candidatesdiscovering_cluster_role_bindingsdiscovering_cluster_rolesdiscovering_completediscovering_databasesdiscovering_namespacesdiscovering_role_bindingsdiscovering_role_bindings_warningdiscovering_rolesdiscovering_roles_warningdiscovering_schemasdiscovering_tablesdiscovering_usersfinalizingpropagating_future_objectspropagation_warningresources_completeresources_connectingresources_databases_completeresources_discovering_databasesresources_discovering_tablesresources_finalizingresources_scanned_database
6 more values
roles_completescanned_databasescanning_completestaleness_warningusersusers_complete
percentintegerrequired

Persisted worker progress. Even 100 does not imply that the job is terminal.

min 0 · max 100
messagestringrequired

Safe static English presentation of the stage.

updated_atstring · date-timerequired
stepsarray of ActivityStepResponserequired

Stages of the latest attempt in the order the worker runs them. Empty for operations whose worker does not record stages and for runs recorded before stages existed.

13 fields

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

8 fields
codestring (JobFailureCode)required

Closed registry of asynchronous operation failure causes, independent of HTTP problem codes.

ACCESS_PROFILE_STALEAMBIGUOUS_TARGET_OUTCOMEAPPLY_INTERRUPTEDAUTHENTICATION_FAILEDCLICKHOUSE_REPLICAS_OUT_OF_SYNCCLICKHOUSE_USER_NAME_RESERVEDCONNECTION_FAILEDCONNECTION_REFUSEDCONNECTION_TIMEOUTCONNECTOR_CREDENTIALS_MISSINGCONNECTOR_PAUSEDCONNECTOR_SOURCE_CHANGEDCONNECTOR_TYPE_UNAVAILABLECONSTRAINT_VIOLATIONCREDENTIAL_EXPIREDCREDENTIAL_NOT_FOUNDDATABASE_NOT_FOUNDDRIFT_BINDING_NOT_FOUNDDRIFT_DEFAULT_INHERITED_SKIPPEDDRIFT_NO_EXECUTABLE_DIFFDRIFT_PARTIAL_APPLYDRIFT_PLAN_GENERATION_FAILEDDRIFT_RESOURCE_MISMATCHDRIFT_RULE_DELETINGDRIFT_RUN_OUTDATEDDRIFT_SCOPE_MISMATCHGROUP_EXPANSION_LIMIT_EXCEEDEDHANDLER_NOT_FOUNDK8S_CHANGE_REJECTEDK8S_CLUSTER_UNREACHABLEK8S_NAMESPACE_FORBIDDENK8S_NAMESPACE_NOT_FOUNDK8S_RBAC_FORBIDDENKUBERNETES_MEMBER_CREDENTIALS_PENDINGKUBERNETES_SERVICE_ACCOUNT_KUBECONFIG_NOT_ISSUEDMARIADB_TRUNCATE_UNSUPPORTEDMARIADB_USAGE_UNSUPPORTEDMARIADB_GRANTS_AMBIGUOUSMUTATION_LOCKEDMYSQL_MANAGEMENT_PRIVILEGES_MISSING
34 more values
NOT_FOUNDOPERATION_BACKOFFOPERATION_CANCELLEDOPERATION_TIMEOUTOWNED_OBJECTS_DECISION_REQUIREDPERMISSION_DENIEDPLAN_APPLY_ARTIFACT_INVALIDPLAN_APPLY_ORPHANED_LOCKPLAN_APPLY_ROLLBACK_BASELINE_INVALIDPLAN_APPLY_RULE_CHANGEDPLAN_APPLY_TARGET_STATE_CHANGEDPLAN_APPLY_ACCESS_IMPACT_CHANGEDPOSTGRES_FUTURE_OBJECT_CREATORS_MISSINGPOSTGRES_GRANT_AUTHORITY_MISSINGPOSTGRES_MANAGEMENT_PRIVILEGES_MISSINGPOSTGRES_ROLE_ATTRIBUTE_UNSUPPORTEDPOSTGRES_ROLE_NAME_RESERVEDPOSTGRES_TLS_FILE_NOT_ALLOWEDPROVIDER_REQUEST_FAILEDRATE_LIMITEDROLE_EXISTSROLE_NOT_FOUNDROTATION_CHECK_REQUIREDSECRET_STORE_UNAVAILABLESERIALIZATION_ERRORTARGET_ACCOUNT_IDENTITY_MISMATCHTARGET_ACCOUNT_IDENTITY_UNVERIFIEDTARGET_ACCOUNT_IMPORT_PENDINGTARGET_ACCOUNT_PRINCIPAL_LOGINTARGET_ACCOUNT_TAKENTARGET_CONNECTION_MISSINGTARGET_REPAIR_REQUIREDUNKNOWN_ERRORVALIDATION_FAILED
titlestring

Short name of the failure from the same registry, for lists and queues where the explanation is too long. Absent on failures saved before the field existed.

max length 32
explanationstringrequired
recommended_actionstringrequired
retryablebooleanrequired

Whether the failed attempt was eligible for an automatic retry under the actual queue policy.

phasestring

Known operation phase at failure, when available.

resolution_codestring

Stable code of the action that can resolve this failure, the same vocabulary as a problem's resolution.code, for example upstream.check_connection. Absent when no single action does. A screen that offers the action shows it next to the failure, otherwise it shows recommended_action.

max length 128 · pattern ^[a-z][a-z0-9_-]*(\.[a-z0-9_-]+)*$
cluster_answerstring

The Kubernetes cluster's own answer to a change its admission policy or webhook refused: the policy or webhook name and its message. Only a step failure with code K8S_CHANGE_REJECTED carries it, as plain text without control characters, cut to 500 characters. The cluster administrator writes it, not Principal. Given only to callers with access:read in the rule's organization. Absent for runs saved before the field existed.

max length 500
terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
namestring
statusstring
pendingrunningcompletedfailedskipped
started_atstring
finished_atstring
duration_msinteger
error_messagestring
keystringrequired

Stable stage key, such as read_accounts or apply_changes. Null for stages recorded without one.

can be null
summarystringrequired

What the stage does, did or will do in one sentence, or why it did not finish. Built from the stage and its status, never from target output.

can be null
factsarray of ActivityStepFactResponserequired
4 fields
keystringrequired
labelstringrequired
valueintegerrequired
tonestringrequired

warning or failed when a non-zero value needs a look.

neutralwarningfailed
typical_msinteger

Median duration of this stage in the earlier successful runs of the same operation on the same object. Only in the operation detail and only from 3 runs.

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

8 fields
codestring (JobFailureCode)required

Closed registry of asynchronous operation failure causes, independent of HTTP problem codes.

ACCESS_PROFILE_STALEAMBIGUOUS_TARGET_OUTCOMEAPPLY_INTERRUPTEDAUTHENTICATION_FAILEDCLICKHOUSE_REPLICAS_OUT_OF_SYNCCLICKHOUSE_USER_NAME_RESERVEDCONNECTION_FAILEDCONNECTION_REFUSEDCONNECTION_TIMEOUTCONNECTOR_CREDENTIALS_MISSINGCONNECTOR_PAUSEDCONNECTOR_SOURCE_CHANGEDCONNECTOR_TYPE_UNAVAILABLECONSTRAINT_VIOLATIONCREDENTIAL_EXPIREDCREDENTIAL_NOT_FOUNDDATABASE_NOT_FOUNDDRIFT_BINDING_NOT_FOUNDDRIFT_DEFAULT_INHERITED_SKIPPEDDRIFT_NO_EXECUTABLE_DIFFDRIFT_PARTIAL_APPLYDRIFT_PLAN_GENERATION_FAILEDDRIFT_RESOURCE_MISMATCHDRIFT_RULE_DELETINGDRIFT_RUN_OUTDATEDDRIFT_SCOPE_MISMATCHGROUP_EXPANSION_LIMIT_EXCEEDEDHANDLER_NOT_FOUNDK8S_CHANGE_REJECTEDK8S_CLUSTER_UNREACHABLEK8S_NAMESPACE_FORBIDDENK8S_NAMESPACE_NOT_FOUNDK8S_RBAC_FORBIDDENKUBERNETES_MEMBER_CREDENTIALS_PENDINGKUBERNETES_SERVICE_ACCOUNT_KUBECONFIG_NOT_ISSUEDMARIADB_TRUNCATE_UNSUPPORTEDMARIADB_USAGE_UNSUPPORTEDMARIADB_GRANTS_AMBIGUOUSMUTATION_LOCKEDMYSQL_MANAGEMENT_PRIVILEGES_MISSING
34 more values
NOT_FOUNDOPERATION_BACKOFFOPERATION_CANCELLEDOPERATION_TIMEOUTOWNED_OBJECTS_DECISION_REQUIREDPERMISSION_DENIEDPLAN_APPLY_ARTIFACT_INVALIDPLAN_APPLY_ORPHANED_LOCKPLAN_APPLY_ROLLBACK_BASELINE_INVALIDPLAN_APPLY_RULE_CHANGEDPLAN_APPLY_TARGET_STATE_CHANGEDPLAN_APPLY_ACCESS_IMPACT_CHANGEDPOSTGRES_FUTURE_OBJECT_CREATORS_MISSINGPOSTGRES_GRANT_AUTHORITY_MISSINGPOSTGRES_MANAGEMENT_PRIVILEGES_MISSINGPOSTGRES_ROLE_ATTRIBUTE_UNSUPPORTEDPOSTGRES_ROLE_NAME_RESERVEDPOSTGRES_TLS_FILE_NOT_ALLOWEDPROVIDER_REQUEST_FAILEDRATE_LIMITEDROLE_EXISTSROLE_NOT_FOUNDROTATION_CHECK_REQUIREDSECRET_STORE_UNAVAILABLESERIALIZATION_ERRORTARGET_ACCOUNT_IDENTITY_MISMATCHTARGET_ACCOUNT_IDENTITY_UNVERIFIEDTARGET_ACCOUNT_IMPORT_PENDINGTARGET_ACCOUNT_PRINCIPAL_LOGINTARGET_ACCOUNT_TAKENTARGET_CONNECTION_MISSINGTARGET_REPAIR_REQUIREDUNKNOWN_ERRORVALIDATION_FAILED
titlestring

Short name of the failure from the same registry, for lists and queues where the explanation is too long. Absent on failures saved before the field existed.

max length 32
explanationstringrequired
recommended_actionstringrequired
retryablebooleanrequired

Whether the failed attempt was eligible for an automatic retry under the actual queue policy.

phasestring

Known operation phase at failure, when available.

resolution_codestring

Stable code of the action that can resolve this failure, the same vocabulary as a problem's resolution.code, for example upstream.check_connection. Absent when no single action does. A screen that offers the action shows it next to the failure, otherwise it shows recommended_action.

max length 128 · pattern ^[a-z][a-z0-9_-]*(\.[a-z0-9_-]+)*$
cluster_answerstring

The Kubernetes cluster's own answer to a change its admission policy or webhook refused: the policy or webhook name and its message. Only a step failure with code K8S_CHANGE_REJECTED carries it, as plain text without control characters, cut to 500 characters. The cluster administrator writes it, not Principal. Given only to callers with access:read in the rule's organization. Absent for runs saved before the field existed.

max length 500
child_countintegerrequired

Number of operations this operation started.

Actions the caller may offer on the row. Viewers get none. The action route still decides and answers 409 when the operation changed meanwhile.

2 fields
retrybooleanrequired
cancelbooleanrequired
childrenarray of ActivityOperationResponserequired

Operations this operation started, newest first, at most 100.

19 fields
idstring · uuidrequired

Operation ID, the same as the job ID.

kindstringrequired
discoverydrift_checkapplybulk_applybulksyncremediationcleanuptarget_deletemaintenance
job_typestringrequired
statusstringrequired
runningsucceededpartialneeds_decisionfailedcancelled

An object of an operation as the product names it. Name is null when the object is gone.

can be null
3 fields
kindstringrequired
targetruleconnectorapplication
idstring · uuidrequired
namestringrequired
can be null
relatedarray of ActivityObjectResponserequired

Other objects of the operation, such as the target of a rule apply.

3 fields
kindstringrequired
targetruleconnectorapplication
idstring · uuidrequired
namestringrequired
can be null
started_byActivityInitiatorResponserequired

Who or what started the operation. person is set whenever a person stands behind it, also when another operation started it on their behalf. parent_operation_id is set when another operation started it.

3 fields
kindstringrequired
personoperationschedulesystem
can be null
parent_operation_idstring · uuidrequired
can be null
routinebooleanrequired

Finished successfully and started by nobody, such as a scheduled check that went fine.

needs_actionbooleanrequired

Failed, will not retry by itself and no later run of the same operation on the same object finished after it. A later run that ends with a problem needs action instead of this one.

attemptintegerrequired
max_attemptsintegerrequired
next_retry_atstring · date-time
created_atstring · date-timerequired
finished_atstring · date-time
4 fields
stagestring (entity.DiscoveryStage)required

A stage actually emitted by a discovery worker.

application_discovery_warningchecking_stalenesscleaned_stalecleaning_stalecompleteconnectconnectingdatabases_completediscovered_api_resourcesdiscovered_application_candidatesdiscovered_cluster_role_bindingsdiscovered_cluster_rolesdiscovered_namespacesdiscovered_role_bindingsdiscovered_rolesdiscovered_tablesdiscovering_api_resourcesdiscovering_application_candidatesdiscovering_cluster_role_bindingsdiscovering_cluster_rolesdiscovering_completediscovering_databasesdiscovering_namespacesdiscovering_role_bindingsdiscovering_role_bindings_warningdiscovering_rolesdiscovering_roles_warningdiscovering_schemasdiscovering_tablesdiscovering_usersfinalizingpropagating_future_objectspropagation_warningresources_completeresources_connectingresources_databases_completeresources_discovering_databasesresources_discovering_tablesresources_finalizingresources_scanned_database
6 more values
roles_completescanned_databasescanning_completestaleness_warningusersusers_complete
percentintegerrequired

Persisted worker progress. Even 100 does not imply that the job is terminal.

min 0 · max 100
messagestringrequired

Safe static English presentation of the stage.

updated_atstring · date-timerequired
stepsarray of ActivityStepResponserequired

Stages of the latest attempt in the order the worker runs them. Empty for operations whose worker does not record stages and for runs recorded before stages existed.

13 fields

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
namestring
statusstring
pendingrunningcompletedfailedskipped
started_atstring
finished_atstring
duration_msinteger
error_messagestring
keystringrequired

Stable stage key, such as read_accounts or apply_changes. Null for stages recorded without one.

can be null
summarystringrequired

What the stage does, did or will do in one sentence, or why it did not finish. Built from the stage and its status, never from target output.

can be null
factsarray of ActivityStepFactResponserequired
typical_msinteger

Median duration of this stage in the earlier successful runs of the same operation on the same object. Only in the operation detail and only from 3 runs.

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

8 fields
codestring (JobFailureCode)required

Closed registry of asynchronous operation failure causes, independent of HTTP problem codes.

ACCESS_PROFILE_STALEAMBIGUOUS_TARGET_OUTCOMEAPPLY_INTERRUPTEDAUTHENTICATION_FAILEDCLICKHOUSE_REPLICAS_OUT_OF_SYNCCLICKHOUSE_USER_NAME_RESERVEDCONNECTION_FAILEDCONNECTION_REFUSEDCONNECTION_TIMEOUTCONNECTOR_CREDENTIALS_MISSINGCONNECTOR_PAUSEDCONNECTOR_SOURCE_CHANGEDCONNECTOR_TYPE_UNAVAILABLECONSTRAINT_VIOLATIONCREDENTIAL_EXPIREDCREDENTIAL_NOT_FOUNDDATABASE_NOT_FOUNDDRIFT_BINDING_NOT_FOUNDDRIFT_DEFAULT_INHERITED_SKIPPEDDRIFT_NO_EXECUTABLE_DIFFDRIFT_PARTIAL_APPLYDRIFT_PLAN_GENERATION_FAILEDDRIFT_RESOURCE_MISMATCHDRIFT_RULE_DELETINGDRIFT_RUN_OUTDATEDDRIFT_SCOPE_MISMATCHGROUP_EXPANSION_LIMIT_EXCEEDEDHANDLER_NOT_FOUNDK8S_CHANGE_REJECTEDK8S_CLUSTER_UNREACHABLEK8S_NAMESPACE_FORBIDDENK8S_NAMESPACE_NOT_FOUNDK8S_RBAC_FORBIDDENKUBERNETES_MEMBER_CREDENTIALS_PENDINGKUBERNETES_SERVICE_ACCOUNT_KUBECONFIG_NOT_ISSUEDMARIADB_TRUNCATE_UNSUPPORTEDMARIADB_USAGE_UNSUPPORTEDMARIADB_GRANTS_AMBIGUOUSMUTATION_LOCKEDMYSQL_MANAGEMENT_PRIVILEGES_MISSING
34 more values
NOT_FOUNDOPERATION_BACKOFFOPERATION_CANCELLEDOPERATION_TIMEOUTOWNED_OBJECTS_DECISION_REQUIREDPERMISSION_DENIEDPLAN_APPLY_ARTIFACT_INVALIDPLAN_APPLY_ORPHANED_LOCKPLAN_APPLY_ROLLBACK_BASELINE_INVALIDPLAN_APPLY_RULE_CHANGEDPLAN_APPLY_TARGET_STATE_CHANGEDPLAN_APPLY_ACCESS_IMPACT_CHANGEDPOSTGRES_FUTURE_OBJECT_CREATORS_MISSINGPOSTGRES_GRANT_AUTHORITY_MISSINGPOSTGRES_MANAGEMENT_PRIVILEGES_MISSINGPOSTGRES_ROLE_ATTRIBUTE_UNSUPPORTEDPOSTGRES_ROLE_NAME_RESERVEDPOSTGRES_TLS_FILE_NOT_ALLOWEDPROVIDER_REQUEST_FAILEDRATE_LIMITEDROLE_EXISTSROLE_NOT_FOUNDROTATION_CHECK_REQUIREDSECRET_STORE_UNAVAILABLESERIALIZATION_ERRORTARGET_ACCOUNT_IDENTITY_MISMATCHTARGET_ACCOUNT_IDENTITY_UNVERIFIEDTARGET_ACCOUNT_IMPORT_PENDINGTARGET_ACCOUNT_PRINCIPAL_LOGINTARGET_ACCOUNT_TAKENTARGET_CONNECTION_MISSINGTARGET_REPAIR_REQUIREDUNKNOWN_ERRORVALIDATION_FAILED
titlestring

Short name of the failure from the same registry, for lists and queues where the explanation is too long. Absent on failures saved before the field existed.

max length 32
explanationstringrequired
recommended_actionstringrequired
retryablebooleanrequired

Whether the failed attempt was eligible for an automatic retry under the actual queue policy.

phasestring

Known operation phase at failure, when available.

resolution_codestring

Stable code of the action that can resolve this failure, the same vocabulary as a problem's resolution.code, for example upstream.check_connection. Absent when no single action does. A screen that offers the action shows it next to the failure, otherwise it shows recommended_action.

max length 128 · pattern ^[a-z][a-z0-9_-]*(\.[a-z0-9_-]+)*$
cluster_answerstring

The Kubernetes cluster's own answer to a change its admission policy or webhook refused: the policy or webhook name and its message. Only a step failure with code K8S_CHANGE_REJECTED carries it, as plain text without control characters, cut to 500 characters. The cluster administrator writes it, not Principal. Given only to callers with access:read in the rule's organization. Absent for runs saved before the field existed.

max length 500
child_countintegerrequired

Number of operations this operation started.

Actions the caller may offer on the row. Viewers get none. The action route still decides and answers 409 when the operation changed meanwhile.

2 fields
retrybooleanrequired
cancelbooleanrequired
typical_duration_msintegerrequired

Median duration of the last 20 successful runs of the same operation on the same object in the organization. Null until at least 3 such runs exist and for operations without an object, such as bulk runs. Each stage carries its own typical_ms.

can be null
queued_msintegerrequired

Time between queueing and the start of the first attempt, including a wait for a busy target or lock that put the attempt back in the queue. Null before the first attempt started.

can be null
attemptsarray of ActivityAttemptResponserequired

Every attempt the worker made, oldest first, with the pause before it and its stages. A stage keeps the stages of the last 5 attempts.

7 fields
attemptintegerrequired
started_atstring · date-timerequired
can be null
finished_atstring · date-timerequired
can be null
duration_msintegerrequired
can be null
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
wait_before_msintegerrequired

Pause between the end of the previous attempt and the start of this one.

can be null
stepsarray of ActivityStepResponserequired
13 fields

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

terminalbooleanrequired
outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
namestring
statusstring
pendingrunningcompletedfailedskipped
started_atstring
finished_atstring
duration_msinteger
error_messagestring
keystringrequired

Stable stage key, such as read_accounts or apply_changes. Null for stages recorded without one.

can be null
summarystringrequired

What the stage does, did or will do in one sentence, or why it did not finish. Built from the stage and its status, never from target output.

can be null
factsarray of ActivityStepFactResponserequired
typical_msinteger

Median duration of this stage in the earlier successful runs of the same operation on the same object. Only in the operation detail and only from 3 runs.

403

Insufficient permissions

Common errors: 400 401 404 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close