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 @@ + + +
POST /v1.0/{project_id}/kms/sign
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
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.) + |
+
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: +
|
+
message_type + |
+No + |
+String + |
+Message type. The default value is DIGEST. Its value can be: +
|
+
sequence + |
+No + |
+String + |
+36-byte serial number of a request message. Example: 919c82d4-8046-4722-9094-35c3c6524cff + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
key_id + |
+String + |
+CMK ID + |
+
signature + |
+String + |
+Signature value, which is encoded using Base64 + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 502
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 504
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
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" +}+
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 + |
+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. + |
+
POST /v1.0/{project_id}/kms/verify
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID + |
+
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.) + |
+
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: +
|
+
message_type + |
+No + |
+String + |
+Message type. The default value is DIGEST. Its value can be: +
|
+
sequence + |
+No + |
+String + |
+36-byte serial number of a request message Example: 919c82d4-8046-4722-9094-35c3c6524cff + |
+
Status code: 200
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 502
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
Status code: 504
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error + |
+Object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error information + |
+
{ + "key_id" : "0d0466b0-e727-4d9c-b35d-f84bb474a37f", + "signing_algorithm" : "RSASSA_PKCS1_V1_5_SHA_256", + "signature" : "jFUqQESGBc0j6k9BozzrP9YL4qk8/W9DZRvK6XXX...", + "message" : "MmFiZWE0ZjI3ZGIxYTkzY2RmYmEzM2YwMTA1YmJjYw==" +}+
Status code: 200
+The request has succeeded.
+{ + "key_id" : "0d0466b0-e727-4d9c-b35d-f84bb474a37f", + "signature_valid" : "true" +}+
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. + |
+
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.
-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.
+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.
+Protocol used to transmit requests. All APIs use HTTPS.
+Domain name or IP address of the server bearing the REST service. The endpoint varies between services in different regions. It can be obtained from the administrator.
+Access path of an API for performing a specified operation. Obtain the path from the URI of an API. For example, the resource-path of the API used to obtain a user token is /v3/auth/tokens.
+Query parameter, which is optional. Ensure that a question mark (?) is included before each query parameter that is in the format of "Parameter name=Parameter value". For example, ?limit=10 indicates that a maximum of 10 data records will be displayed.
+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.
+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+
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:
+In addition to supporting token-based authentication, APIs also support authentication using access key ID/secret access key (AK/SK). During AK/SK-based authentication, an SDK is used to sign the request, and the Authorization (signature information) and X-Sdk-Date (time when the request is sent) header fields are automatically added to the request.
+For more information, see .
+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+
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.
+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 @@This API generates a 512-bit random number.
+This API generates a 512-bit random number.
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 @@Parameter +
|
---|