IBM · Arazzo Workflow
IBM Cloud IAM Re-enable and Re-scope a Disabled API Key
Version 1.0.0
Confirm a key is disabled, re-enable it, then update its expiry and metadata under If-Match.
View Spec
View on GitHub
API ManagementArtificial IntelligenceBillingCloud ComputingContainersData GovernanceDatabasesDevOpsEnterpriseGenerative AIHybrid CloudInfrastructureMachine-LearningNetworkingObservabilitySecurityServerlessStorageWatsonWatsonxFortune 100ArazzoWorkflows
Provider
Workflows
reactivate-api-key
Re-enable a disabled API key and update its expiry using optimistic concurrency control.
Verifies the key's disabled state, enables it, re-reads the entity tag, and applies a metadata and expiry update guarded by If-Match.
1
confirmDisabledState
Read the key and confirm it is actually disabled before enabling anything. This prevents the workflow from silently acting on the wrong key id.
2
enableKey
Re-enable the key so it can authenticate again. This is the step that restores access, and it is deliberately separate from the metadata update.
3
rereadEntityTag
Re-read the key to pick up a fresh entity tag. Enabling the key changed the resource version, so the tag captured before the enable would be stale and the following update would be rejected with a conflict.
4
rescopeKey
Bound the revived key with a new expiry and record why it was restored. The If-Match header carries the freshly read entity tag so a competing edit fails with a 409 rather than being clobbered.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.