Lists all importable KMS secrets for a specified host.
Try it now
Test
RAM authorization
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 |
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 |
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 |
| 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.