Deleting an EIM Access Key
You can delete an access key associated with a user, for example to remove their access to your resources.
You can use this action for access keys associated with the root user. Therefore, you can use it to manage root credentials even if the OUTSCALE account has no associated EIM users.
Deleting an EIM Access Key Using Cockpit v2
-
In the EIM Users dashboard, click the details icon of the EIM user for which you want to delete an access key.
The EIM user details panel appears. -
Select the access key you want to delete.
The access key is selected. -
Click Delete.
A confirmation dialog box appears. -
Click Delete.
The EIM access key is deleted.
Deleting an EIM Access Key Using OSC CLI
The DeleteAccessKey command deletes the specified access key of either your root account or an EIM user.
The access key of an EIM user must be in the INACTIVE
state to be deleted.
$ osc-cli api DeleteAccessKey --profile "default" \
--AccessKeyId "ABCDEFGHIJ0123456789"
$ osc-cli api DeleteAccessKey --profile "default" \
--AccessKeyId "ABCDEFGHIJ0123456789" \
--UserName "example-user"
$ osc-cli api DeleteAccessKey --profile "default" --authentication-method "password" --login "$OSC_EMAIL" --password "$OSC_PASSWORD" \
--AccessKeyId "ABCDEFGHIJ0123456789" \
--UserName "example-user"
This command contains the following attributes that you need to specify:
-
AccessKeyId
: The ID of the access key you want to delete. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
UserName
: (optional) The name of the EIM user the access key you want to delete is associated with. By default, the user who sends the request (which can be the root account).
The DeleteAccessKey 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 EIM Access Key Using oapi-cli
The DeleteAccessKey command deletes the specified access key of either your root account or an EIM user.
The access key of an EIM user must be in the INACTIVE
state to be deleted.
$ oapi-cli --profile "default" DeleteAccessKey \
--AccessKeyId "ABCDEFGHIJ0123456789"
$ oapi-cli --profile "default" DeleteAccessKey \
--AccessKeyId "ABCDEFGHIJ0123456789" \
--UserName "example-user"
$ oapi-cli --profile "default" --login "$OSC_EMAIL" --password "$OSC_PASSWORD" DeleteAccessKey \
--AccessKeyId "ABCDEFGHIJ0123456789" \
--UserName "example-user"
This command contains the following attributes that you need to specify:
-
AccessKeyId
: The ID of the access key you want to delete. -
DryRun
: (optional) If true, checks whether you have the required permissions to perform the action. -
UserName
: (optional) The name of the EIM user the access key you want to delete is associated with. By default, the user who sends the request (which can be the root account).
The DeleteAccessKey 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 EIM Access Key Using AWS CLI
Before you begin: Install and configure AWS CLI. For more information, see Installing and Configuring AWS CLI. |
The access key can be either |
To delete an access key, use the delete-access-key command following this syntax:
$ aws iam delete-access-key \
--profile YOUR_PROFILE \
--user-name USER_NAME \
--access-key-id NOPQR2STUVWX3YZABCDE \
--endpoint https://eim.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
(optional)
user-name
: The name of the user whose access key you want to delete.If you do not specify a user name, this action deletes an access key associated with the user who sends the request.
-
access-key-id
: The ID of the access key you want to delete. -
endpoint
: The endpoint corresponding to the Region you want to send the request to. For more information, see Installing and Configuring AWS CLI.
The specified access key is deleted.
Related Pages
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.