パスによって暗号化されたパラメータを取得します。 この操作を呼び出す前に、Key Management Service ( KMS ) の GetSecretValue 操作を呼び出す権限を持っていることを確認してください。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
oos:GetSecretParametersByPath |
get |
*secretparameter
|
|
なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
リージョン ID 。 |
cn-hangzhou |
| Path |
string |
必須 |
パラメータのパス。 パスは 200 文字未満の長さである必要があります。 たとえば、パラメータの名前が /secretParameter/mySecretParameter の場合、パラメータのパスは /secretParameter です。 |
/secretParameter |
| Recursive |
boolean |
任意 |
パス内のパラメータを再帰的にクエリするかどうかを指定します。 たとえば、/secretParameter/mySecretParameter と /secretParameter/secretParameter1/mySecretParameter というパラメータがあるとします。 有効な値:
|
false |
| NextToken |
string |
任意 |
ページネーショントークン。 |
MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzA |
| MaxResults |
integer |
任意 |
各ページに返すエントリの数。 有効な値: 1 ~ 10 。 デフォルト値: 10 。 |
10 |
| WithDecryption |
boolean |
任意 |
パラメータ値を復号化するかどうかを指定します。 有効な値:
|
true |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| NextToken |
string |
ページネーショントークン。 |
gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC |
| RequestId |
string |
リクエスト ID 。 |
25156E99-7437-4590-AA58-2ACA17DE405C |
| TotalCount |
integer |
暗号化されたパラメータの総数。 |
10 |
| MaxResults |
integer |
1 ページあたりに返されるエントリの数。 |
10 |
| Parameters |
array<object> |
パラメータに関する情報。 |
|
|
object |
|||
| Type |
string |
パラメータのタイプ。 |
Secret |
| UpdatedDate |
string |
パラメータが更新された時刻。 |
2020-10-21T06:22:48Z |
| UpdatedBy |
string |
パラメータを更新したユーザー。 |
root(130900000) |
| KeyId |
string |
キー ID 。 |
090xxbex-xexx-xxxx-axfc-ddxxcxxxxcex |
| Value |
string |
パラメータの値。 |
secretParameter |
| Description |
string |
パラメータの説明。 |
secretParameter |
| Constraints |
string |
パラメータの制約。 |
{\"AllowedPattern\": \"^[a-g]*$\"} |
| CreatedBy |
string |
パラメータを作成したユーザー。 |
root(130900000) |
| CreatedDate |
string |
パラメータが作成された時刻。 |
2020-10-21T06:22:48Z |
| ParameterVersion |
integer |
パラメータのバージョン番号。 |
1 |
| Name |
string |
パラメータの名前。 |
mySecretParameter |
| Id |
string |
パラメータの ID 。 |
p-7cdc0000000000000000 |
| ShareType |
string |
パラメータの共有タイプ。 |
Private |
例
成功レスポンス
JSONJSON
{
"NextToken": "gAAAAABfTgv5ewUWmNdJ3g7JVLvX70sPH90GZOVGC",
"RequestId": "25156E99-7437-4590-AA58-2ACA17DE405C",
"TotalCount": 10,
"MaxResults": 10,
"Parameters": [
{
"Type": "Secret",
"UpdatedDate": "2020-10-21T06:22:48Z",
"UpdatedBy": "root(130900000)",
"KeyId": "090xxbex-xexx-xxxx-axfc-ddxxcxxxxcex",
"Value": "secretParameter",
"Description": "secretParameter",
"Constraints": "{\\\"AllowedPattern\\\": \\\"^[a-g]*$\\\"}",
"CreatedBy": "root(130900000)",
"CreatedDate": "2020-10-21T06:22:48Z",
"ParameterVersion": 1,
"Name": "mySecretParameter",
"Id": "p-7cdc0000000000000000",
"ShareType": "Private"
}
]
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。