Deleting an API Access Rule
You can delete an API access rule that you no longer need.
However, you cannot delete the last remaining API access rule of your account.
Deleting an API Access Rule Using Cockpit v2
You cannot delete the last remaining API access rule of your account. If you cannot access the APIs through the API access rules in place, you need to contact the Support team to regain access. For more information, see Technical Support. |
-
In the top right corner, click the icon.
A drop-down menu appears. -
Click API Access Rules.
The list of your API access rules appears. -
Check the box of the API access rule you want to delete.
Multiselection is available.
The API access rule is selected.
-
Click Delete.
A confirmation dialog box appears. -
Click Delete.
The API access rule is deleted.
Deleting an API Access Rule Using OSC CLI
The DeleteApiAccessRule command deletes a specified API access rule.
You cannot delete the last remaining API access rule. However, if you delete all the API access rules that allow you to access the APIs, you need to contact the Support team to regain access. For more information, see Technical Support. |
$ osc-cli api DeleteApiAccessRule --profile "default" \
--ApiAccessRuleId "aar-1234567890abcdef1234567890abcdef"
$ osc-cli api DeleteApiAccessRule --profile "default" --authentication-method "password" --login "$OSC_EMAIL" --password "$OSC_PASSWORD" \
--ApiAccessRuleId "aar-1234567890abcdef1234567890abcdef"
This command contains the following attributes that you need to specify:
-
ApiAccessRuleId
: The ID of the API access rule you want to delete. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action.
The DeleteApiAccessRule command returns the following elements:
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Deleting an API Access Rule Using oapi-cli
The DeleteApiAccessRule command deletes a specified API access rule.
You cannot delete the last remaining API access rule. However, if you delete all the API access rules that allow you to access the APIs, you need to contact the Support team to regain access. For more information, see Technical Support. |
$ oapi-cli --profile "default" DeleteApiAccessRule \
--ApiAccessRuleId "aar-1234567890abcdef1234567890abcdef"
$ oapi-cli --profile "default" --login "$OSC_EMAIL" --password "$OSC_PASSWORD" DeleteApiAccessRule \
--ApiAccessRuleId "aar-1234567890abcdef1234567890abcdef"
This command contains the following attributes that you need to specify:
-
ApiAccessRuleId
: The ID of the API access rule you want to delete. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action.
The DeleteApiAccessRule command returns the following elements:
-
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Related Pages
Corresponding API Method