All Products
Search
Document Center

Bastionhost:DeleteUserPublicKey

Last Updated:Apr 18, 2024

Deletes a public key from the specified user.

Operation description

You can call the DeleteUserPublicKey operation to delete a public key from the specified user of a bastion host.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the Bastionhost instance to which the users to be queried belong.

Note You can call the DescribeInstances operation to query the ID of the Bastionhost instance.
bastionhost-cn-st220aw****
RegionIdstringNo

The region ID of the bastion host. For more information about the mapping between region IDs and region names, see Regions and zones.

cn-hangzhou
PublicKeyIdstringYes

The ID of the public key.

11

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

EC9BF0F4-8983-491A-BC8C-1B4DD94976DE

Examples

Sample success responses

JSONformat

{
  "RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe argument is invalid.The argument is invalid.
500InternalErrorAn unknown error occurred.An unknown error occurred.

For a list of error codes, visit the Service error codes.