Membuat titik akses aplikasi (AAP).
Deskripsi operasi
To perform cryptographic operations and retrieve secret values, self-managed applications must use a client key to access a Key Management Service (KMS) instance. The following process shows how to create a client key-based AAP:
1.Create a network access rule: You can configure the private IP addresses or private CIDR blocks that are allowed to access KMS. For more information, see CreateNetworkRule.
2.Create a permission policy: You can configure the keys and secrets that are allowed to access and bind network access rules to the keys and secrets. For more information, see CreatePolicy.
3.Create an AAP: You can configure an authentication method and bind a permission policy to an AAP. This topic describes how to create an AAP.
4.Create a client key: You can configure the encryption password and validity period of a client key and bind the client key to an AAP. For more information, see CreateClientKey.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
Nama AAP. |
aap_test |
| Description |
string |
No |
Deskripsi AAP. |
aap description |
| AuthenticationMethod |
string |
No |
Metode autentikasi. Saat ini, hanya ClientKey yang didukung. |
ClientKey |
| Policies |
string |
Yes |
Kebijakan izin. Catatan
Anda dapat mengaitkan hingga tiga kebijakan izin ke setiap AAP. |
["kst-hzz62ee817bvyyr5x****.efkd","kst-hzz62ee817bvyyr5x****.eyyp"] |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
bcfefe15-46f0-44a3-bd96-3d422474b71a |
| Description |
string |
The description of the AAP. |
aap description |
| Policies |
string |
The permission policy. |
["kst-hzz62ee817bvyyr5x****.efkd","kst-hzz62ee817bvyyr5x****.eyyp"] |
| Name |
string |
The name of the AAP. |
aap_test |
| Arn |
string |
The Alibaba Cloud Resource Name (ARN) of the AAP. |
acs:kms:cn-hangzhou:119285303511****:applicationaccesspoint/aap_test |
| AuthenticationMethod |
string |
The authentication method. |
ClientKey |
Contoh
Respons sukses
JSONformat
{
"RequestId": "bcfefe15-46f0-44a3-bd96-3d422474b71a",
"Description": "aap description",
"Policies": "[\"kst-hzz62ee817bvyyr5x****.efkd\",\"kst-hzz62ee817bvyyr5x****.eyyp\"]",
"Name": "aap_test",
"Arn": "acs:kms:cn-hangzhou:119285303511****:applicationaccesspoint/aap_test",
"AuthenticationMethod": "ClientKey"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 409 | Rejected.ResourceExist | The request was rejected because the resource already exists. | The resource already exists. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.