Removing Locks from API Gateways and Resources
Find out how to remove resource locks from API gateways and related resources with API Gateway.
You can remove locks that have been added to API gateways and related resources to allow deletions (in the case of a delete lock) or updates, moves, and deletions (in the case of a full lock).
Note that you can also temporarily override locks (see Overriding Locks on API Gateways and Resources).
Required IAM Policy
To remove locks from API gateways and related resources, you must belong to a group to which an IAM policy has granted the RESOURCE_LOCK_REMOVE
permission in addition to permissions to manage the resources, or be a tenancy administrator.
For example, the policy might contain a policy statement similar to the following:
Allow group acme-apigw-developers to RESOURCE_LOCK_REMOVE in compartment acme-apigw-compartment
You can't use the Console to remove a lock from an API gateway or related resource. Use the CLI or API.
To remove a lock from an existing API gateway or related resource, use the appropriate
oci api-gateway <resource> remove-lock
command. For example:oci api-gateway sdk remove-lock [OPTIONS]
For more information about using the CLI, see Command Line Interface (CLI). For a complete list of flags and options available for CLI commands, see CLI Help.
Use these API operations to remove locks from existing API gateways and related resources:
- RemoveGatewayLock
- RemoveApiLock
- RemoveDeploymentLock
- RemoveCertificateLock
- RemoveSdkLock
- RemoveSubscriberLock
- RemoveUsagePlanLock
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.