diff --git a/docs/kms/api-ref/ALL_META.TXT.json b/docs/kms/api-ref/ALL_META.TXT.json index 0ed2b96e..e621abf6 100644 --- a/docs/kms/api-ref/ALL_META.TXT.json +++ b/docs/kms/api-ref/ALL_META.TXT.json @@ -1,481 +1,1201 @@ [ { - "uri":"en-us_topic_00384375969.html", + "dockw":"API Reference" + }, + { + "uri":"kms_02_0200.html", + "node_id":"kms_02_0200.xml", "product_code":"kms", "code":"1", - "des":"Public cloud APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform ", + "des":"Cloud service APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform", "doc_type":"api", "kw":"API Usage Guidelines,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], "title":"API Usage Guidelines", "githuburl":"" }, { - "uri":"kms_02_0010.html", + "uri":"kms_02_0050.html", + "node_id":"kms_02_0050.xml", "product_code":"kms", "code":"2", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", + "kw":"Before You Start", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Before You Start", + "githuburl":"" + }, + { + "uri":"kms_02_0058.html", + "node_id":"kms_02_0058.xml", + "product_code":"kms", + "code":"3", + "des":"Key Management Service (KMS) is a secure, reliable, and easy-to-use service for managing your keys on the cloud. It helps you easily create, manage, and protect keys.You ", + "doc_type":"api", + "kw":"Overview,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Overview", + "githuburl":"" + }, + { + "uri":"kms_02_0051.html", + "node_id":"kms_02_0051.xml", + "product_code":"kms", + "code":"4", + "des":"KMS supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS requests. For details about API calling, see Calling APIs.", + "doc_type":"api", + "kw":"API Calling,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"API Calling", + "githuburl":"" + }, + { + "uri":"kms_02_0052.html", + "node_id":"kms_02_0052.xml", + "product_code":"kms", + "code":"5", + "des":"An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of all services, see Regions and Endpoints.", + "doc_type":"api", + "kw":"Endpoints,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Endpoints", + "githuburl":"" + }, + { + "uri":"kms_02_0053.html", + "node_id":"kms_02_0053.xml", + "product_code":"kms", + "code":"6", + "des":"For more constraints, see the descriptions of specific APIs.", + "doc_type":"api", + "kw":"Constraints,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Constraints", + "githuburl":"" + }, + { + "uri":"kms_02_0054.html", + "node_id":"kms_02_0054.xml", + "product_code":"kms", + "code":"7", + "des":"AccountAn account has full access permissions for all the resources and cloud services under it. It can reset user passwords and grant users permissions. The account is a", + "doc_type":"api", + "kw":"Concepts,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Concepts", + "githuburl":"" + }, + { + "uri":"kms_02_0002.html", + "node_id":"kms_02_0002.xml", + "product_code":"kms", + "code":"8", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Calling APIs", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Calling APIs", + "githuburl":"" + }, + { + "uri":"kms_02_0001.html", + "node_id":"kms_02_0001.xml", + "product_code":"kms", + "code":"9", + "des":"This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained ", + "doc_type":"api", + "kw":"Making an API Request,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Making an API Request", + "githuburl":"" + }, + { + "uri":"kms_02_0003.html", + "node_id":"kms_02_0003.xml", + "product_code":"kms", + "code":"10", + "des":"Requests for calling an API can be authenticated using either of the following methods:Token-based authentication: Requests are authenticated using a token.AK/SK-based au", + "doc_type":"api", + "kw":"Authentication,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Authentication", + "githuburl":"" + }, + { + "uri":"kms_02_0056.html", + "node_id":"kms_02_0056.xml", + "product_code":"kms", + "code":"11", + "des":"After sending a request, you will receive a response containing the status code, response header, and response body.A status code is a group of digits ranging from 1xx to", + "doc_type":"api", + "kw":"Returned Values,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Returned Values", + "githuburl":"" + }, + { + "uri":"kms_02_0057.html", + "node_id":"kms_02_0057.xml", + "product_code":"kms", + "code":"12", + "des":"You can use all functions of by calling its APIs.", + "doc_type":"api", + "kw":"API Overview,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"API Overview", + "githuburl":"" + }, + { + "uri":"kms_02_0010.html", + "node_id":"kms_02_0010.xml", + "product_code":"kms", + "code":"13", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", "kw":"APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"APIs", "githuburl":"" }, { - "uri":"kms_02_0012.html", + "uri":"kms_02_0011.html", + "node_id":"kms_02_0011.xml", "product_code":"kms", - "code":"3", + "code":"14", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"CMK Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"CMK Management", + "githuburl":"" + }, + { + "uri":"kms_02_0012.html", + "node_id":"kms_02_0012.xml", + "product_code":"kms", + "code":"15", "des":"This API is used to create customer master keys (CMKs) used to encrypt data encryption keys (DEKs).Default Master Keys are created by services integrated with KMS. Names ", "doc_type":"api", - "kw":"Creating a CMK,APIs,API Reference", + "kw":"Creating a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Creating a CMK", "githuburl":"" }, { "uri":"kms_02_0013.html", + "node_id":"kms_02_0013.xml", "product_code":"kms", - "code":"4", + "code":"16", "des":"This API allows you to enable a CMK. Only an enabled CMK can be used.Only a disabled CMK can be enabled.URI formatPOST /v1.0/{project_id}/kms/enable-keyPOST /v1.0/{projec", "doc_type":"api", - "kw":"Enabling a CMK,APIs,API Reference", + "kw":"Enabling a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Enabling a CMK", "githuburl":"" }, { "uri":"kms_02_0014.html", + "node_id":"kms_02_0014.xml", "product_code":"kms", - "code":"5", + "code":"17", "des":"This API allows you to disable a CMK. A disabled CMK cannot be used.Only an enabled CMK can be disabled.URI formatPOST /v1.0/{project_id}/kms/disable-keyPOST /v1.0/{proje", "doc_type":"api", - "kw":"Disabling a CMK,APIs,API Reference", + "kw":"Disabling a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Disabling a CMK", "githuburl":"" }, { "uri":"kms_02_0015.html", + "node_id":"kms_02_0015.xml", "product_code":"kms", - "code":"6", + "code":"18", "des":"This API enables you to schedule the deletion of a CMK. A CMK can be scheduled to be deleted after 7 to 1096 days.URI formatPOST /v1.0/{project_id}/kms/schedule-key-delet", "doc_type":"api", - "kw":"Scheduling the Deletion of a CMK,APIs,API Reference", + "kw":"Scheduling the Deletion of a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Scheduling the Deletion of a CMK", "githuburl":"" }, { "uri":"kms_02_0016.html", + "node_id":"kms_02_0016.xml", "product_code":"kms", - "code":"7", + "code":"19", "des":"This API enables you to cancel the scheduled deletion of a CMK.You can cancel the scheduled deletion for a CMK only when the CMK's status is Scheduled deletion.URI format", "doc_type":"api", - "kw":"Canceling the Scheduled Deletion of a CMK,APIs,API Reference", + "kw":"Canceling the Scheduled Deletion of a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Canceling the Scheduled Deletion of a CMK", "githuburl":"" }, { "uri":"kms_02_0017.html", + "node_id":"kms_02_0017.xml", "product_code":"kms", - "code":"8", + "code":"20", "des":"This API allows you to query the list of all CMKs.URI formatPOST /v1.0/{project_id}/kms/list-keysPOST /v1.0/{project_id}/kms/list-keysParameter descriptionParametersParam", "doc_type":"api", - "kw":"Querying the List of CMKs,APIs,API Reference", + "kw":"Querying the List of CMKs,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying the List of CMKs", "githuburl":"" }, { "uri":"kms_02_0018.html", + "node_id":"kms_02_0018.xml", "product_code":"kms", - "code":"9", + "code":"21", "des":"This API allows you to query the details about a CMK.By default, the performance threshold for querying CMK details is 1000 TPS per customer. To apply for higher performa", "doc_type":"api", - "kw":"Querying the Information About a CMK,APIs,API Reference", + "kw":"Querying the Information About a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying the Information About a CMK", "githuburl":"" }, { "uri":"kms_02_0019.html", + "node_id":"kms_02_0019.xml", "product_code":"kms", - "code":"10", + "code":"22", "des":"This API generates a 512-bit random number.URI formatPOST /v1.0/{project_id}/kms/gen-randomPOST /v1.0/{project_id}/kms/gen-randomParameter descriptionParameter descriptio", "doc_type":"api", - "kw":"Creating a Random Number,APIs,API Reference", + "kw":"Creating a Random Number,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Creating a Random Number", "githuburl":"" }, { "uri":"kms_02_0020.html", + "node_id":"kms_02_0020.xml", "product_code":"kms", - "code":"11", + "code":"23", "des":"This API allows you to create a DEK. A returned result includes the plaintext and the ciphertext of a DEK.By default, the performance threshold for creating DEKs is 1000 ", "doc_type":"api", - "kw":"Creating a DEK,APIs,API Reference", + "kw":"Creating a DEK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Creating a DEK", "githuburl":"" }, { "uri":"kms_02_0021.html", + "node_id":"kms_02_0021.xml", "product_code":"kms", - "code":"12", + "code":"24", "des":"This API allows you to create a plaintext-free DEK, that is, the returned result of this API includes only the ciphertext of the DEK.By default, the performance threshold", "doc_type":"api", - "kw":"Creating a Plaintext-Free DEK,APIs,API Reference", + "kw":"Creating a Plaintext-Free DEK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Creating a Plaintext-Free DEK", "githuburl":"" }, { "uri":"kms_02_0022.html", + "node_id":"kms_02_0022.xml", "product_code":"kms", - "code":"13", + "code":"25", "des":"This API enables you to encrypt a DEK using a specified CMK.By default, the performance threshold for encrypting DEKs is 1000 TPS per customer. To apply for higher perfor", "doc_type":"api", - "kw":"Encrypting a DEK,APIs,API Reference", + "kw":"Encrypting a DEK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Encrypting a DEK", "githuburl":"" }, { "uri":"kms_02_0023.html", + "node_id":"kms_02_0023.xml", "product_code":"kms", - "code":"14", + "code":"26", "des":"This API enables you to decrypt a DEK using a specified CMK.Data encryption results are used for decryption.By default, the performance threshold for decrypting DEKs is 1", "doc_type":"api", - "kw":"Decrypting a DEK,APIs,API Reference", + "kw":"Decrypting a DEK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Decrypting a DEK", "githuburl":"" }, { "uri":"kms_02_0024.html", + "node_id":"kms_02_0024.xml", "product_code":"kms", - "code":"15", + "code":"27", "des":"This API is used to query the number of instances, that is, the number of CMKs created.Default Master Keys are automatically created by services and are not included in t", "doc_type":"api", - "kw":"Querying the Number of Instances,APIs,API Reference", + "kw":"Querying the Number of Instances,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying the Number of Instances", "githuburl":"" }, { "uri":"kms_02_0025.html", + "node_id":"kms_02_0025.xml", "product_code":"kms", - "code":"16", + "code":"28", "des":"This API is used to query the quota of a user, that is, the allocated total number of CMKs that can be created by a user and the number of CMKs that has been created by t", "doc_type":"api", - "kw":"Querying the Quota of a User,APIs,API Reference", + "kw":"Querying the Quota of a User,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying the Quota of a User", "githuburl":"" }, { "uri":"kms_02_0026.html", + "node_id":"kms_02_0026.xml", "product_code":"kms", - "code":"17", + "code":"29", "des":"This API enables you to change the alias of a CMK.A Default Master Key (the alias suffix of which is /default) does not allow alias changes.A CMK in Scheduled deletion st", "doc_type":"api", - "kw":"Changing the Alias of a CMK,APIs,API Reference", + "kw":"Changing the Alias of a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Changing the Alias of a CMK", "githuburl":"" }, { "uri":"kms_02_0027.html", + "node_id":"kms_02_0027.xml", "product_code":"kms", - "code":"18", + "code":"30", "des":"This API enables you to change the description of a CMK.A Default Master Key (the alias suffix of which is /default) does not allow alias changes.A CMK in Scheduled delet", "doc_type":"api", - "kw":"Changing the Description of a CMK,APIs,API Reference", + "kw":"Changing the Description of a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Changing the Description of a CMK", "githuburl":"" }, { "uri":"kms_02_0028.html", + "node_id":"kms_02_0028.xml", "product_code":"kms", - "code":"19", + "code":"31", "des":"This API enables you to create a grant to grant permissions on a CMK to a user so that the user can perform operations on the CMK.A Default Master Key (the alias suffix o", "doc_type":"api", - "kw":"Creating a Grant,APIs,API Reference", + "kw":"Creating a Grant,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Creating a Grant", "githuburl":"" }, { "uri":"kms_02_0029.html", + "node_id":"kms_02_0029.xml", "product_code":"kms", - "code":"20", + "code":"32", "des":"This API allows you to revoke a grant.Only the user who created the CMK can revoke a grant.URI formatPOST /v1.0/{project_id}/kms/revoke-grantPOST /v1.0/{project_id}/kms/r", "doc_type":"api", - "kw":"Revoking a Grant,APIs,API Reference", + "kw":"Revoking a Grant,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Revoking a Grant", "githuburl":"" }, { "uri":"kms_02_0030.html", + "node_id":"kms_02_0030.xml", "product_code":"kms", - "code":"21", + "code":"33", "des":"This API enables users to retire a grant.For example, user A grants operation permissions on CMK A/key to user B and authorizes user C to retire the grant. By doing this,", "doc_type":"api", - "kw":"Retiring a Grant,APIs,API Reference", + "kw":"Retiring a Grant,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Retiring a Grant", "githuburl":"" }, { "uri":"kms_02_0031.html", + "node_id":"kms_02_0031.xml", "product_code":"kms", - "code":"22", + "code":"34", "des":"This API enables you to query grants on a CMK.URI formatPOST /v1.0/{project_id}/kms/list-grantsPOST /v1.0/{project_id}/kms/list-grantsParameter descriptionParameter descr", "doc_type":"api", - "kw":"Querying Grants on a CMK,APIs,API Reference", + "kw":"Querying Grants on a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying Grants on a CMK", "githuburl":"" }, { "uri":"kms_02_0032.html", + "node_id":"kms_02_0032.xml", "product_code":"kms", - "code":"23", + "code":"35", "des":"This API enables you to query grants that can be retired.URI formatPOST /v1.0/{project_id}/kms/list-retirable-grantsPOST /v1.0/{project_id}/kms/list-retirable-grantsParam", "doc_type":"api", - "kw":"Querying Grants That Can Be Retired,APIs,API Reference", + "kw":"Querying Grants That Can Be Retired,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying Grants That Can Be Retired", "githuburl":"" }, { - "uri":"kms_02_0035.html", + "uri":"kms_02_0033.html", + "node_id":"kms_02_0033.xml", "product_code":"kms", - "code":"24", + "code":"36", + "des":"This API enables you to encrypt data using a specified CMK.By default, the performance threshold for encrypting data is 1000 TPS per customer. To apply for higher perform", + "doc_type":"api", + "kw":"Encrypting Data,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Encrypting Data", + "githuburl":"" + }, + { + "uri":"kms_02_0034.html", + "node_id":"kms_02_0034.xml", + "product_code":"kms", + "code":"37", + "des":"This API enables you to decrypt data.By default, the performance threshold for decrypting data is 1000 TPS per customer. To apply for higher performance, submit a service", + "doc_type":"api", + "kw":"Decrypting Data,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Decrypting Data", + "githuburl":"" + }, + { + "uri":"Sign.html", + "node_id":"sign.xml", + "product_code":"kms", + "code":"38", + "des":"This API is used to use the private key of an asymmetric key to digitally sign a message or digest.Only the asymmetric key whose key_usage is SIGN_VERIFY can be used for ", + "doc_type":"api", + "kw":"Signing Data,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Signing Data", + "githuburl":"" + }, + { + "uri":"ValidateSignature.html", + "node_id":"validatesignature.xml", + "product_code":"kms", + "code":"39", + "des":"This API uses the private key of an asymmetric key to verify a signature.Only the asymmetric key whose key_usage is SIGN_VERIFY can be used for signature verification.SM2", + "doc_type":"api", + "kw":"Authenticating a Signature,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], + "title":"Authenticating a Signature", + "githuburl":"" + }, + { + "uri":"kms_02_0035.html", + "node_id":"kms_02_0035.xml", + "product_code":"kms", + "code":"40", "des":"This API enables you to obtain necessary parameters to import a CMK, including a CMK import token and a CMK encryption public key.The returned public key type is RSA_2048", "doc_type":"api", - "kw":"Obtaining CMK Import Parameters,APIs,API Reference", + "kw":"Obtaining CMK Import Parameters,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Obtaining CMK Import Parameters", "githuburl":"" }, { "uri":"kms_02_0036.html", + "node_id":"kms_02_0036.xml", "product_code":"kms", - "code":"25", + "code":"41", "des":"This API allows you to import CMK material.URI formatPOST /v1.0/{project_id}/kms/import-key-materialPOST /v1.0/{project_id}/kms/import-key-materialParameter descriptionPa", "doc_type":"api", - "kw":"Importing CMK Material,APIs,API Reference", + "kw":"Importing CMK Material,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Importing CMK Material", "githuburl":"" }, { "uri":"kms_02_0037.html", + "node_id":"kms_02_0037.xml", "product_code":"kms", - "code":"26", + "code":"42", "des":"This API allows you to delete CMK material.URI formatPOST /v1.0/{project_id}/kms/delete-imported-key-materialPOST /v1.0/{project_id}/kms/delete-imported-key-materialParam", "doc_type":"api", - "kw":"Deleting CMK Material,APIs,API Reference", + "kw":"Deleting CMK Material,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Deleting CMK Material", "githuburl":"" }, { "uri":"kms_02_0038.html", + "node_id":"kms_02_0038.xml", "product_code":"kms", - "code":"27", + "code":"43", "des":"This API allows you to enable rotation for a CMK.The default rotation interval is 365 days.CMKs created using imported key materials and Default Master Keys do not suppor", "doc_type":"api", - "kw":"Enabling Rotation for a CMK,APIs,API Reference", + "kw":"Enabling Rotation for a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Enabling Rotation for a CMK", "githuburl":"" }, { "uri":"kms_02_0039.html", + "node_id":"kms_02_0039.xml", "product_code":"kms", - "code":"28", + "code":"44", "des":"This API enables you to change the rotation interval for a CMK.URI formatPOST /v1.0/{project_id}/kms/update-key-rotation-intervalPOST /v1.0/{project_id}/kms/update-key-ro", "doc_type":"api", - "kw":"Changing the Rotation Interval for a CMK,APIs,API Reference", + "kw":"Changing the Rotation Interval for a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Changing the Rotation Interval for a CMK", "githuburl":"" }, { "uri":"kms_02_0040.html", + "node_id":"kms_02_0040.xml", "product_code":"kms", - "code":"29", + "code":"45", "des":"This API allows you to disable rotation for a CMK.URI formatPOST /v1.0/{project_id}/kms/disable-key-rotationPOST /v1.0/{project_id}/kms/disable-key-rotationParameter desc", "doc_type":"api", - "kw":"Disabling Rotation for a CMK,APIs,API Reference", + "kw":"Disabling Rotation for a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Disabling Rotation for a CMK", "githuburl":"" }, { "uri":"kms_02_0041.html", + "node_id":"kms_02_0041.xml", "product_code":"kms", - "code":"30", + "code":"46", "des":"This API enables you to query the rotation status of a CMK.URI formatPOST /v1.0/{project_id}/kms/get-key-rotation-statusPOST /v1.0/{project_id}/kms/get-key-rotation-statu", "doc_type":"api", - "kw":"Querying the Rotation Status of a CMK,APIs,API Reference", + "kw":"Querying the Rotation Status of a CMK,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying the Rotation Status of a CMK", "githuburl":"" }, { "uri":"kms_02_0042.html", + "node_id":"kms_02_0042.xml", "product_code":"kms", - "code":"31", + "code":"47", "des":"This API allows you to query CMK instances.You can use the tag filtering function to query the detailed information about a specified CMK.URI formatPOST /v1.0/{project_id", "doc_type":"api", - "kw":"Querying CMK Instances,APIs,API Reference", + "kw":"Querying CMK Instances,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying CMK Instances", "githuburl":"" }, { "uri":"kms_02_0043.html", + "node_id":"kms_02_0043.xml", "product_code":"kms", - "code":"32", + "code":"48", "des":"This API allows you to query tags of a specified CMK.TMS may use this API to query all tags of a specified CMK.URI formatGET /v1.0/{project_id}/kms/{key_id}/tagsGET /v1.0", "doc_type":"api", - "kw":"Querying CMK Tags,APIs,API Reference", + "kw":"Querying CMK Tags,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying CMK Tags", "githuburl":"" }, { "uri":"kms_02_0044.html", + "node_id":"kms_02_0044.xml", "product_code":"kms", - "code":"33", + "code":"49", "des":"This API enables you to query all tag sets of a specified project.URI formatGET /v1.0/{project_id}/kms/tagsGET /v1.0/{project_id}/kms/tagsParameter descriptionParameter d", "doc_type":"api", - "kw":"Querying Project Tags,APIs,API Reference", + "kw":"Querying Project Tags,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying Project Tags", "githuburl":"" }, { "uri":"kms_02_0045.html", + "node_id":"kms_02_0045.xml", "product_code":"kms", - "code":"34", + "code":"50", "des":"This API enables you to add or delete CMK tags in batches.URI formatPOST /v1.0/{project_id}/kms/{key_id}/tags/actionPOST /v1.0/{project_id}/kms/{key_id}/tags/actionParame", "doc_type":"api", - "kw":"Adding or Deleting CMK Tags in Batches,APIs,API Reference", + "kw":"Adding or Deleting CMK Tags in Batches,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Adding or Deleting CMK Tags in Batches", "githuburl":"" }, { "uri":"kms_02_0046.html", + "node_id":"kms_02_0046.xml", "product_code":"kms", - "code":"35", + "code":"51", "des":"This API allows you to add a CMK tag.URI formatPOST /v1.0/{project_id}/kms/{key_id}/tagsPOST /v1.0/{project_id}/kms/{key_id}/tagsParameter descriptionParameter descriptio", "doc_type":"api", - "kw":"Adding a CMK Tag,APIs,API Reference", + "kw":"Adding a CMK Tag,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Adding a CMK Tag", "githuburl":"" }, { "uri":"kms_02_0047.html", + "node_id":"kms_02_0047.xml", "product_code":"kms", - "code":"36", + "code":"52", "des":"This API enables you to delete a CMK tag.URI formatDELETE /v1.0/{project_id}/kms/{key_id}/tags/{key}DELETE /v1.0/{project_id}/kms/{key_id}/tags/{key}Parameter description", "doc_type":"api", - "kw":"Deleting a CMK Tag,APIs,API Reference", + "kw":"Deleting a CMK Tag,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Deleting a CMK Tag", "githuburl":"" }, { "uri":"kms_02_0048.html", + "node_id":"kms_02_0048.xml", "product_code":"kms", - "code":"37", + "code":"53", "des":"This API is used to query the API versions.URI formatGET /GET /Parameter descriptionNoneNoneNoneThe following describes how to query the version information.Example reque", "doc_type":"api", - "kw":"Querying All API Versions,APIs,API Reference", + "kw":"Querying All API Versions,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying All API Versions", "githuburl":"" }, { "uri":"kms_02_0049.html", + "node_id":"kms_02_0049.xml", "product_code":"kms", - "code":"38", + "code":"54", "des":"This API is used to query the version of an API.URI formatGET /{version_id}GET /{version_id}Parameter descriptionParameter descriptionParameterMandatoryTypeDescriptionver", "doc_type":"api", - "kw":"Querying a Specified API Version,APIs,API Reference", + "kw":"Querying a Specified API Version,CMK Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Querying a Specified API Version", "githuburl":"" }, { - "uri":"dew_02_0307.html", + "uri":"kms_02_0307.html", + "node_id":"kms_02_0307.xml", "product_code":"kms", - "code":"39", + "code":"55", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Permissions Policies and Supported Actions", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Permissions Policies and Supported Actions", "githuburl":"" }, { - "uri":"dew_02_0308.html", + "uri":"kms_02_0308.html", + "node_id":"kms_02_0308.xml", "product_code":"kms", - "code":"40", - "des":"This chapter describes fine-grained permissions management for your KMS. If your account does not need individual IAM users, then you may skip over this chapter.By defaul", + "code":"56", + "des":"This chapter describes fine-grained permissions management for your KMS. If your account does not need individual IAM users, you may skip over this chapter.By default, ne", "doc_type":"api", "kw":"Introduction,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Introduction", "githuburl":"" }, { - "uri":"dew_02_0309.html", + "uri":"kms_02_0309.html", + "node_id":"kms_02_0309.xml", "product_code":"kms", - "code":"41", + "code":"57", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Encryption Key Management,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Encryption Key Management", "githuburl":"" }, { "uri":"kms_02_0300.html", + "node_id":"kms_02_0300.xml", "product_code":"kms", - "code":"42", + "code":"58", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Appendix", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Appendix", "githuburl":"" }, { "uri":"kms_02_0301.html", + "node_id":"kms_02_0301.xml", "product_code":"kms", - "code":"43", + "code":"59", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Status Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Status Codes", "githuburl":"" }, - { - "uri":"kms_02_8888.html", - "product_code":"kms", - "code":"44", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Error Code,Appendix,API Reference", - "title":"Error Code", - "githuburl":"" - }, { "uri":"kms_02_0009.html", + "node_id":"kms_02_0009.xml", "product_code":"kms", - "code":"45", + "code":"60", "des":"A project ID is required for some URLs when an API is called. To obtain a project ID, perform the following operations:Log in to the management console.Click the username", "doc_type":"api", "kw":"Obtaining a Project ID,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Obtaining a Project ID", "githuburl":"" }, { "uri":"kms_02_0305.html", + "node_id":"kms_02_0305.xml", "product_code":"kms", - "code":"46", + "code":"61", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"API Permissions", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], "title":"API Permissions", "githuburl":"" }, { "uri":"kms_02_0306.html", + "node_id":"kms_02_0306.xml", "product_code":"kms", - "code":"47", + "code":"62", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Encryption Key Management,API Permissions,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Encryption Key Management", "githuburl":"" }, { "uri":"kms_02_0304.html", + "node_id":"kms_02_0304.xml", "product_code":"kms", - "code":"48", + "code":"63", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Change History,API Reference", + "search_title":"", + "metedata":[ + { + "opensource":"true", + "IsBot":"Yes", + "IsMulti":"Yes", + "documenttype":"api", + "prodname":"kms" + } + ], "title":"Change History", "githuburl":"" } diff --git a/docs/kms/api-ref/CLASS.TXT.json b/docs/kms/api-ref/CLASS.TXT.json index 34f31c1f..bd5ff664 100644 --- a/docs/kms/api-ref/CLASS.TXT.json +++ b/docs/kms/api-ref/CLASS.TXT.json @@ -1,13 +1,112 @@ [ { - "desc":"Public cloud APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform ", + "desc":"Cloud service APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform", "product_code":"kms", "title":"API Usage Guidelines", - "uri":"en-us_topic_00384375969.html", + "uri":"kms_02_0200.html", "doc_type":"api", "p_code":"", "code":"1" }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"kms", + "title":"Before You Start", + "uri":"kms_02_0050.html", + "doc_type":"api", + "p_code":"", + "code":"2" + }, + { + "desc":"Key Management Service (KMS) is a secure, reliable, and easy-to-use service for managing your keys on the cloud. It helps you easily create, manage, and protect keys.You ", + "product_code":"kms", + "title":"Overview", + "uri":"kms_02_0058.html", + "doc_type":"api", + "p_code":"2", + "code":"3" + }, + { + "desc":"KMS supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS requests. For details about API calling, see Calling APIs.", + "product_code":"kms", + "title":"API Calling", + "uri":"kms_02_0051.html", + "doc_type":"api", + "p_code":"2", + "code":"4" + }, + { + "desc":"An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of all services, see Regions and Endpoints.", + "product_code":"kms", + "title":"Endpoints", + "uri":"kms_02_0052.html", + "doc_type":"api", + "p_code":"2", + "code":"5" + }, + { + "desc":"For more constraints, see the descriptions of specific APIs.", + "product_code":"kms", + "title":"Constraints", + "uri":"kms_02_0053.html", + "doc_type":"api", + "p_code":"2", + "code":"6" + }, + { + "desc":"AccountAn account has full access permissions for all the resources and cloud services under it. It can reset user passwords and grant users permissions. The account is a", + "product_code":"kms", + "title":"Concepts", + "uri":"kms_02_0054.html", + "doc_type":"api", + "p_code":"2", + "code":"7" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"kms", + "title":"Calling APIs", + "uri":"kms_02_0002.html", + "doc_type":"api", + "p_code":"", + "code":"8" + }, + { + "desc":"This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained ", + "product_code":"kms", + "title":"Making an API Request", + "uri":"kms_02_0001.html", + "doc_type":"api", + "p_code":"8", + "code":"9" + }, + { + "desc":"Requests for calling an API can be authenticated using either of the following methods:Token-based authentication: Requests are authenticated using a token.AK/SK-based au", + "product_code":"kms", + "title":"Authentication", + "uri":"kms_02_0003.html", + "doc_type":"api", + "p_code":"8", + "code":"10" + }, + { + "desc":"After sending a request, you will receive a response containing the status code, response header, and response body.A status code is a group of digits ranging from 1xx to", + "product_code":"kms", + "title":"Returned Values", + "uri":"kms_02_0056.html", + "doc_type":"api", + "p_code":"8", + "code":"11" + }, + { + "desc":"You can use all functions of by calling its APIs.", + "product_code":"kms", + "title":"API Overview", + "uri":"kms_02_0057.html", + "doc_type":"api", + "p_code":"", + "code":"12" + }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"kms", @@ -15,7 +114,16 @@ "uri":"kms_02_0010.html", "doc_type":"api", "p_code":"", - "code":"2" + "code":"13" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"kms", + "title":"CMK Management", + "uri":"kms_02_0011.html", + "doc_type":"api", + "p_code":"13", + "code":"14" }, { "desc":"This API is used to create customer master keys (CMKs) used to encrypt data encryption keys (DEKs).Default Master Keys are created by services integrated with KMS. Names ", @@ -23,8 +131,8 @@ "title":"Creating a CMK", "uri":"kms_02_0012.html", "doc_type":"api", - "p_code":"2", - "code":"3" + "p_code":"14", + "code":"15" }, { "desc":"This API allows you to enable a CMK. Only an enabled CMK can be used.Only a disabled CMK can be enabled.URI formatPOST /v1.0/{project_id}/kms/enable-keyPOST /v1.0/{projec", @@ -32,8 +140,8 @@ "title":"Enabling a CMK", "uri":"kms_02_0013.html", "doc_type":"api", - "p_code":"2", - "code":"4" + "p_code":"14", + "code":"16" }, { "desc":"This API allows you to disable a CMK. A disabled CMK cannot be used.Only an enabled CMK can be disabled.URI formatPOST /v1.0/{project_id}/kms/disable-keyPOST /v1.0/{proje", @@ -41,8 +149,8 @@ "title":"Disabling a CMK", "uri":"kms_02_0014.html", "doc_type":"api", - "p_code":"2", - "code":"5" + "p_code":"14", + "code":"17" }, { "desc":"This API enables you to schedule the deletion of a CMK. A CMK can be scheduled to be deleted after 7 to 1096 days.URI formatPOST /v1.0/{project_id}/kms/schedule-key-delet", @@ -50,8 +158,8 @@ "title":"Scheduling the Deletion of a CMK", "uri":"kms_02_0015.html", "doc_type":"api", - "p_code":"2", - "code":"6" + "p_code":"14", + "code":"18" }, { "desc":"This API enables you to cancel the scheduled deletion of a CMK.You can cancel the scheduled deletion for a CMK only when the CMK's status is Scheduled deletion.URI format", @@ -59,8 +167,8 @@ "title":"Canceling the Scheduled Deletion of a CMK", "uri":"kms_02_0016.html", "doc_type":"api", - "p_code":"2", - "code":"7" + "p_code":"14", + "code":"19" }, { "desc":"This API allows you to query the list of all CMKs.URI formatPOST /v1.0/{project_id}/kms/list-keysPOST /v1.0/{project_id}/kms/list-keysParameter descriptionParametersParam", @@ -68,8 +176,8 @@ "title":"Querying the List of CMKs", "uri":"kms_02_0017.html", "doc_type":"api", - "p_code":"2", - "code":"8" + "p_code":"14", + "code":"20" }, { "desc":"This API allows you to query the details about a CMK.By default, the performance threshold for querying CMK details is 1000 TPS per customer. To apply for higher performa", @@ -77,8 +185,8 @@ "title":"Querying the Information About a CMK", "uri":"kms_02_0018.html", "doc_type":"api", - "p_code":"2", - "code":"9" + "p_code":"14", + "code":"21" }, { "desc":"This API generates a 512-bit random number.URI formatPOST /v1.0/{project_id}/kms/gen-randomPOST /v1.0/{project_id}/kms/gen-randomParameter descriptionParameter descriptio", @@ -86,8 +194,8 @@ "title":"Creating a Random Number", "uri":"kms_02_0019.html", "doc_type":"api", - "p_code":"2", - "code":"10" + "p_code":"14", + "code":"22" }, { "desc":"This API allows you to create a DEK. A returned result includes the plaintext and the ciphertext of a DEK.By default, the performance threshold for creating DEKs is 1000 ", @@ -95,8 +203,8 @@ "title":"Creating a DEK", "uri":"kms_02_0020.html", "doc_type":"api", - "p_code":"2", - "code":"11" + "p_code":"14", + "code":"23" }, { "desc":"This API allows you to create a plaintext-free DEK, that is, the returned result of this API includes only the ciphertext of the DEK.By default, the performance threshold", @@ -104,8 +212,8 @@ "title":"Creating a Plaintext-Free DEK", "uri":"kms_02_0021.html", "doc_type":"api", - "p_code":"2", - "code":"12" + "p_code":"14", + "code":"24" }, { "desc":"This API enables you to encrypt a DEK using a specified CMK.By default, the performance threshold for encrypting DEKs is 1000 TPS per customer. To apply for higher perfor", @@ -113,8 +221,8 @@ "title":"Encrypting a DEK", "uri":"kms_02_0022.html", "doc_type":"api", - "p_code":"2", - "code":"13" + "p_code":"14", + "code":"25" }, { "desc":"This API enables you to decrypt a DEK using a specified CMK.Data encryption results are used for decryption.By default, the performance threshold for decrypting DEKs is 1", @@ -122,8 +230,8 @@ "title":"Decrypting a DEK", "uri":"kms_02_0023.html", "doc_type":"api", - "p_code":"2", - "code":"14" + "p_code":"14", + "code":"26" }, { "desc":"This API is used to query the number of instances, that is, the number of CMKs created.Default Master Keys are automatically created by services and are not included in t", @@ -131,8 +239,8 @@ "title":"Querying the Number of Instances", "uri":"kms_02_0024.html", "doc_type":"api", - "p_code":"2", - "code":"15" + "p_code":"14", + "code":"27" }, { "desc":"This API is used to query the quota of a user, that is, the allocated total number of CMKs that can be created by a user and the number of CMKs that has been created by t", @@ -140,8 +248,8 @@ "title":"Querying the Quota of a User", "uri":"kms_02_0025.html", "doc_type":"api", - "p_code":"2", - "code":"16" + "p_code":"14", + "code":"28" }, { "desc":"This API enables you to change the alias of a CMK.A Default Master Key (the alias suffix of which is /default) does not allow alias changes.A CMK in Scheduled deletion st", @@ -149,8 +257,8 @@ "title":"Changing the Alias of a CMK", "uri":"kms_02_0026.html", "doc_type":"api", - "p_code":"2", - "code":"17" + "p_code":"14", + "code":"29" }, { "desc":"This API enables you to change the description of a CMK.A Default Master Key (the alias suffix of which is /default) does not allow alias changes.A CMK in Scheduled delet", @@ -158,8 +266,8 @@ "title":"Changing the Description of a CMK", "uri":"kms_02_0027.html", "doc_type":"api", - "p_code":"2", - "code":"18" + "p_code":"14", + "code":"30" }, { "desc":"This API enables you to create a grant to grant permissions on a CMK to a user so that the user can perform operations on the CMK.A Default Master Key (the alias suffix o", @@ -167,8 +275,8 @@ "title":"Creating a Grant", "uri":"kms_02_0028.html", "doc_type":"api", - "p_code":"2", - "code":"19" + "p_code":"14", + "code":"31" }, { "desc":"This API allows you to revoke a grant.Only the user who created the CMK can revoke a grant.URI formatPOST /v1.0/{project_id}/kms/revoke-grantPOST /v1.0/{project_id}/kms/r", @@ -176,8 +284,8 @@ "title":"Revoking a Grant", "uri":"kms_02_0029.html", "doc_type":"api", - "p_code":"2", - "code":"20" + "p_code":"14", + "code":"32" }, { "desc":"This API enables users to retire a grant.For example, user A grants operation permissions on CMK A/key to user B and authorizes user C to retire the grant. By doing this,", @@ -185,8 +293,8 @@ "title":"Retiring a Grant", "uri":"kms_02_0030.html", "doc_type":"api", - "p_code":"2", - "code":"21" + "p_code":"14", + "code":"33" }, { "desc":"This API enables you to query grants on a CMK.URI formatPOST /v1.0/{project_id}/kms/list-grantsPOST /v1.0/{project_id}/kms/list-grantsParameter descriptionParameter descr", @@ -194,8 +302,8 @@ "title":"Querying Grants on a CMK", "uri":"kms_02_0031.html", "doc_type":"api", - "p_code":"2", - "code":"22" + "p_code":"14", + "code":"34" }, { "desc":"This API enables you to query grants that can be retired.URI formatPOST /v1.0/{project_id}/kms/list-retirable-grantsPOST /v1.0/{project_id}/kms/list-retirable-grantsParam", @@ -203,8 +311,44 @@ "title":"Querying Grants That Can Be Retired", "uri":"kms_02_0032.html", "doc_type":"api", - "p_code":"2", - "code":"23" + "p_code":"14", + "code":"35" + }, + { + "desc":"This API enables you to encrypt data using a specified CMK.By default, the performance threshold for encrypting data is 1000 TPS per customer. To apply for higher perform", + "product_code":"kms", + "title":"Encrypting Data", + "uri":"kms_02_0033.html", + "doc_type":"api", + "p_code":"14", + "code":"36" + }, + { + "desc":"This API enables you to decrypt data.By default, the performance threshold for decrypting data is 1000 TPS per customer. To apply for higher performance, submit a service", + "product_code":"kms", + "title":"Decrypting Data", + "uri":"kms_02_0034.html", + "doc_type":"api", + "p_code":"14", + "code":"37" + }, + { + "desc":"This API is used to use the private key of an asymmetric key to digitally sign a message or digest.Only the asymmetric key whose key_usage is SIGN_VERIFY can be used for ", + "product_code":"kms", + "title":"Signing Data", + "uri":"Sign.html", + "doc_type":"api", + "p_code":"14", + "code":"38" + }, + { + "desc":"This API uses the private key of an asymmetric key to verify a signature.Only the asymmetric key whose key_usage is SIGN_VERIFY can be used for signature verification.SM2", + "product_code":"kms", + "title":"Authenticating a Signature", + "uri":"ValidateSignature.html", + "doc_type":"api", + "p_code":"14", + "code":"39" }, { "desc":"This API enables you to obtain necessary parameters to import a CMK, including a CMK import token and a CMK encryption public key.The returned public key type is RSA_2048", @@ -212,8 +356,8 @@ "title":"Obtaining CMK Import Parameters", "uri":"kms_02_0035.html", "doc_type":"api", - "p_code":"2", - "code":"24" + "p_code":"14", + "code":"40" }, { "desc":"This API allows you to import CMK material.URI formatPOST /v1.0/{project_id}/kms/import-key-materialPOST /v1.0/{project_id}/kms/import-key-materialParameter descriptionPa", @@ -221,8 +365,8 @@ "title":"Importing CMK Material", "uri":"kms_02_0036.html", "doc_type":"api", - "p_code":"2", - "code":"25" + "p_code":"14", + "code":"41" }, { "desc":"This API allows you to delete CMK material.URI formatPOST /v1.0/{project_id}/kms/delete-imported-key-materialPOST /v1.0/{project_id}/kms/delete-imported-key-materialParam", @@ -230,8 +374,8 @@ "title":"Deleting CMK Material", "uri":"kms_02_0037.html", "doc_type":"api", - "p_code":"2", - "code":"26" + "p_code":"14", + "code":"42" }, { "desc":"This API allows you to enable rotation for a CMK.The default rotation interval is 365 days.CMKs created using imported key materials and Default Master Keys do not suppor", @@ -239,8 +383,8 @@ "title":"Enabling Rotation for a CMK", "uri":"kms_02_0038.html", "doc_type":"api", - "p_code":"2", - "code":"27" + "p_code":"14", + "code":"43" }, { "desc":"This API enables you to change the rotation interval for a CMK.URI formatPOST /v1.0/{project_id}/kms/update-key-rotation-intervalPOST /v1.0/{project_id}/kms/update-key-ro", @@ -248,8 +392,8 @@ "title":"Changing the Rotation Interval for a CMK", "uri":"kms_02_0039.html", "doc_type":"api", - "p_code":"2", - "code":"28" + "p_code":"14", + "code":"44" }, { "desc":"This API allows you to disable rotation for a CMK.URI formatPOST /v1.0/{project_id}/kms/disable-key-rotationPOST /v1.0/{project_id}/kms/disable-key-rotationParameter desc", @@ -257,8 +401,8 @@ "title":"Disabling Rotation for a CMK", "uri":"kms_02_0040.html", "doc_type":"api", - "p_code":"2", - "code":"29" + "p_code":"14", + "code":"45" }, { "desc":"This API enables you to query the rotation status of a CMK.URI formatPOST /v1.0/{project_id}/kms/get-key-rotation-statusPOST /v1.0/{project_id}/kms/get-key-rotation-statu", @@ -266,8 +410,8 @@ "title":"Querying the Rotation Status of a CMK", "uri":"kms_02_0041.html", "doc_type":"api", - "p_code":"2", - "code":"30" + "p_code":"14", + "code":"46" }, { "desc":"This API allows you to query CMK instances.You can use the tag filtering function to query the detailed information about a specified CMK.URI formatPOST /v1.0/{project_id", @@ -275,8 +419,8 @@ "title":"Querying CMK Instances", "uri":"kms_02_0042.html", "doc_type":"api", - "p_code":"2", - "code":"31" + "p_code":"14", + "code":"47" }, { "desc":"This API allows you to query tags of a specified CMK.TMS may use this API to query all tags of a specified CMK.URI formatGET /v1.0/{project_id}/kms/{key_id}/tagsGET /v1.0", @@ -284,8 +428,8 @@ "title":"Querying CMK Tags", "uri":"kms_02_0043.html", "doc_type":"api", - "p_code":"2", - "code":"32" + "p_code":"14", + "code":"48" }, { "desc":"This API enables you to query all tag sets of a specified project.URI formatGET /v1.0/{project_id}/kms/tagsGET /v1.0/{project_id}/kms/tagsParameter descriptionParameter d", @@ -293,8 +437,8 @@ "title":"Querying Project Tags", "uri":"kms_02_0044.html", "doc_type":"api", - "p_code":"2", - "code":"33" + "p_code":"14", + "code":"49" }, { "desc":"This API enables you to add or delete CMK tags in batches.URI formatPOST /v1.0/{project_id}/kms/{key_id}/tags/actionPOST /v1.0/{project_id}/kms/{key_id}/tags/actionParame", @@ -302,8 +446,8 @@ "title":"Adding or Deleting CMK Tags in Batches", "uri":"kms_02_0045.html", "doc_type":"api", - "p_code":"2", - "code":"34" + "p_code":"14", + "code":"50" }, { "desc":"This API allows you to add a CMK tag.URI formatPOST /v1.0/{project_id}/kms/{key_id}/tagsPOST /v1.0/{project_id}/kms/{key_id}/tagsParameter descriptionParameter descriptio", @@ -311,8 +455,8 @@ "title":"Adding a CMK Tag", "uri":"kms_02_0046.html", "doc_type":"api", - "p_code":"2", - "code":"35" + "p_code":"14", + "code":"51" }, { "desc":"This API enables you to delete a CMK tag.URI formatDELETE /v1.0/{project_id}/kms/{key_id}/tags/{key}DELETE /v1.0/{project_id}/kms/{key_id}/tags/{key}Parameter description", @@ -320,8 +464,8 @@ "title":"Deleting a CMK Tag", "uri":"kms_02_0047.html", "doc_type":"api", - "p_code":"2", - "code":"36" + "p_code":"14", + "code":"52" }, { "desc":"This API is used to query the API versions.URI formatGET /GET /Parameter descriptionNoneNoneNoneThe following describes how to query the version information.Example reque", @@ -329,8 +473,8 @@ "title":"Querying All API Versions", "uri":"kms_02_0048.html", "doc_type":"api", - "p_code":"2", - "code":"37" + "p_code":"14", + "code":"53" }, { "desc":"This API is used to query the version of an API.URI formatGET /{version_id}GET /{version_id}Parameter descriptionParameter descriptionParameterMandatoryTypeDescriptionver", @@ -338,35 +482,35 @@ "title":"Querying a Specified API Version", "uri":"kms_02_0049.html", "doc_type":"api", - "p_code":"2", - "code":"38" + "p_code":"14", + "code":"54" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"kms", "title":"Permissions Policies and Supported Actions", - "uri":"dew_02_0307.html", + "uri":"kms_02_0307.html", "doc_type":"api", "p_code":"", - "code":"39" + "code":"55" }, { - "desc":"This chapter describes fine-grained permissions management for your KMS. If your account does not need individual IAM users, then you may skip over this chapter.By defaul", + "desc":"This chapter describes fine-grained permissions management for your KMS. If your account does not need individual IAM users, you may skip over this chapter.By default, ne", "product_code":"kms", "title":"Introduction", - "uri":"dew_02_0308.html", + "uri":"kms_02_0308.html", "doc_type":"api", - "p_code":"39", - "code":"40" + "p_code":"55", + "code":"56" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"kms", "title":"Encryption Key Management", - "uri":"dew_02_0309.html", + "uri":"kms_02_0309.html", "doc_type":"api", - "p_code":"39", - "code":"41" + "p_code":"55", + "code":"57" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -375,7 +519,7 @@ "uri":"kms_02_0300.html", "doc_type":"api", "p_code":"", - "code":"42" + "code":"58" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -383,17 +527,8 @@ "title":"Status Codes", "uri":"kms_02_0301.html", "doc_type":"api", - "p_code":"42", - "code":"43" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"kms", - "title":"Error Code", - "uri":"kms_02_8888.html", - "doc_type":"api", - "p_code":"42", - "code":"44" + "p_code":"58", + "code":"59" }, { "desc":"A project ID is required for some URLs when an API is called. To obtain a project ID, perform the following operations:Log in to the management console.Click the username", @@ -401,8 +536,8 @@ "title":"Obtaining a Project ID", "uri":"kms_02_0009.html", "doc_type":"api", - "p_code":"42", - "code":"45" + "p_code":"58", + "code":"60" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -410,8 +545,8 @@ "title":"API Permissions", "uri":"kms_02_0305.html", "doc_type":"api", - "p_code":"42", - "code":"46" + "p_code":"58", + "code":"61" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -419,8 +554,8 @@ "title":"Encryption Key Management", "uri":"kms_02_0306.html", "doc_type":"api", - "p_code":"46", - "code":"47" + "p_code":"61", + "code":"62" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -429,6 +564,6 @@ "uri":"kms_02_0304.html", "doc_type":"api", "p_code":"", - "code":"48" + "code":"63" } ] \ No newline at end of file diff --git a/docs/kms/api-ref/Sign.html b/docs/kms/api-ref/Sign.html new file mode 100644 index 00000000..9ec10af5 --- /dev/null +++ b/docs/kms/api-ref/Sign.html @@ -0,0 +1,554 @@ + + +

