All Products
Search
Document Center

Bastionhost:ListImportableKMSSecretsForHost

Last Updated:Mar 30, 2026

Lists all importable KMS secrets for a specified host.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

No

The ID of the bastion host instance.

Note

Call the DescribeInstances operation to get this ID.

bastionhost-cn-st220aw****

RegionId

string

No

The region ID of the bastion host.

Note

For details about the mapping between region IDs and region names, see Regions and availability zones.

cn-hangzhou

HostId

integer

Yes

The ID of the host.

Note

Call the ListHosts operation to get this ID.

1

Keyword

string

No

The name of the secret to search for. Fuzzy matching is supported.

test

NextToken

string

No

The token to retrieve the next page of results.

Note

You do not need to specify this parameter for the first request. For subsequent requests, use the NextToken value from the previous response.

42bc833a0a0002dae0b5e8707e68181f

MaxResults

integer

No

The number of entries to return on each page. Default value: 20.

10

Response elements

Element

Type

Description

Example

object

The response object.

RequestId

string

The ID of the request.

EC9BF0F4-8983-491A-BC8C-1B4DD94976DE

MaxResults

integer

The value of the MaxResults parameter in the request. If the parameter was not specified, the default value of 20 is returned.

20

Secrets

array<object>

A list of importable secrets.

object

Details of a secret.

SecretName

string

The name of the secret.

test1

SecretType

string

The type of the secret. Valid value:

  • ECS: an ECS secret.

ECS

Tags

string

The tags associated with the secret.

test

NextToken

string

The token to retrieve the next page of results. If this field is empty, all results have been returned.

4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs****

Examples

Success response

JSON format

{
  "RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
  "MaxResults": 20,
  "Secrets": [
    {
      "SecretName": "test1",
      "SecretType": "ECS",
      "Tags": "test"
    }
  ],
  "NextToken": "4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.