Obtient les détails d'une instance KMS.
Description de l'opération
Reportez-vous à Resource Access Management pour connaître la stratégie d'accès requise pour appeler cette OpenAPI en tant qu'utilisateur RAM ou rôle RAM.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| KmsInstanceId |
string |
Oui |
L'identifiant de l'instance KMS à interroger. |
kst-bjj62f5ba3dnpb6v8**** |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Les détails de l'instance KMS. |
||
| RequestId |
string |
L'identifiant de la requête. Alibaba Cloud génère un identifiant unique pour chaque requête. Vous pouvez utiliser cet identifiant pour localiser et résoudre les problèmes. |
46b4a94a-57d2-44b4-9810-1e87d31abb33 |
| KmsInstance |
object |
Les détails de l'instance KMS. |
3 |
| InstanceId |
string |
L'identifiant de l'instance KMS. |
kst-bjj62f5ba3dnpb6v8**** |
| InstanceName |
string |
Le nom de l'instance KMS. |
kst-bjj62f5ba3dnpb6v8**** |
| Status |
string |
L'état de l'instance KMS. Valeurs valides :
|
Connected |
| CreateTime |
string |
L'heure de création de l'instance KMS. |
2023-09-05T12:44:20Z |
| Spec |
integer |
Les performances de calcul de l'instance KMS. |
1000 |
| KeyNum |
integer |
Le nombre maximal de clés pouvant être créées dans l'instance KMS. |
1000 |
| SecretNum |
string |
Le nombre maximal de secrets pouvant être créés dans l'instance KMS. |
10 |
| VpcNum |
integer |
Le nombre maximal de VPC pouvant être associés à l'instance KMS pour le contrôle d'accès. |
5 |
| VpcId |
string |
Le VPC auquel l'instance KMS est rattachée. |
vpc-bp19z7cwmltad5dff**** |
| ZoneIds |
array |
Les zones auxquelles l'instance KMS est rattachée. |
"cn-hangzhou-k", "cn-hangzhou-j" |
|
string |
|||
| VswitchIds |
array |
Les vSwitch du VPC auquel l'instance KMS est rattachée. |
vsw-bp1i512amda6d10a0**** |
|
string |
|||
| EndDate |
string |
La date d'expiration de l'instance KMS. |
2023-10-05T16:00:00Z |
| StartDate |
string |
La date à laquelle l'instance KMS a été activée. |
2023-09-05T12:44:19Z |
| CaCertificateChainPem |
string |
La chaîne de certificats CA pour l'instance KMS au format PEM. |
-----BEGIN CERTIFICATE-----\r\nMIIDuzCCAqOgAwIBAgIJALTKwWAjvbMiMA0GCSqGSIb3DQEBCwUAMHQxCzAJBgNV****-----END CERTIFICATE----- |
| BindVpcs |
object |
||
| BindVpc |
array<object> |
A list of associated VPCs. Remarque
You can associate the KMS instance with additional VPCs in the same region, allowing self-managed applications in those VPCs to access the instance. These VPCs can belong to the same or different Alibaba Cloud accounts. |
|
|
object |
Details of an associated VPC. Remarque
You can associate the KMS instance with additional VPCs in the same region, allowing self-managed applications in those VPCs to access the instance. These VPCs can belong to the same or different Alibaba Cloud accounts. |
||
| RegionId |
string |
The region where the VPC is located. |
cn-hangzhou |
| VpcId |
string |
The ID of the VPC. |
vpc-bp19z7djuhtad5dff**** |
| VpcOwnerId |
string |
The Alibaba Cloud account to which the VPC belongs. |
190325303126**** |
| VSwitchId |
string |
The vSwitch in the VPC. |
vsw-bp1i512amhdje10f1**** |
| ChargeType |
string |
La méthode de facturation de l'instance. Valeurs valides :
|
POSTPAY |
| ProductVersion |
string |
La version de l'instance KMS. |
3 |
| SaleStatus |
string |
Le statut de vente de l'instance. |
Normal |
| Log |
integer |
Indique si la journalisation est activée pour l'instance KMS. Valeurs valides : |
1 |
| LogStorage |
integer |
La capacité de stockage des journaux. Unité : Go. |
100 |
| ProductType |
string |
Le type de produit. |
kms_ddi_public_cn |
Exemples
JSON format
{
"RequestId": "46b4a94a-57d2-44b4-9810-1e87d31abb33",
"KmsInstance": {
"InstanceId": "kst-bjj62f5ba3dnpb6v8****",
"InstanceName": "kst-bjj62f5ba3dnpb6v8****",
"Status": "Connected",
"CreateTime": "2023-09-05T12:44:20Z",
"Spec": 1000,
"KeyNum": 1000,
"SecretNum": "10",
"VpcNum": 5,
"VpcId": "vpc-bp19z7cwmltad5dff****",
"ZoneIds": [
""
],
"VswitchIds": [
""
],
"EndDate": "2023-10-05T16:00:00Z",
"StartDate": "2023-09-05T12:44:19Z",
"CaCertificateChainPem": "-----BEGIN CERTIFICATE-----\\r\\nMIIDuzCCAqOgAwIBAgIJALTKwWAjvbMiMA0GCSqGSIb3DQEBCwUAMHQxCzAJBgNV****-----END CERTIFICATE-----",
"BindVpcs": {
"BindVpc": [
{
"RegionId": "cn-hangzhou",
"VpcId": "vpc-bp19z7djuhtad5dff****",
"VpcOwnerId": "190325303126****",
"VSwitchId": "vsw-bp1i512amhdje10f1****"
}
]
},
"ChargeType": "POSTPAY",
"ProductVersion": "3",
"SaleStatus": "Normal",
"Log": 1,
"LogStorage": 100,
"ProductType": "kms_ddi_public_cn"
}
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | IllegalTimestamp | The input parameter Timestamp that is mandatory for processing this request is not supplied. | The input parameter timestamp indicates that the request is outside the processing time range. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.