Signing Data

+

Function

+
+

Constraints

+
+

URI

POST /v1.0/{project_id}/kms/sign

+ +
+ + + + + + + + + + + +
Table 1 URI parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameter

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. The token can be obtained by calling the IAM API. (The token is the value of X-Subject-Token in the response header.)

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameter

Parameter

+

Mandatory

+

Type

+

Description

+

key_id

+

Yes

+

String

+

36-byte ID of a CMK that matches the regular expression ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ Example: 0d0466b0-e727-4d9c-b35d-f84bb474a37f

+

message

+

Yes

+

String

+

Message digest or message to be signed. The message must be encoded using Base64 and be less than 4096 bytes.

+

signing_algorithm

+

Yes

+

String

+

Signature algorithm. Its value can be:

+
  • RSASSA_PSS_SHA_256
  • RSASSA_PSS_SHA_384
  • RSASSA_PSS_SHA_512
  • RSASSA_PKCS1_V1_5_SHA_256
  • RSASSA_PKCS1_V1_5_SHA_384
  • RSASSA_PKCS1_V1_5_SHA_512
  • ECDSA_SHA_256
  • ECDSA_SHA_384
  • ECDSA_SHA_512
  • SM2DSA_SM3
+

message_type

+

No

+

String

+

Message type. The default value is DIGEST. Its value can be:

