• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Nova
  5. Keypairs
  6. Deleting a Key Pair

Deleting a Key Pair

Function Description

This interface is used to delete a key pair.

Interface Format

Method

URI

Description

DELETE

/v2/{tenant_id}/os-keypairs/{keypair_name}

/v2.1/{tenant_id}/os-keypairs/{keypair_name}

Deletes a key pair.

Restrictions

N/A

Expanded Interface

N/A

Request Parameter

Table 1 Request Parameter

Parameter

Type

Mandatory

Description

user_id

UUID

Yes

Specifies the user ID.

This field is newly added in version 2.10.

Response Parameter

N/A

Request Example

DELETE /v2/6fbe9263116a4b68818cf1edce16bc4f/os-keypairs/keypair-7d7c3650-dabe-4eb0-b904-5c464453c043

DELETE /v2.1/6fbe9263116a4b68818cf1edce16bc4f/os-keypairs/keypair-7d7c3650-dabe-4eb0-b904-5c464453c043

Response Example

N/A

Returned Values

For details, see section General Request Returned Values.

Error Code

For details, see section General Request Returned Values.