+
  • DIGEST (message digest)
  • RAW (original message)
+

sequence

+

No

+

String

+

36-byte serial number of a request message. Example: 919c82d4-8046-4722-9094-35c3c6524cff

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

key_id

+

String

+

CMK ID

+

signature

+

String

+

Signature value, which is encoded using Base64

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 401

+ +
+ + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 403

+ +
+ + + + + + + + + +
Table 9 Response body parameter

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 10 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 404

+ +
+ + + + + + + + + +
Table 11 Response body parameter

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 12 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 14 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 502

+ +
+ + + + + + + + + +
Table 15 Response body parameters

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 16 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 504

+ +
+ + + + + + + + + +
Table 17 Response body parameter

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 18 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+
+

Example Request

The following uses the RSASSA_PKCS1_V1_5_SHA_256 signature algorithm to sign the raw message.

+
{
+ "key_id": "968d6cf0-feb6-42c6-bb30-d69f74f2d5f9",
+ "message": "aGVsbG8g",
+ "signing_algorithm": "RSASSA_PSS_SHA_256",
+ "message_type": "RAW"
+}
+
+

+

The following uses the RSASSA_PKCS1_V1_5_SHA_256 signature algorithm to sign the digest message.

+
{
+ "key_id": "968d6cf0-feb6-42c6-bb30-d69f74f2d5f9",
+ "message": "iNQmb9TmM40TuEX88olXnSCciXgjuSF9o+Fhk28DFYK=",
+ "signing_algorithm": "RSASSA_PSS_SHA_256",
+ "message_type": "DIGEST"
+}
+

Example Response

Status code: 200

+

The following shows that the request for signing the raw message using the RSASSA_PKCS1_V1_5_SHA_256 signature algorithm is successful.

+
{
+ "key_id": "968d6cf0-feb6-42c6-bb30-d69f74f2d5f9",
+ "signature": "BqhL4PFPMNIXyEld3qviF7uqqnqlm9TcVCUN9FTRCr6KGreHIvwE4YuAc+eLWVSCGRd3bQHhDOQ9GlWjixGengwBix1RPP0qxtn2p7kQxkC2j76VjKCwqAsAy4MyxjN8RNOdnVCpOObDGoLxPHxUwNvSqZ6GxQKZ4cHPXVH0r/jH9csgk6IUr6ATyto+IcNWSvD03LfaNRQ+Rvc5tOzNFpFrMnVl319UG9ANscq1ne67VW2uQIf74Osg9DYzbJTf/xqW5GFi3ZoeQUu+gMxwgQp3pkuYhygjw6a8Qy9ZNMHmWnY199SzHrxgIq3ymQzUU5zrikKMColX2goPXf5fxQ=="
+}
+
+

+

The following shows that the request for signing the digest message using the RSASSA_PKCS1_V1_5_SHA_256 signature algorithm is successful.

+
{
+ "key_id": "968d6cf0-feb6-42c6-bb30-d69f74f2d5f9",
+ "signature": "M8Gqrm7EyyCPckMs90D7IOlUPCMHhoBh+nz9ySvdbOi7JMrl0ei+2lb+CQ2ZJN+pu7mftotq7/sHt0wWsDl8IOywYSBtWEmLW6AHnEPMykG/A9/Dp3kRuuKFoouCzWXeZyhIrzRUunAK5j5njcY/yTf6T8M+zBy1nAApb8WcHUen9/j7+X348iOnsSuWNVfXxy3NX41v9kLn6x115UDA/798VLSoMbsjcXKgdf/3GoZRYjcHxiX6s71/RWsQYme68qQN2B0q8Y9lk6rQxrw/AXHFoeaphYb7PriURRx0GxhOEEHb/9Tcr39Zlh3bbl/2aF3ytJORWIqatLtqgJ4uEA=="
+}
+

Status Code

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request has succeeded.

+

400

+

Invalid request parameters.

+

401

+

Username and password are required to access the page requested.

+

403

+

Authentication failed.

+

404

+

The requested resource does not exist or is not found.

+

500

+

Internal service error.

+

502

+

Failed to complete the request. The server receives an invalid response from the upstream server.

+

504

+

Gateway timed out.

+
+
+
+
+
+ +
+ diff --git a/docs/kms/api-ref/ValidateSignature.html b/docs/kms/api-ref/ValidateSignature.html new file mode 100644 index 00000000..3c1e6988 --- /dev/null +++ b/docs/kms/api-ref/ValidateSignature.html @@ -0,0 +1,548 @@ + + +

Authenticating a Signature

+

Function

+
+

Constraints

+
+

URI

POST /v1.0/{project_id}/kms/verify

+ +
+ + + + + + + + + + + +
Table 1 URI parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameter

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. The token can be obtained by calling the IAM API. (The token is the value of X-Subject-Token in the response header.)

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

key_id

+

Yes

+

String

+

36-byte ID of a CMK that matches the regular expression ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$ Example: 0d0466b0-e727-4d9c-b35d-f84bb474a37f

+

message

+

Yes

+

String

+

Message digest or message to be signed. The message must be encoded using Base64 and be less than 4096 bytes.

+

signature

+

Yes

+

String

+

Signature value to be verified, which is encoded using Base64.

+

signing_algorithm

+

Yes

+

String

+

Signature algorithm. Its value can be:

+
  • RSASSA_PSS_SHA_256
  • RSASSA_PSS_SHA_384
  • RSASSA_PSS_SHA_512
  • RSASSA_PKCS1_V1_5_SHA_256
  • RSASSA_PKCS1_V1_5_SHA_384
  • RSASSA_PKCS1_V1_5_SHA_512
  • ECDSA_SHA_256
  • ECDSA_SHA_384
  • ECDSA_SHA_512
  • SM2DSA_SM3
+

message_type

+

No

+

String

+

Message type. The default value is DIGEST. Its value can be:

+
  • DIGEST (message digest)
  • RAW (original message)
+

sequence

+

No

+

String

+

36-byte serial number of a request message Example: 919c82d4-8046-4722-9094-35c3c6524cff

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

key_id

+

String

+

CMK ID

+

signature_valid

+

String

+

Whether the signature is valid. Its value can be true (valid) or false (invalid).

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 401

+ +
+ + + + + + + + + +
Table 7 Response body parameter

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 403

+ +
+ + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 10 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 404

+ +
+ + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 12 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 13 Response body parameter

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 14 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 502

+ +
+ + + + + + + + + +
Table 15 Response body parameters

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 16 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+

Status code: 504

+ +
+ + + + + + + + + +
Table 17 Response body parameters

Parameter

+

Type

+

Description

+

error

+

Object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 18 ErrorDetail

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error information

+
+
+
+

Example Request

{
+  "key_id" : "0d0466b0-e727-4d9c-b35d-f84bb474a37f",
+  "signing_algorithm" : "RSASSA_PKCS1_V1_5_SHA_256",
+  "signature" : "jFUqQESGBc0j6k9BozzrP9YL4qk8/W9DZRvK6XXX...",
+  "message" : "MmFiZWE0ZjI3ZGIxYTkzY2RmYmEzM2YwMTA1YmJjYw=="
+}
+
+

Example Response

Status code: 200

+

The request has succeeded.

+
{
+  "key_id" : "0d0466b0-e727-4d9c-b35d-f84bb474a37f",
+  "signature_valid" : "true"
+}
+
+

Status Code

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request has succeeded.

+

400

+

Invalid request parameters.

+

401

+

Username and password are required to access the page requested.

+

403

+

Authentication failed.

+

404

+

The requested resource does not exist or is not found.

+

500

+

Internal service error.

+

502

+

Failed to complete the request. The server receives an invalid response from the upstream server.

+

504

+

Gateway timed out.

+
+
+
+
+
+ +
+ diff --git a/docs/kms/api-ref/en-us_image_0218769431.png b/docs/kms/api-ref/en-us_image_0218769431.png new file mode 100644 index 00000000..d4a37a97 Binary files /dev/null and b/docs/kms/api-ref/en-us_image_0218769431.png differ diff --git a/docs/kms/api-ref/en-us_image_0264400728.png b/docs/kms/api-ref/en-us_image_0264400728.png new file mode 100644 index 00000000..786fa1ca Binary files /dev/null and b/docs/kms/api-ref/en-us_image_0264400728.png differ diff --git a/docs/kms/api-ref/en-us_topic_00384375969.html b/docs/kms/api-ref/en-us_topic_00384375969.html deleted file mode 100644 index 3e778c8f..00000000 --- a/docs/kms/api-ref/en-us_topic_00384375969.html +++ /dev/null @@ -1,8 +0,0 @@ - - -

API Usage Guidelines

-

Public cloud APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://Endpoint/uri. In the URL, uri indicates the resource path, that is, the API access path.

-

Public cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted by using JSON messages, with media type represented by Application/json.

-

For details about how to use APIs, see API Usage Guidelines.

-
- diff --git a/docs/kms/api-ref/kms_02_0001.html b/docs/kms/api-ref/kms_02_0001.html new file mode 100644 index 00000000..a5550105 --- /dev/null +++ b/docs/kms/api-ref/kms_02_0001.html @@ -0,0 +1,70 @@ + + +

Making an API Request

+

This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained token can then be used to authenticate the calling of other APIs.

+

Request URI

A request URI is in the following format:

+

{URI-scheme} :// {Endpoint} / {resource-path} ? {query-string}

+

Although a request URI is included in the request header, most programming languages or frameworks require the request URI to be transmitted separately.

+ +

To simplify the URI display in this document, each API is provided only with a resource-path and a request method. The URI-scheme of all APIs is HTTPS, and the endpoints of all APIs in the same region are identical.

+
+
+

Request Methods

The HTTP protocol defines the following request methods that can be used to send a request to the server:

+ +

For example, in the case of the API used to obtain a user token, the request method is POST. The request is as follows:

+
POST https://{{endpoint}}/v3/auth/tokens
+
+

Request Header

You can also add additional header fields to a request, such as the fields required by a specified URI or HTTP method. For example, to request for the authentication information, add Content-Type, which specifies the request body type.

+

Common request header fields are as follows:

+ +

The API used to obtain a user token does not require authentication. Therefore, only the Content-Type field needs to be added to requests for calling the API. An example of such requests is as follows:

+
POST https://{{endpoint}}/v3/auth/tokens
+Content-Type: application/json
+
+

Request Body

The body of a request is often sent in a structured format as specified in the Content-Type header field. The request body transfers content except the request header.

+

The request body varies between APIs. Some APIs do not require the request body, such as the APIs requested using the GET and DELETE methods.

+

In the case of the API used to obtain a user token, the request parameters and parameter description can be obtained from the API request. The following provides an example request with a body included. Set username to the name of a user, domainname to the name of the account that the user belongs to, ******** to the user's login password, and xxxxxxxxxxxxxxxxxx to the project name. You can learn more information about projects from .

+

The scope parameter specifies where a token takes effect. You can set scope to an account or a project under an account. In the following example, the token takes effect only for the resources in a specified project. For more information about this API, see Obtaining a User Token.

+
+
+POST https://{{endpoint}}/v3/auth/tokens
+Content-Type: application/json
+{
+    "auth": {
+        "identity": {
+            "methods": [
+                "password"
+            ],
+            "password": {
+                "user": {
+                    "name": "username",
+                    "password": "********",
+                    "domain": {
+                        "name": "domainname"
+                    }
+                }
+            }
+        },
+        "scope": {
+            "project": {
+                "name": "xxxxxxxxxxxxxxxxxx"
+            }
+        }
+    }
+}
+

If all data required for the API request is available, you can send the request to call the API through curl, Postman, or coding. In the response to the API used to obtain a user token, x-subject-token is the desired user token. This token can then be used to authenticate the calling of other APIs.

+
+
+
+ +
+ diff --git a/docs/kms/api-ref/kms_02_0002.html b/docs/kms/api-ref/kms_02_0002.html new file mode 100644 index 00000000..a247efd9 --- /dev/null +++ b/docs/kms/api-ref/kms_02_0002.html @@ -0,0 +1,15 @@ + + +

Calling APIs

+
+
+ +
+ diff --git a/docs/kms/api-ref/kms_02_0003.html b/docs/kms/api-ref/kms_02_0003.html new file mode 100644 index 00000000..6ede47ac --- /dev/null +++ b/docs/kms/api-ref/kms_02_0003.html @@ -0,0 +1,12 @@ + + +

Authentication

+
Requests for calling an API can be authenticated using either of the following methods: +
+
+
+ +
+ diff --git a/docs/kms/api-ref/kms_02_0010.html b/docs/kms/api-ref/kms_02_0010.html index dc200bc6..de22ed87 100644 --- a/docs/kms/api-ref/kms_02_0010.html +++ b/docs/kms/api-ref/kms_02_0010.html @@ -4,77 +4,7 @@
diff --git a/docs/kms/api-ref/kms_02_0011.html b/docs/kms/api-ref/kms_02_0011.html new file mode 100644 index 00000000..2edec35a --- /dev/null +++ b/docs/kms/api-ref/kms_02_0011.html @@ -0,0 +1,97 @@ + + + +

CMK Management

+ +

+
+ +
+ + + +
+ diff --git a/docs/kms/api-ref/kms_02_0012.html b/docs/kms/api-ref/kms_02_0012.html index 292c38a2..c6777be7 100644 --- a/docs/kms/api-ref/kms_02_0012.html +++ b/docs/kms/api-ref/kms_02_0012.html @@ -51,6 +51,26 @@

Alias of a non-default master key (The alias's length ranges from 1 to 255 characters and matches the regular expression ^[a-zA-Z0-9:/_-]{1,255}$. In addition, it must be different from the alias of a Default Master Key created by the system.)

+

key_spec

+ +

No

+ +

String

+ +

Key generation algorithm. The default value is AES_256. Its value can be:

+ + + +

key_usage

+ +

No

+ +

String

+ +

Key usage. The default value is ENCRYPT_DECRYPT for a symmetric key and SIGN_VERIFY for an asymmetric key. Its value can be:

+ + +

key_description

No

@@ -184,7 +204,7 @@
diff --git a/docs/kms/api-ref/kms_02_0013.html b/docs/kms/api-ref/kms_02_0013.html index 612b1796..e90daf4a 100644 --- a/docs/kms/api-ref/kms_02_0013.html +++ b/docs/kms/api-ref/kms_02_0013.html @@ -168,7 +168,7 @@
diff --git a/docs/kms/api-ref/kms_02_0014.html b/docs/kms/api-ref/kms_02_0014.html index c82b4206..dd1dc625 100644 --- a/docs/kms/api-ref/kms_02_0014.html +++ b/docs/kms/api-ref/kms_02_0014.html @@ -167,7 +167,7 @@
diff --git a/docs/kms/api-ref/kms_02_0015.html b/docs/kms/api-ref/kms_02_0015.html index e7fd6dd5..bfea36fc 100644 --- a/docs/kms/api-ref/kms_02_0015.html +++ b/docs/kms/api-ref/kms_02_0015.html @@ -150,7 +150,7 @@
diff --git a/docs/kms/api-ref/kms_02_0016.html b/docs/kms/api-ref/kms_02_0016.html index fbdf65b0..543083ac 100644 --- a/docs/kms/api-ref/kms_02_0016.html +++ b/docs/kms/api-ref/kms_02_0016.html @@ -143,7 +143,7 @@
diff --git a/docs/kms/api-ref/kms_02_0017.html b/docs/kms/api-ref/kms_02_0017.html index f7a564c5..ad32feec 100644 --- a/docs/kms/api-ref/kms_02_0017.html +++ b/docs/kms/api-ref/kms_02_0017.html @@ -221,7 +221,7 @@
diff --git a/docs/kms/api-ref/kms_02_0018.html b/docs/kms/api-ref/kms_02_0018.html index 4ca732da..8f76b583 100644 --- a/docs/kms/api-ref/kms_02_0018.html +++ b/docs/kms/api-ref/kms_02_0018.html @@ -269,7 +269,7 @@
diff --git a/docs/kms/api-ref/kms_02_0019.html b/docs/kms/api-ref/kms_02_0019.html index 69ba02fe..d11b5836 100644 --- a/docs/kms/api-ref/kms_02_0019.html +++ b/docs/kms/api-ref/kms_02_0019.html @@ -1,7 +1,7 @@

Creating a Random Number

-

Function

This API generates a 512-bit random number.

+

Function

This API generates a 512-bit random number.

URI

  • URI format

    POST /v1.0/{project_id}/kms/gen-random

  • Parameter description @@ -128,7 +128,7 @@
diff --git a/docs/kms/api-ref/kms_02_0020.html b/docs/kms/api-ref/kms_02_0020.html index 8e0a6770..6ece4b90 100644 --- a/docs/kms/api-ref/kms_02_0020.html +++ b/docs/kms/api-ref/kms_02_0020.html @@ -59,7 +59,7 @@

Key-value pairs with a maximum length of 8192 characters. This parameter is used to record resource context information, excluding sensitive information, to ensure data integrity.

If this parameter is specified during encryption, it is also required for decryption.

-

Example: {"Key1":"Value1","Key2":"Value2"}

+

Example: {"Key1":"Value1","Key2":"Value2"}

datakey_length

@@ -171,7 +171,7 @@
diff --git a/docs/kms/api-ref/kms_02_0021.html b/docs/kms/api-ref/kms_02_0021.html index 6b273e55..9d80c167 100644 --- a/docs/kms/api-ref/kms_02_0021.html +++ b/docs/kms/api-ref/kms_02_0021.html @@ -32,7 +32,7 @@

Requests

-
Table 2 Request parameters

Parameter

+
@@ -60,7 +60,7 @@
Table 2 Request parameters

Parameter

Mandatory

Key-value pairs with a maximum length of 8192 characters. This parameter is used to record resource context information, excluding sensitive information, to ensure data integrity.

If this parameter is specified during encryption, it is also required for decryption.

-

Example: {"Key1":"Value1","Key2":"Value2"}

+

Example: {"Key1":"Value1","Key2":"Value2"}

datakey_length

@@ -87,7 +87,7 @@

Responses

-
Table 3 Response parameters

Parameter

+
@@ -162,7 +162,7 @@
diff --git a/docs/kms/api-ref/kms_02_0022.html b/docs/kms/api-ref/kms_02_0022.html index 1b134023..7f35e2fb 100644 --- a/docs/kms/api-ref/kms_02_0022.html +++ b/docs/kms/api-ref/kms_02_0022.html @@ -32,7 +32,7 @@

Requests

-
Table 3 Response parameters

Parameter

Mandatory

Table 2 Request parameters

Parameter

+
@@ -60,7 +60,7 @@
Table 2 Request parameters

Parameter

Mandatory

Key-value pairs with a maximum length of 8192 characters. This parameter is used to record resource context information, excluding sensitive information, to ensure data integrity.

If this parameter is specified during encryption, it is also required for decryption.

-

Example: {"Key1":"Value1","Key2":"Value2"}

+

Example: {"Key1":"Value1","Key2":"Value2"}

plain_text

@@ -97,7 +97,7 @@

Responses

-
Table 3 Response parameters

Parameter

+
@@ -201,7 +201,7 @@ public static String bytesToHexString(byte[] digest) {
diff --git a/docs/kms/api-ref/kms_02_0023.html b/docs/kms/api-ref/kms_02_0023.html index d6b67f49..30c6f05f 100644 --- a/docs/kms/api-ref/kms_02_0023.html +++ b/docs/kms/api-ref/kms_02_0023.html @@ -33,7 +33,7 @@

Requests

-
Table 3 Response parameters

Parameter

Mandatory

Table 2 Request parameters

Parameter

+
@@ -61,7 +61,7 @@
Table 2 Request parameters

Parameter

Mandatory

Key-value pairs with a maximum length of 8192 characters. This parameter is used to record resource context information, excluding sensitive information, to ensure data integrity.

If this parameter is specified during encryption, it is also required for decryption.

-

Example: {"Key1":"Value1","Key2":"Value2"}

+

Example: {"Key1":"Value1","Key2":"Value2"}

cipher_text

@@ -97,7 +97,7 @@

Responses

-
Table 3 Response parameters

Parameter

+
@@ -184,7 +184,7 @@
diff --git a/docs/kms/api-ref/kms_02_0024.html b/docs/kms/api-ref/kms_02_0024.html index 4b7f6a45..83bbefce 100644 --- a/docs/kms/api-ref/kms_02_0024.html +++ b/docs/kms/api-ref/kms_02_0024.html @@ -95,7 +95,7 @@
diff --git a/docs/kms/api-ref/kms_02_0025.html b/docs/kms/api-ref/kms_02_0025.html index 7abab325..d295c9c9 100644 --- a/docs/kms/api-ref/kms_02_0025.html +++ b/docs/kms/api-ref/kms_02_0025.html @@ -175,7 +175,7 @@
diff --git a/docs/kms/api-ref/kms_02_0026.html b/docs/kms/api-ref/kms_02_0026.html index c02624dd..8e1e0ea3 100644 --- a/docs/kms/api-ref/kms_02_0026.html +++ b/docs/kms/api-ref/kms_02_0026.html @@ -176,7 +176,7 @@
diff --git a/docs/kms/api-ref/kms_02_0027.html b/docs/kms/api-ref/kms_02_0027.html index 81e8680c..bf02a748 100644 --- a/docs/kms/api-ref/kms_02_0027.html +++ b/docs/kms/api-ref/kms_02_0027.html @@ -176,7 +176,7 @@
diff --git a/docs/kms/api-ref/kms_02_0028.html b/docs/kms/api-ref/kms_02_0028.html index 9e1f94f4..1a76da2e 100644 --- a/docs/kms/api-ref/kms_02_0028.html +++ b/docs/kms/api-ref/kms_02_0028.html @@ -32,9 +32,9 @@

Requests

-
Table 3 Response parameters

Parameter

Mandatory

Table 2 Request parameters

Parameter

+
- @@ -92,6 +92,16 @@

Example: 0d0466b00d0466b00d0466b00d0466b0

+ + + + +
Table 2 Request parameters

Parameter

Mandatory

+

Mandatory

Type

grantee_principal_type

+

No

+

String

+

Authorization type

+

Values: user, domain. The default value is user.

+

sequence

No

@@ -107,9 +117,9 @@

Responses

-
Table 3 Response parameters

Parameter

+
- @@ -179,7 +189,7 @@
diff --git a/docs/kms/api-ref/kms_02_0029.html b/docs/kms/api-ref/kms_02_0029.html index aa22324f..7d295523 100644 --- a/docs/kms/api-ref/kms_02_0029.html +++ b/docs/kms/api-ref/kms_02_0029.html @@ -119,7 +119,7 @@
diff --git a/docs/kms/api-ref/kms_02_0030.html b/docs/kms/api-ref/kms_02_0030.html index b2be476f..dc788b64 100644 --- a/docs/kms/api-ref/kms_02_0030.html +++ b/docs/kms/api-ref/kms_02_0030.html @@ -121,7 +121,7 @@
diff --git a/docs/kms/api-ref/kms_02_0031.html b/docs/kms/api-ref/kms_02_0031.html index 9c716de7..79b9aade 100644 --- a/docs/kms/api-ref/kms_02_0031.html +++ b/docs/kms/api-ref/kms_02_0031.html @@ -286,7 +286,7 @@
diff --git a/docs/kms/api-ref/kms_02_0032.html b/docs/kms/api-ref/kms_02_0032.html index d47aad4d..28c2c270 100644 --- a/docs/kms/api-ref/kms_02_0032.html +++ b/docs/kms/api-ref/kms_02_0032.html @@ -182,7 +182,7 @@
diff --git a/docs/kms/api-ref/kms_02_0033.html b/docs/kms/api-ref/kms_02_0033.html new file mode 100644 index 00000000..0664d3bb --- /dev/null +++ b/docs/kms/api-ref/kms_02_0033.html @@ -0,0 +1,169 @@ + + +

Encrypting Data

+

Function

This API enables you to encrypt data using a specified CMK.

+

By default, the performance threshold for encrypting data is 1000 TPS per customer. To apply for higher performance, submit a service ticket.

+
+
+

URI

  • URI format

    POST /v1.0/{project_id}/kms/encrypt-data

    +
  • Parameter description +
Table 3 Response parameters

Parameter

Mandatory

+

Mandatory

Type

+ + + + + + + + + + + +
Table 1 Parameter description

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID

+
+
+ + +

Requests

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Request parameters

Parameter

+

Mandatory

+

Type

+

Description

+

key_id

+

Yes

+

String

+

36-byte ID of a CMK that matches the regular expression ^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$

+

Example: 0d0466b0-e727-4d9c-b35d-f84bb474a37f

+

encryption_context

+

No

+

Object

+

Key-value pairs with a maximum length of 8192 characters. This parameter is used to record resource context information, excluding sensitive information, to ensure data integrity.

+

If this parameter is specified during encryption, it is also required for decryption.

+

Example: {"Key1":"Value1","Key2":"Value2"}

+

plain_text

+

Yes

+

String

+

Plaintext data which is 1 to 4096 bytes in length and matches the regular expression ^.{1,4096}$. After being converted into a byte array, it is still 1 to 4096 bytes in length.

+

sequence

+

No

+

String

+

36-byte serial number of a request message

+

Example: 919c82d4-8046-4722-9094-35c3c6524cff

+
+
+
+

Responses

+
+ + + + + + + + + + + + + + + + +
Table 3 Response parameters

Parameter

+

Mandatory

+

Type

+

Description

+

key_id

+

Yes

+

String

+

CMK ID

+

cipher_text

+

Yes

+

String

+

Ciphertext data in Base64 format

+
+
+
+

Examples

The following example describes how to use a CMK (ID: 0d0466b0-e727-4d9c-b35d-f84bb474a37f) to encrypt data (plaintext: 12345678).

+
  • Example request
    {
    +    "key_id": "0d0466b0-e727-4d9c-b35d-f84bb474a37f",
    +    "plain_text": "12345678"
    +}
    +
+
  • Example response
    {
    +    "key_id": "0d0466b0-e727-4d9c-b35d-f84bb474a37f",
    +    "cipher_text": "AgDoAG7EsEc2OHpQxz4gDFDH54CqwaelpTdEl+RFPjbKn5klPTvOywYIeZX60kPbFsYOpXJwkL32HUM50MY22Eb1fOSpZK7WJpYjx66EWOkJvO+Ey3r1dLdNAjrZrYzQlxRwNS05CaNKoX5rr3NoDnmv+UNobaiS25muLLiqOt6UrStaWow9AUyOHSzl+BrX2Vu0whv74djK+3COO6cXT2CBO6WajTJsOgYdxMfv24KWSKw0TqvHe8XDKASQGKdgfI74hzI1YWJlNjlmLWFlMTAtNDRjZC1iYzg3LTFiZGExZGUzYjdkNwAAAACdcfNpLXwDUPH3023MvZK8RPHe129k6VdNIi3zNb0eFQ=="
    +}
    +

    or

    +
    {
    +    "error": {
    +        "error_code": "KMS.XXXX",
    +        "error_msg": "XXX"
    +    }
    +}
    +
+
+

Status Codes

Table 4 lists the normal status code returned by the response. +
+ + + + + + + + + +
Table 4 Status codes

Status Code

+

Status

+

Description

+

200

+

OK

+

Request processed successfully.

+
+
+
+

Exception status code. For details, see Status Codes.

+
+ +
+ +
+ diff --git a/docs/kms/api-ref/kms_02_0034.html b/docs/kms/api-ref/kms_02_0034.html new file mode 100644 index 00000000..290a6a75 --- /dev/null +++ b/docs/kms/api-ref/kms_02_0034.html @@ -0,0 +1,157 @@ + + +

Decrypting Data

+

Function

This API enables you to decrypt data.

+

By default, the performance threshold for decrypting data is 1000 TPS per customer. To apply for higher performance, submit a service ticket.

+
+
+

URI

  • URI format

    POST /v1.0/{project_id}/kms/decrypt-data

    +
  • Parameter description +
    + + + + + + + + + + + +
    Table 1 Parameter description

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID

    +
    +
    +
+
+

Requests

+
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Request parameters

Parameter

+

Mandatory

+

Type

+

Description

+

cipher_text

+

Yes

+

String

+

Ciphertext of encrypted data. The value is the cipher_text value in the data encryption result that matches the regular expression ^[0-9a-zA-Z+/=]{188,5648}$.

+

encryption_context

+

No

+

Object

+

Key-value pairs with a maximum length of 8192 characters. This parameter is used to record resource context information, excluding sensitive information, to ensure data integrity.

+

If this parameter is specified during encryption, it is also required for decryption.

+

Example: {"Key1":"Value1","Key2":"Value2"}

+

sequence

+

No

+

String

+

36-byte serial number of a request message

+

Example: 919c82d4-8046-4722-9094-35c3c6524cff

+
+
+
+

Responses

+
+ + + + + + + + + + + + + + + + +
Table 3 Response parameters

Parameter

+

Mandatory

+

Type

+

Description

+

key_id

+

Yes

+

String

+

CMK ID

+

plain_text

+

Yes

+

String

+

Plaintext

+
+
+
+

Examples

The following example describes how to decrypt data (ciphertext: AgDoAG7EsEc2OHpQxz4gDFDH54CqwaelpTdEl+RFPjbKn5klPTvOywYIeZX60kPbFsYOpXJwkL32HUM50MY22Eb1fOSpZK7WJpYjx66EWOkJvO+Ey3r1dLdNAjrZrYzQlxRwNS05CaNKoX5rr3NoDnmv+UNobaiS25muLLiqOt6UrStaWow9AUyOHSzl+BrX2Vu0whv74djK+3COO6cXT2CBO6WajTJsOgYdxMfv24KWSKw0TqvHe8XDKASQGKdgfI74hzI1YWJlNjlmLWFlMTAtNDRjZC1iYzg3LTFiZGExZGUzYjdkNwAAAACdcfNpLXwDUPH3023MvZK8RPHe129k6VdNIi3zNb0eFQ==).

+
  • Example request
    {
    +     "cipher_text": "AgDoAG7EsEc2OHpQxz4gDFDH54CqwaelpTdEl+RFPjbKn5klPTvOywYIeZX60kPbFsYOpXJwkL32HUM50MY22Eb1fOSpZK7WJpYjx66EWOkJvO+Ey3r1dLdNAjrZrYzQlxRwNS05CaNKoX5rr3NoDnmv+UNobaiS25muLLiqOt6UrStaWow9AUyOHSzl+BrX2Vu0whv74djK+3COO6cXT2CBO6WajTJsOgYdxMfv24KWSKw0TqvHe8XDKASQGKdgfI74hzI1YWJlNjlmLWFlMTAtNDRjZC1iYzg3LTFiZGExZGUzYjdkNwAAAACdcfNpLXwDUPH3023MvZK8RPHe129k6VdNIi3zNb0eFQ=="
    +}
    +
  • Example response
    {
    +    "key_id": "0d0466b0-e727-4d9c-b35d-f84bb474a37f",
    +    "plain_text": "12345678"
    +}
    +

    or

    +
    {
    +    "error": {
    +        "error_code": "KMS.XXXX",
    +        "error_msg": "XXX"
    +    }
    +}
    +
+
+

Status Codes

Table 4 lists the normal status code returned by the response. +
+ + + + + + + + + +
Table 4 Status codes

Status Code

+

Status

+

Description

+

200

+

OK

+

Request processed successfully.

+
+
+
+

Exception status code. For details, see Status Codes.

+
+
+
+ +
+ diff --git a/docs/kms/api-ref/kms_02_0035.html b/docs/kms/api-ref/kms_02_0035.html index 1be6068c..fa93b4fd 100644 --- a/docs/kms/api-ref/kms_02_0035.html +++ b/docs/kms/api-ref/kms_02_0035.html @@ -32,7 +32,7 @@

Requests

-
Table 2 Request parameters

Parameter

+
@@ -58,7 +58,7 @@ - @@ -77,7 +77,7 @@

Responses

-
Table 2 Request parameters

Parameter

Mandatory

String

Encryption algorithm for CMK material. The following values are enumerated:
  • RSAES_PKCS1_V1_5
  • RSAES_OAEP_SHA_1
  • RSAES_OAEP_SHA_256
+
Cryptographic algorithm for CMK material. The following values are enumerated:
  • RSAES_PKCS1_V1_5
  • RSAES_OAEP_SHA_1
  • RSAES_OAEP_SHA_256
- + + + + + + + + + diff --git a/docs/kms/api-ref/dew_02_0307.html b/docs/kms/api-ref/kms_02_0307.html similarity index 54% rename from docs/kms/api-ref/dew_02_0307.html rename to docs/kms/api-ref/kms_02_0307.html index 94f0572b..5b97f02f 100644 --- a/docs/kms/api-ref/dew_02_0307.html +++ b/docs/kms/api-ref/kms_02_0307.html @@ -1,12 +1,12 @@ - +

Permissions Policies and Supported Actions

diff --git a/docs/kms/api-ref/dew_02_0308.html b/docs/kms/api-ref/kms_02_0308.html similarity index 59% rename from docs/kms/api-ref/dew_02_0308.html rename to docs/kms/api-ref/kms_02_0308.html index b22a2ebf..3a02d9a6 100644 --- a/docs/kms/api-ref/dew_02_0308.html +++ b/docs/kms/api-ref/kms_02_0308.html @@ -1,23 +1,23 @@ - +

Introduction

-

This chapter describes fine-grained permissions management for your KMS. If your account does not need individual IAM users, then you may skip over this chapter.

-

By default, new IAM users do not have permissions assigned. You need to add a user to one or more groups, and attach permissions policies or roles to these groups. Users inherit permissions from the groups to which they are added and can perform specified operations on cloud services based on the permissions.

-

You can grant users permissions by using roles and policies. Roles are a type of coarse-grained authorization mechanism that defines permissions related to user responsibilities. Policies define API-based permissions for operations on specific resources under certain conditions, allowing for more fine-grained, secure access control of cloud resources.

-

Policy-based authorization is useful if you want to allow or deny the access to an API.

+

This chapter describes fine-grained permissions management for your KMS. If your account does not need individual IAM users, you may skip over this chapter.

+

By default, new IAM users do not have permissions assigned. You need to add a user to one or more groups, and attach permissions policies or roles to these groups. Users inherit permissions from the groups to which they are added and can perform specified operations on cloud services based on the permissions.

+

You can grant permissions to users by using roles and policies. Roles are a type of coarse-grained authorization mechanism that defines permissions related to user responsibilities. Policies define API-based permissions for operations on specific resources under certain conditions, allowing for more fine-grained, secure access control of cloud resources.

+

Policy-based authorization is useful if you want to allow or deny the access to an API.

-

An account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned. The permissions required for calling an API are determined by the actions supported by the API. Only users who have been granted permissions allowing the actions can call the API successfully.

-

Supported Actions

You can use system-defined policies provided in IAM, or create custom policies to supplement the system-defined policies, implementing refined access control. Operations supported by policies are specific to APIs. The following are common concepts related to policies:

-
  • Permission: A statement in a policy that allows or denies certain operations.
  • APIs: REST APIs that can be called in a custom policy.
  • Actions: Added to a custom policy to control permissions for specific operations.
  • Dependent actions: When assigning an action to users, you also need to assign dependent permissions for that action to take effect.
  • IAM projects or enterprise project: Scope of users a permission is granted to. Policies that contain actions supporting both IAM and enterprise projects can be assigned to user groups and take effect in both IAM and Enterprise Management. Policies that only contain actions supporting IAM projects can be assigned to user groups and only take effect in IAM. Such policies will not take effect if they are assigned to user groups in Enterprise Project.

    √: supported; x: not supported

    +

    An account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned. The permissions required for calling an API are determined by the actions supported by the API. Only users who have been granted permissions allowing the actions can call the API successfully.

    +

    Supported Actions

    You can use system-defined policies provided in IAM, or create custom policies to supplement the system-defined policies, implementing refined access control. Operations supported by policies are specific to APIs. The following are common concepts related to policies:

    +
    • Permission: A statement in a policy that allows or denies certain operations.
    • APIs: REST APIs that can be called in a custom policy.
    • Actions: Added to a custom policy to control permissions for specific operations.
    • Dependent actions: When assigning an action to users, you also need to assign dependent permissions for that action to take effect.
    • IAM projects or enterprise project: Scope of users a permission is granted to. Policies that contain actions supporting both IAM and enterprise projects can be assigned to user groups and take effect in both IAM and Enterprise Management. Policies that only contain actions supporting IAM projects can be assigned to user groups and only take effect in IAM. Such policies will not take effect if they are assigned to user groups in Enterprise Project.

      √: supported; x: not supported

    -

    KMS supports the following actions that can be defined in custom policies:

    -

    Manage keys, such as creating keys and querying keys.

    +

    KMS supports the following actions that can be defined in custom policies:

    +

    Manage keys, such as creating keys and querying keys.

    diff --git a/docs/kms/api-ref/dew_02_0309.html b/docs/kms/api-ref/kms_02_0309.html similarity index 59% rename from docs/kms/api-ref/dew_02_0309.html rename to docs/kms/api-ref/kms_02_0309.html index c552d939..76f78675 100644 --- a/docs/kms/api-ref/dew_02_0309.html +++ b/docs/kms/api-ref/kms_02_0309.html @@ -1,490 +1,490 @@ - +

    Encryption Key Management

    -
Table 3 Response parameters

Parameter

+
@@ -127,7 +127,7 @@
Table 3 Response parameters

Parameter

Mandatory

-

Examples

The following example describes how to obtain the imported parameter of a CMK (ID: bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e; encryption algorithm: RSAES_OAEP_SHA_1).

+

Examples

The following example describes how to obtain the imported parameter of a CMK (ID: bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e; algorithm: RSAES_OAEP_SHA_1).

  • Example request
    {      
         "key_id": "bb6a3d22-dc93-47ac-b5bd-88df7ad35f1e",
          "wrapping_algorithm":"RSAES_OAEP_SHA_1"
    @@ -172,7 +172,7 @@
     
diff --git a/docs/kms/api-ref/kms_02_0036.html b/docs/kms/api-ref/kms_02_0036.html index e3a2fcf4..588c1ae5 100644 --- a/docs/kms/api-ref/kms_02_0036.html +++ b/docs/kms/api-ref/kms_02_0036.html @@ -137,7 +137,7 @@
diff --git a/docs/kms/api-ref/kms_02_0037.html b/docs/kms/api-ref/kms_02_0037.html index 58d50536..e52cd464 100644 --- a/docs/kms/api-ref/kms_02_0037.html +++ b/docs/kms/api-ref/kms_02_0037.html @@ -103,7 +103,7 @@
diff --git a/docs/kms/api-ref/kms_02_0038.html b/docs/kms/api-ref/kms_02_0038.html index 674b53d2..0775ca0f 100644 --- a/docs/kms/api-ref/kms_02_0038.html +++ b/docs/kms/api-ref/kms_02_0038.html @@ -108,7 +108,7 @@
diff --git a/docs/kms/api-ref/kms_02_0039.html b/docs/kms/api-ref/kms_02_0039.html index b6b26f17..7d7d7aa8 100644 --- a/docs/kms/api-ref/kms_02_0039.html +++ b/docs/kms/api-ref/kms_02_0039.html @@ -117,7 +117,7 @@
diff --git a/docs/kms/api-ref/kms_02_0040.html b/docs/kms/api-ref/kms_02_0040.html index d46301fe..94c3b8e8 100644 --- a/docs/kms/api-ref/kms_02_0040.html +++ b/docs/kms/api-ref/kms_02_0040.html @@ -106,7 +106,7 @@
diff --git a/docs/kms/api-ref/kms_02_0041.html b/docs/kms/api-ref/kms_02_0041.html index 745a5a86..7ca4805a 100644 --- a/docs/kms/api-ref/kms_02_0041.html +++ b/docs/kms/api-ref/kms_02_0041.html @@ -159,7 +159,7 @@
diff --git a/docs/kms/api-ref/kms_02_0042.html b/docs/kms/api-ref/kms_02_0042.html index 499fc119..e80cf0f2 100644 --- a/docs/kms/api-ref/kms_02_0042.html +++ b/docs/kms/api-ref/kms_02_0042.html @@ -291,7 +291,7 @@
diff --git a/docs/kms/api-ref/kms_02_0043.html b/docs/kms/api-ref/kms_02_0043.html index 85ee9f29..4134f0b6 100644 --- a/docs/kms/api-ref/kms_02_0043.html +++ b/docs/kms/api-ref/kms_02_0043.html @@ -124,7 +124,7 @@
diff --git a/docs/kms/api-ref/kms_02_0044.html b/docs/kms/api-ref/kms_02_0044.html index deb1e424..cbf53393 100644 --- a/docs/kms/api-ref/kms_02_0044.html +++ b/docs/kms/api-ref/kms_02_0044.html @@ -109,7 +109,7 @@
diff --git a/docs/kms/api-ref/kms_02_0045.html b/docs/kms/api-ref/kms_02_0045.html index cd106846..a43abe3f 100644 --- a/docs/kms/api-ref/kms_02_0045.html +++ b/docs/kms/api-ref/kms_02_0045.html @@ -151,7 +151,7 @@
diff --git a/docs/kms/api-ref/kms_02_0046.html b/docs/kms/api-ref/kms_02_0046.html index f2b97e11..f59a8b8a 100644 --- a/docs/kms/api-ref/kms_02_0046.html +++ b/docs/kms/api-ref/kms_02_0046.html @@ -153,7 +153,7 @@
diff --git a/docs/kms/api-ref/kms_02_0047.html b/docs/kms/api-ref/kms_02_0047.html index e6e629ca..34378ba4 100644 --- a/docs/kms/api-ref/kms_02_0047.html +++ b/docs/kms/api-ref/kms_02_0047.html @@ -111,7 +111,7 @@
diff --git a/docs/kms/api-ref/kms_02_0048.html b/docs/kms/api-ref/kms_02_0048.html index 434b5d57..af775b4f 100644 --- a/docs/kms/api-ref/kms_02_0048.html +++ b/docs/kms/api-ref/kms_02_0048.html @@ -190,7 +190,7 @@
diff --git a/docs/kms/api-ref/kms_02_0049.html b/docs/kms/api-ref/kms_02_0049.html index bc030105..519c9203 100644 --- a/docs/kms/api-ref/kms_02_0049.html +++ b/docs/kms/api-ref/kms_02_0049.html @@ -210,7 +210,7 @@
diff --git a/docs/kms/api-ref/kms_02_0050.html b/docs/kms/api-ref/kms_02_0050.html new file mode 100644 index 00000000..9a9ad225 --- /dev/null +++ b/docs/kms/api-ref/kms_02_0050.html @@ -0,0 +1,19 @@ + + +

Before You Start

+
+ + diff --git a/docs/kms/api-ref/kms_02_0051.html b/docs/kms/api-ref/kms_02_0051.html new file mode 100644 index 00000000..aa4fb12e --- /dev/null +++ b/docs/kms/api-ref/kms_02_0051.html @@ -0,0 +1,11 @@ + + +

API Calling

+

KMS supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS requests. For details about API calling, see Calling APIs.

+
+
+ +
+ diff --git a/docs/kms/api-ref/kms_02_0052.html b/docs/kms/api-ref/kms_02_0052.html new file mode 100644 index 00000000..aa4706f1 --- /dev/null +++ b/docs/kms/api-ref/kms_02_0052.html @@ -0,0 +1,11 @@ + + +

Endpoints

+

An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of all services, see Regions and Endpoints.

+
+
+ +
+ diff --git a/docs/kms/api-ref/kms_02_0053.html b/docs/kms/api-ref/kms_02_0053.html new file mode 100644 index 00000000..2f91d8f7 --- /dev/null +++ b/docs/kms/api-ref/kms_02_0053.html @@ -0,0 +1,12 @@ + + +

Constraints

+
+

For more constraints, see the descriptions of specific APIs.

+
+
+ +
+ diff --git a/docs/kms/api-ref/kms_02_0054.html b/docs/kms/api-ref/kms_02_0054.html new file mode 100644 index 00000000..06511acb --- /dev/null +++ b/docs/kms/api-ref/kms_02_0054.html @@ -0,0 +1,25 @@ + + +

Concepts

+
  • Account

    An account has full access permissions for all the resources and cloud services under it. It can reset user passwords and grant users permissions. The account is a payment entity and should not be used to perform routine management. For security purposes, create IAM users and grant them permissions for routine management.

    +
  • User

    An IAM user is created by an account to use cloud services. Each IAM user has its own identity credentials (password and access keys).

    +

    The account name, username, and password wll be required for API authentication.

    +
  • Region

    Regions are divided based on geographical location and network latency. Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region. Regions are classified as universal regions and dedicated regions. A universal region provides universal cloud services for common tenants. A dedicated region provides services of the same type only or for specific tenants.

    +
  • Availability Zone (AZ)

    An AZ comprises one or multiple physical data centers equipped with independent ventilation, fire, water, and electricity facilities. Compute, network, storage, and other resources in an AZ are logically divided into multiple clusters. AZs within a region are interconnected using high-speed optical fibers to support cross-AZ high-availability systems.

    +
  • Project

    Projects group and isolate resources (including compute, storage, and network resources) across physical regions. A default project is provided for each region, and subprojects can be created under each default project. Users can be granted permissions to access all resources in a specific project. For more refined access control, create subprojects under a project and create resources in the subprojects. Users can then be assigned permissions to access only specific resources in the subprojects.

    +
    Figure 1 Project isolation model
    +
+
+
+ +
+ + + \ No newline at end of file diff --git a/docs/kms/api-ref/kms_02_0056.html b/docs/kms/api-ref/kms_02_0056.html new file mode 100644 index 00000000..71ceabfb --- /dev/null +++ b/docs/kms/api-ref/kms_02_0056.html @@ -0,0 +1,48 @@ + + +

Returned Values

+

Status Code

After sending a request, you will receive a response containing the status code, response header, and response body.

+

A status code is a group of digits ranging from 1xx to 5xx. It indicates the status of a response. For more information, see Status Code.

+

For example, if status code 201 is returned for calling the API used to obtain a user token, the request is successful.

+
+

Response Header

A response header corresponds to a request header, for example, Content-Type.

+

Figure 1 shows the response header for the API of obtaining a user token, in which x-subject-token is the desired user token. Then, you can use the token to authenticate the calling of other APIs.

+
Figure 1 Header of the response to the request for obtaining a user token
+
+

(Optional) Response Body

A response body is generally returned in a structured format, corresponding to the Content-Type in the response header, and is used to transfer content other than the response header.

+

The following shows part of the response body for the API to obtain a user token. For the sake of space, only part of the content is displayed here.

+
{
+    "token": {
+        "expires_at": "2019-02-13T06:52:13.855000Z",
+        "methods": [
+            "password"
+        ],
+        "catalog": [
+            {
+                "endpoints": [
+                    {
+                        "region_id": "xxxxxxxx",
+......
+

If an error occurs during API calling, the system returns an error code and a message to you. The following shows the format of an error response body:

+
{
+    "error": {
+        "message": "The request you have made requires authentication.",
+        "title": "Unauthorized"
+    }
+}
+

In the preceding information, error_code is an error code, and error_msg describes the error.

+
+
+
+ +
+ + + \ No newline at end of file diff --git a/docs/kms/api-ref/kms_02_0057.html b/docs/kms/api-ref/kms_02_0057.html new file mode 100644 index 00000000..b548b30b --- /dev/null +++ b/docs/kms/api-ref/kms_02_0057.html @@ -0,0 +1,177 @@ + + +

API Overview

+

You can use all functions of by calling its APIs.

+

Key Management APIs

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

API

+

Description

+

Creating a CMK

+

Creates a CMK.

+

Enabling a CMK

+

Enables a CMK. Only an enabled CMK can be used.

+

Disabling a CMK

+

Disables a CMK. A disabled CMK cannot be used.

+

Scheduling the Deletion of a CMK

+

Schedules the deletion of a specific key. The deletion can be scheduled 7 to 1096 days in advance. After a key is deleted, the data encrypted using the key cannot be decrypted.

+

Canceling the Scheduled Deletion of a CMK

+

Cancels a scheduled deletion of a key. Once the deletion is cancelled, the key can be used.

+

Querying the List of CMKs

+

Queries the list of all CMKs.

+

Querying the Information About a CMK

+

Queries details of a specified key.

+

Creating a Random Number

+

Generates a 512-bit random number.

+

Creating a DEK

+

Creates a DEK. A returned result includes the plaintext and the ciphertext of a DEK.

+

Creating a Plaintext-Free DEK

+

Creates a plaintext-free DEK, that is, the returned result of this API includes only the ciphertext of the DEK.

+

Encrypting a DEK

+

Uses a specified CMK to encrypt a DEK.

+

Decrypting a DEK

+

Uses a specified CMK to decrypt a DEK.

+

Querying the Number of Instances

+

Obtains the number of created CMKs, excluding the default master keys.

+

Querying the Quota of a User

+

Queries the total quota of CMKs available and the usage information, excluding the default master keys.

+

Changing the Alias of a CMK

+

Changes the alias of a CMK.

+

Changing the Description of a CMK

+

Changes the description of a CMK.

+

Creating a Grant

+

Grants a user the permissions required for operating a specific key.

+

Revoking a Grant

+

Revokes the key operation permissions granted to a user.

+

Retiring a Grant

+

Retires the granted key operation permissions.

+

Querying Grants on a CMK

+

Queries grants of a CMK.

+

Querying Grants That Can Be Retired

+

Queries grants that can be retired.

+

Obtaining CMK Import Parameters

+

Obtains necessary parameters to import a key, including an import token and an encryption public key.

+

Importing CMK Material

+

Imports the key material of a specified key.

+

Deleting CMK Material

+

Deletes the key material of a specified key.

+

Querying CMK Instances

+

Uses the tag filtering function to query the detailed information of a CMK.

+

Querying CMK Tags

+

Queries tags of a CMK.

+

Querying Project Tags

+

Queries all tag sets of a project.

+

Adding or Deleting CMK Tags in Batches

+

Adds or deletes CMK tags in a batch.

+

Adding a CMK Tag

+

Adds a tag to a CMK.

+

Deleting a CMK Tag

+

Deletes a tag from a CMK.

+

Querying All API Versions

+

-

+

Querying a Specified API Version

+

-

+
+
+
+
+ diff --git a/docs/kms/api-ref/kms_02_0058.html b/docs/kms/api-ref/kms_02_0058.html new file mode 100644 index 00000000..06f33cef --- /dev/null +++ b/docs/kms/api-ref/kms_02_0058.html @@ -0,0 +1,13 @@ + + +

Overview

+

Key Management Service (KMS) is a secure, reliable, and easy-to-use service for managing your keys on the cloud. It helps you easily create, manage, and protect keys.

+

You can use the APIs described in this document to perform operations on keys, such as creating, querying, and deleting keys. For details about all supported operations, see API Overview.

+

Before calling KMS APIs, ensure that you have understood the concepts related to KMS. For more information, see section "Overview" in the Key Management Service User Guide.

+
+
+ +
+ diff --git a/docs/kms/api-ref/kms_02_0200.html b/docs/kms/api-ref/kms_02_0200.html new file mode 100644 index 00000000..cbe27fd7 --- /dev/null +++ b/docs/kms/api-ref/kms_02_0200.html @@ -0,0 +1,8 @@ + + +

API Usage Guidelines

+

Cloud service APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://Endpoint/uri. In the URL, uri indicates the resource path, that is, the API access path.

+

Cloud service APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted by using JSON messages, with media type represented by Application/json.

+

For details about how to use APIs, see API Usage Guidelines.

+
+ diff --git a/docs/kms/api-ref/kms_02_0300.html b/docs/kms/api-ref/kms_02_0300.html index 09bc6419..bf5599bf 100644 --- a/docs/kms/api-ref/kms_02_0300.html +++ b/docs/kms/api-ref/kms_02_0300.html @@ -6,8 +6,6 @@

2022-09-30

+

2024-03-25

+

This is the sixteenth official release.

+
  • Optimized the description of the parameter grantee_principal_type in section "Creating a Grant".
  • Added an example of the message_type in section "Signing Data".
+

2023-11-29

+

This is the fifteenth official release.

+

Modified the description of some API request parameters in section "API Description".

+

2023-10-20

+

This is the fourteenth official release.

+
  • Added the section "Signing Data".
  • Added the section "Authenticating a Signature".
+

2022-09-30

This issue is the thirteenth official release.

Optimized descriptions in sections "Permissions Policies and Supported Actions".

@@ -60,7 +78,7 @@

2017-10-30

This is the fifth official release.

-
  • Added the section "Creating a Grant".
  • Added the section "Revoking a Grant".
  • Added the section "Retiring a Grant".
  • Added the section "Querying Grants on a CMK".
  • Added the section "Querying Grants That Can Be Retired".
  • Optimized request parameter description in the section "Creating a CMK".
  • Optimized request and response parameter description in the section "Querying the List of CMKs".
  • Optimized response parameter description in the section "Querying the Information About a CMK".
  • Optimized response parameter description in the section "Creating a Random Number".
  • Optimized response parameter description in the section "Querying the Quota of a User".
  • Optimized error codes and modified the section "Error Codes".
    • Added public error code KMS.0308 and its description.
    • Added error codes and their description for creating a grant.
    • Added error codes and their description for querying grants on a CMK.
    • Added error codes and their description for querying grants that can be retired.
    • Added error codes and their description for revoking a grant.
    • Added error codes and their description for retiring a grant.
    +
    • Added the section "Creating a Grant".
    • Added the section "Revoking a Grant".
    • Added the section "Retiring a Grant".
    • Added the section "Querying Grants on a CMK".
    • Added the section "Querying Grants that Can Be Retired".
    • Optimized request parameter description in the section "Creating a CMK".
    • Optimized request and response parameter description in the section "Querying the List of CMKs".
    • Optimized response parameter description in the section "Querying the Information About a CMK".
    • Optimized response parameter description in the section "Creating a Random Number".
    • Optimized response parameter description in the section "Querying the Quota of a User".
    • Optimized error codes and modified the section "Error Codes".
      • Added public error code KMS.0308 and its description.
      • Added error codes and their description for creating a grant.
      • Added error codes and their description for querying grants on a CMK.
      • Added error codes and their description for querying grants that can be retired.
      • Added error codes and their description for revoking a grant.
      • Added error codes and their description for retiring a grant.

Permission

+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -493,7 +493,7 @@ diff --git a/docs/kms/api-ref/kms_02_8888.html b/docs/kms/api-ref/kms_02_8888.html deleted file mode 100644 index 96786b22..00000000 --- a/docs/kms/api-ref/kms_02_8888.html +++ /dev/null @@ -1,950 +0,0 @@ - - -

Error Code

-
-

Permission

API

+

API

Action

+

Action

Dependent Permission

-

+

Dependent Permission

+

IAM Project

-

(Project)

+

IAM Project

+

(Project)

Enterprise Project

-

(Enterprise Project)

+

Enterprise Project

+

(Enterprise Project)

Creating a CMK

+

Creating a CMK

POST /v1.0/{project_id}/kms/create-key

+

POST /v1.0/{project_id}/kms/create-key

kms:cmk:create

+

kms:cmk:create

-

+

-

√

+

√

√

+

√

Enabling a CMK

+

Enabling a CMK

POST /v1.0/{project_id}/kms/enable-key

+

POST /v1.0/{project_id}/kms/enable-key

kms:cmk:enable

+

kms:cmk:enable

-

+

-

√

+

√

√

+

√

Disabling a CMK

+

Disabling a CMK

POST /v1.0/{project_id}/kms/disable-key

+

POST /v1.0/{project_id}/kms/disable-key

kms:cmk:disable

+

kms:cmk:disable

-

+

-

√

+

√

√

+

√

Scheduling the deletion of a CMK

+

Scheduling the deletion of a CMK

POST /v1.0/{project_id}/kms/schedule-key-deletion

+

POST /v1.0/{project_id}/kms/schedule-key-deletion

kms:cmk:update

+

kms:cmk:update

-

+

-

√

+

√

√

+

√

Canceling the scheduled deletion of a CMK

+

Canceling the scheduled deletion of a CMK

POST /v1.0/{project_id}/kms/cancel-key-deletion

+

POST /v1.0/{project_id}/kms/cancel-key-deletion

kms:cmk:update

+

kms:cmk:update

-

+

-

√

+

√

√

+

√

Querying the list of CMKs

+

Querying the list of CMKs

POST /v1.0/{project_id}/kms/list-keys

+

POST /v1.0/{project_id}/kms/list-keys

kms:cmk:list

+

kms:cmk:list

-

+

-

√

+

√

√

+

√

Queries the CMK information.

+

Queries the CMK information.

POST /v1.0/{project_id}/kms/describe-key

+

POST /v1.0/{project_id}/kms/describe-key

kms:cmk:get

+

kms:cmk:get

-

+

-

√

+

√

√

+

√

Generating a random number

+

Generating a random number

POST /v1.0/{project_id}/kms/gen-random

+

POST /v1.0/{project_id}/kms/gen-random

kms:cmk:generate

+

kms:cmk:generate

-

+

-

√

+

√

√

+

√

Creating a DEK

+

Creating a DEK

POST /v1.0/{project_id}/kms/create-datakey

+

POST /v1.0/{project_id}/kms/create-datakey

kms:dek:create

+

kms:dek:create

-

+

-

√

+

√

√

+

√

Creating a plaintext-free DEK

+

Creating a plaintext-free DEK

POST /v1.0/{project_id}/kms/create-datakey-without-plaintext

+

POST /v1.0/{project_id}/kms/create-datakey-without-plaintext

kms:dek:create

+

kms:dek:create

-

+

-

√

+

√

√

+

√

Encrypting a DEK

+

Encrypting a DEK

POST /v1.0/{project_id}/kms/encrypt-datakey

+

POST /v1.0/{project_id}/kms/encrypt-datakey

kms:dek:crypto

+

kms:dek:crypto

-

+

-

√

+

√

√

+

√

Decrypting a DEK

+

Decrypting a DEK

POST /v1.0/{project_id}/kms/decrypt-datakey

+

POST /v1.0/{project_id}/kms/decrypt-datakey

kms:dek:crypto

+

kms:dek:crypto

-

+

-

√

+

√

√

+

√

Querying the number of instances

+

Querying the number of instances

GET /v1.0/{project_id}/kms/user-instances

+

GET /v1.0/{project_id}/kms/user-instances

kms:cmk:getInstance

+

kms:cmk:getInstance

-

+

-

√

+

√

√

+

√

Querying the user quota

+

Querying the user quota

GET /v1.0/{project_id}/kms/user-quotas

+

GET /v1.0/{project_id}/kms/user-quotas

kms:cmk:getQuota

+

kms:cmk:getQuota

-

+

-

√

+

√

√

+

√

Modifying the CMK alias

+

Modifying the CMK alias

POST /v1.0/{project_id}/kms/update-key-alias

+

POST /v1.0/{project_id}/kms/update-key-alias

kms:cmk:update

+

kms:cmk:update

-

+

-

√

+

√

√

+

√

Modifying the description of a CMK

+

Modifying the description of a CMK

POST /v1.0/{project_id}/kms/update-key-description

+

POST /v1.0/{project_id}/kms/update-key-description

kms:cmk:update

+

kms:cmk:update

-

+

-

√

+

√

√

+

√

Creating a grant

+

Creating a grant

POST /v1.0/{project_id}/kms/create-grant

+

POST /v1.0/{project_id}/kms/create-grant

kms:grant:create

+

kms:grant:create

-

+

-

√

+

√

√

+

√

Revoking a grant

+

Revoking a grant

POST /v1.0/{project_id}/kms/revoke-grant

+

POST /v1.0/{project_id}/kms/revoke-grant

kms:grant:revoke

+

kms:grant:revoke

-

+

-

√

+

√

√

+

√

Retiring a grant

+

Retiring a grant

POST /v1.0/{project_id}/kms/retire-grant

+

POST /v1.0/{project_id}/kms/retire-grant

kms:grant:retire

+

kms:grant:retire

-

+

-

√

+

√

√

+

√

Querying the grant list of a CMK

+

Querying the grant list of a CMK

POST /v1.0/{project_id}/kms/list-grants

+

POST /v1.0/{project_id}/kms/list-grants

kms:grant:list

+

kms:grant:list

-

+

-

√

+

√

√

+

√

Querying the list of grants that can be retired

+

Querying the list of grants that can be retired

POST /v1.0/{project_id}/kms/list-retirable-grants

+

POST /v1.0/{project_id}/kms/list-retirable-grants

kms:grant:list

+

kms:grant:list

-

+

-

√

+

√

√

+

√

Encrypting data

+

Encrypting data

POST /v1.0/{project_id}/kms/encrypt-data

+

POST /v1.0/{project_id}/kms/encrypt-data

kms:cmk:crypto

+

kms:cmk:crypto

-

+

-

√

+

√

√

+

√

Decrypting data

+

Decrypting data

POST /v1.0/{project_id}/kms/decrypt-data

+

POST /v1.0/{project_id}/kms/decrypt-data

kms:cmk:crypto

+

kms:cmk:crypto

-

+

-

√

+

√

√

+

√

Obtaining parameters for importing a key

+

Obtaining parameters for importing a key

POST /v1.0/{project_id}/kms/get-parameters-for-import

+

POST /v1.0/{project_id}/kms/get-parameters-for-import

kms:cmk:getMaterial

+

kms:cmk:getMaterial

-

+

-

√

+

√

√

+

√

Importing key material

+

Importing key material

POST /v1.0/{project_id}/kms/import-key-material

+

POST /v1.0/{project_id}/kms/import-key-material

kms:cmk:importMaterial

+

kms:cmk:importMaterial

-

+

-

√

+

√

√

+

√

Deleting key material

+

Deleting key material

POST /v1.0/{project_id}/kms/delete-imported-key-material

+

POST /v1.0/{project_id}/kms/delete-imported-key-material

kms:cmk:deleteMaterial

+

kms:cmk:deleteMaterial

-

+

-

√

+

√

√

+

√

Enabling key rotation

+

Enabling key rotation

POST /v1.0/{project_id}/kms/enable-key-rotation

+

POST /v1.0/{project_id}/kms/enable-key-rotation

kms:cmk:enableRotation

+

kms:cmk:enableRotation

-

+

-

√

+

√

√

+

√

Modifying the rotation interval

+

Modifying the rotation interval

POST /v1.0/{project_id}/kms/update-key-rotation-interval

+

POST /v1.0/{project_id}/kms/update-key-rotation-interval

kms:cmk:updateRotation

+

kms:cmk:updateRotation

-

+

-

√

+

√

√

+

√

Disabling key rotation

+

Disabling key rotation

POST /v1.0/{project_id}/kms/disable-key-rotation

+

POST /v1.0/{project_id}/kms/disable-key-rotation

kms:cmk:disableRotation

+

kms:cmk:disableRotation

-

+

-

√

+

√

√

+

√

Querying the key rotation status

+

Querying the key rotation status

POST /v1.0/{project_id}/kms/get-key-rotation-status

+

POST /v1.0/{project_id}/kms/get-key-rotation-status

kms:cmk:getRotation

+

kms:cmk:getRotation

-

+

-

√

+

√

√

+

√

Querying key resource instances

+

Querying key resource instances

POST /v1.0/{project_id}/kms/resource_instances/action

+

POST /v1.0/{project_id}/kms/resource_instances/action

kms:cmkTag:listInstance

+

kms:cmkTag:listInstance

-

+

-

√

+

√

√

+

√

Querying tags of a key

+

Querying tags of a key

GET /v1.0/{project_id}/kms/{key_id}/tags

+

GET /v1.0/{project_id}/kms/{key_id}/tags

kms:cmkTag:list

+

kms:cmkTag:list

-

+

-

√

+

√

√

+

√

Querying the project tags

+

Querying the project tags

GET /v1.0/{project_id}/kms/tags

+

GET /v1.0/{project_id}/kms/tags

kms:cmkTag:list

+

kms:cmkTag:list

-

+

-

√

+

√

√

+

√

Adding or deleting key tags in batches

+

Adding or deleting key tags in batches

POST /v1.0/{project_id}/kms/{key_id}/tags/action

+

POST /v1.0/{project_id}/kms/{key_id}/tags/action

kms:cmkTag:batch

+

kms:cmkTag:batch

-

+

-

√

+

√

√

+

√

Adding tags to a key

+

Adding tags to a key

POST /v1.0/{project_id}/kms/{key_id}/tags

+

POST /v1.0/{project_id}/kms/{key_id}/tags

kms:cmkTag:create

+

kms:cmkTag:create

-

+

-

√

+

√

√

+

√

Deleting tags of a key

+

Deleting tags of a key

POST /v1.0/{project_id}/kms/{ key_id }/tags/{key}

+

POST /v1.0/{project_id}/kms/{ key_id }/tags/{key}

kms:cmkTag:delete

+

kms:cmkTag:delete

-

+

-

√

+

√

√

+

√

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Status Code

-

Error Code

-

Error Message

-

Description

-

Measure

-

400

-

KMS.0201

-

Invalid request URL.

-

Invalid request URL.

-

Enter a valid URL.

-

400

-

KMS.0202

-

Invalid JSON format of the request message.

-

Invalid JSON format of the request message.

-

Enter a valid message.

-

400

-

KMS.0203

-

Request message too long.

-

Request message too long.

-

Enter a valid message.

-

400

-

KMS.0204

-

Parameters missing in the request message.

-

Parameters missing in the request message.

-

Enter a valid message.

-

400

-

KMS.0205

-

Invalid key ID.

-

Invalid key ID.

-

Enter a valid key ID.

-

400

-

KMS.0206

-

Invalid sequence number.

-

Invalid sequence number.

-

Enter a valid sequence number.

-

400

-

KMS.0208

-

Invalid value of value encryption_context.

-

Invalid value of value encryption_context.

-

Enter a valid value of encryption_context.

-

400

-

KMS.0209

-

The key has been disabled.

-

The key has been disabled.

-

Enable the key.

-

400

-

KMS.0210

-

The key is in Scheduled deletion state and cannot be used.

-

The key is in Pending deletion state and cannot be used.

-

Enable the key.

-

400

-

KMS.0211

-

Cannot perform this operation on Default Master Keys.

-

Cannot perform this operation on Default Master Keys.

-

Perform this operation on a common CMK.

-

400

-

KMS.0308

-

Invalid parameter.

-

Invalid parameter.

-

Enter valid parameters.

-

400

-

KMS.0309

-

External keys required.

-

External keys required.

-

Use an imported key.

-

400

-

KMS.0310

-

The key is not in Pending import state.

-

The key is not in Pending import state.

-

Ensure the key is in Pending import state.

-

400

-

KMS.0401

-

Tag list cannot be empty.

-

Tag list cannot be empty.

-

Enter valid parameters.

-

400

-

KMS.0402

-

Invalid match value.

-

Invalid match value.

-

Enter valid parameters.

-

400

-

KMS.0403

-

Invalid match key.

-

Invalid match key.

-

Enter valid parameters.

-

400

-

KMS.0201

-

Invalid request URL.

-

Invalid request URL.

-

Enter a valid URL.

-

400

-

KMS.0202

-

Invalid JSON format of the request message.

-

Invalid JSON format of the request message.

-

Enter a valid message.

-

400

-

KMS.0203

-

Request message too long.

-

Request message too long.

-

Enter a valid message.

-

400

-

KMS.0204

-

Parameters missing in the request message.

-

Parameters missing in the request message.

-

Enter a valid message.

-

400

-

KMS.0205

-

Invalid key ID.

-

Invalid key ID.

-

Enter a valid key ID.

-

400

-

KMS.0206

-

Invalid sequence number.

-

Invalid sequence number.

-

Enter a valid sequence number.

-

400

-

KMS.0208

-

Invalid value of value encryption_context.

-

Invalid value of value encryption_context.

-

Enter a valid value of encryption_context.

-

400

-

KMS.0209

-

The key has been disabled.

-

The key has been disabled.

-

Enable the key.

-

400

-

KMS.0210

-

The key is in Scheduled deletion state and cannot be used.

-

The key is in Pending deletion state and cannot be used.

-

Enable the key.

-

400

-

KMS.0211

-

Cannot perform this operation on Default Master Keys.

-

Cannot perform this operation on Default Master Keys.

-

Perform this operation on a common CMK.

-

400

-

KMS.0308

-

Invalid parameter.

-

Invalid parameter.

-

Enter valid parameters.

-

400

-

KMS.0309

-

External keys required.

-

External keys required.

-

Use an imported key.

-

400

-

KMS.0310

-

The key is not in Pending import state.

-

The key is not in Pending import state.

-

Ensure the key is in Pending import state.

-

400

-

KMS.0311

-

Failed to decrypt data using the RSA private key.

-

Failed to decrypt data using the RSA private key.

-

Ensure the input ciphertext is correct and try again, or contact customer service.

-

400

-

KMS.0312

-

External keys cannot be rotated.

-

External keys cannot be rotated.

-

Use a common CMK.

-

400

-

KMS.0313

-

Key rotation is not enabled.

-

Key rotation is not enabled.

-

Enable key rotation.

-

400

-

KMS.0401

-

Tag list cannot be empty.

-

Tag list cannot be empty.

-

Enter valid parameters.

-

400

-

KMS.0402

-

Invalid match value.

-

Invalid match value.

-

Enter valid parameters.

-

400

-

KMS.0403

-

Invalid match key.

-

Invalid match key.

-

Enter valid parameters.

-

400

-

KMS.0404

-

Invalid action.

-

Invalid action.

-

Enter valid parameters.

-

400

-

KMS.0405

-

Invalid tag value.

-

Invalid tag value.

-

Enter valid parameters.

-

400

-

KMS.0406

-

Invalid tag key.

-

Invalid tag key.

-

Enter valid parameters.

-

400

-

KMS.0407

-

Invalid tag list size.

-

Invalid tag list size.

-

Enter valid parameters.

-

400

-

KMS.0408

-

Invalid resourceType.

-

Invalid resourceType.

-

Enter valid parameters.

-

400

-

KMS.0409

-

Too many tags.

-

Too many tags.

-

Delete unnecessary tags and try again.

-

400

-

KMS.0410

-

Invalid tag value length.

-

Invalid tag value length.

-

Enter valid parameters.

-

400

-

KMS.0411

-

Invalid tag key length.

-

Invalid tag key length.

-

Enter valid parameters.

-

400

-

KMS.0412

-

Invalid tag list.

-

Invalid tag list.

-

Enter valid parameters.

-

400

-

KMS.0413

-

Too many tag values.

-

Too many tag values.

-

Enter valid parameters.

-

400

-

KMS.0415

-

Invalid matches.

-

Invalid matches.

-

Enter valid parameters.

-

400

-

KMS.0417

-

Invalid offset.

-

Invalid offset.

-

Enter valid parameters.

-

400

-

KMS.1101

-

Invalid key_alias.

-

Invalid key_alias.

-

Enter valid parameters.

-

400

-

KMS.1102

-

Invalid realm.

-

Invalid realm.

-

Enter valid parameters.

-

400

-

KMS.1103

-

Invalid key_description.

-

Invalid key_description.

-

Enter valid parameters.

-

400

-

KMS.1104

-

Duplicate key aliases.

-

Duplicate key aliases.

-

Use another alias.

-

400

-

KMS.1105

-

Too many keys.

-

Too many keys.

-

Increase key quota or delete unnecessary keys.

-

400

-

KMS.1201

-

The key is not disabled.

-

The key is not disabled.

-

Disable the key.

-

400

-

KMS.1301

-

The key is not enabled.

-

The key is not enabled.

-

Enable the key.

-

400

-

KMS.1401

-

Set the pending deletion period between 7 to 1096 days.

-

Set the pending deletion period between 7 to 1096 days.

-

Enter valid parameters.

-

400

-

KMS.1402

-

The key is already in Pending deletion state.

-

The key is already in Pending deletion state.

-

No further operation required.

-

400

-

KMS.1501

-

The key is not in Pending deletion state.

-

The key is not in Pending deletion state.

-

Schedule deletion the key.

-

400

-

KMS.1601

-

Invalid limit.

-

Invalid limit.

-

Enter valid parameters.

-

400

-

KMS.1602

-

marker must be greater than or equals 0.

-

marker must be greater than or equals 0.

-

Enter valid parameters.

-

400

-

KMS.1801

-

random_data_length must be 512 bits.

-

random_data_length must be 512 bits.

-

Enter valid parameters.

-

400

-

KMS.1901

-

datakey_length must be in the range 8 bits to 8,192 bits.

-

datakey_length must be in the range 8 bits to 8,192 bits.

-

Enter valid parameters.

-

400

-

KMS.2001

-

datakey_length must be 512 bits.

-

datakey_length must be 512 bits.

-

Enter valid parameters.

-

400

-

KMS.2101

-

Invalid plain_text.

-

Invalid plain_text.

-

Enter valid parameters.

-

400

-

KMS.2102

-

datakey_plain_length must be 64 bytes.

-

datakey_plain_length must be 64 bytes.

-

Enter valid parameters.

-

400

-

KMS.2103

-

Failed to verify the DEK hash.

-

Failed to verify the DEK hash.

-

Ensure the DEK is valid and try again, or contact customer service.

-

400

-

KMS.2201

-

Invalid cipher_text.

-

invalid cipher_text.

-

Enter valid parameters.

-

400

-

KMS.2202

-

datakey_cipher_length must be 64 bytes.

-

datakey_cipher_length must be 64 bytes.

-

Enter valid parameters.

-

400

-

KMS.2203

-

Failed to verify the DEK hash.

-

Failed to verify the DEK hash.

-

Ensure the DEK is valid and try again, or contact customer service.

-

400

-

KMS.2401

-

Specify an operation in addition to create-grant.

-

Specify an operation in addition to create-grant.

-

Enter valid parameters.

-

400

-

KMS.2402

-

Invalid user ID.

-

Invalid user ID.

-

Enter valid parameters.

-

400

-

KMS.2403

-

Failed to create the grant.

-

Failed to create the grant.

-

Try again later or contact customer service.

-

400

-

KMS.2404

-

Too many CMK grants.

-

Too many CMK grants.

-

Increase grant quota or delete unnecessary grants.

-

400

-

KMS.2405

-

Too many grants.

-

Too many grants.

-

Increase grant quota or delete unnecessary grants.

-

400

-

KMS.2501

-

Invalid grant ID.

-

Invalid grant ID.

-

Enter a valid grant ID.

-

400

-

KMS.2502

-

grant_id and key_id do not match.

-

grant_id and key_id do not match.

-

Ensure input grant_id matches key_id.

-

400

-

KMS.2601

-

Token expired.

-

Token expired.

-

Obtain a new token.

-

400

-

KMS.2602

-

Key expiration time must be later than the current time.

-

Key expiration time must be later than the current time.

-

Set a valid key expiration time.

-

400

-

KMS.2603

-

Key IDs in the imported key and token do not match.

-

Key IDs in the imported key and token do not match.

-

Ensure the key ID in the imported key matches that in the token.

-

400

-

KMS.2604

-

The external key plaintext length must be 32 bits.

-

The external key plaintext length must be 32 bits.

-

Enter valid parameters.

-

400

-

KMS.2605

-

Token verification failed.

-

Token verification failed.

-

Obtain a new token.

-

400

-

KMS.2606

-

You are importing a deleted key again. The imported plaintext must be the same as the deleted key plaintext.

-

You are importing a deleted key again. The imported plaintext must be the same as the deleted key plaintext.

-

Ensure the plaintext of the imported key is the same as that of the deleted key.

-

400

-

KMS.2701

-

Key material is not in Enabled or Disabled state and cannot be deleted.

-

Key material is not in Enabled or Disabled state and cannot be deleted.

-

Ensure that the key is in Enabled or Disabled state.

-

500

-

KMS.0101

-

KMS error.

-

KMS error.

-

Try again later or contact customer service.

-

500

-

KMS.0102

-

Abnormal KMS I/O.

-

Abnormal KMS I/O.

-

Try again later or contact customer service.

-
-
- -
- -
- diff --git a/docs/kms/api-ref/public_sys-resources/icon-arrowdn.gif b/docs/kms/api-ref/public_sys-resources/icon-arrowdn.gif index 84eec9be..37942803 100644 Binary files a/docs/kms/api-ref/public_sys-resources/icon-arrowdn.gif and b/docs/kms/api-ref/public_sys-resources/icon-arrowdn.gif differ diff --git a/docs/kms/api-ref/public_sys-resources/icon-arrowrt.gif b/docs/kms/api-ref/public_sys-resources/icon-arrowrt.gif index 39583d16..6aaaa11c 100644 Binary files a/docs/kms/api-ref/public_sys-resources/icon-arrowrt.gif and b/docs/kms/api-ref/public_sys-resources/icon-arrowrt.gif differ