diff --git a/docs/tms/api-ref/ALL_META.TXT.json b/docs/tms/api-ref/ALL_META.TXT.json index c646df94e..2278f94a5 100644 --- a/docs/tms/api-ref/ALL_META.TXT.json +++ b/docs/tms/api-ref/ALL_META.TXT.json @@ -1,171 +1,508 @@ [ + { + "dockw":"API Reference" + }, { "uri":"en-us_topic_0056283725.html", + "node_id":"en-us_topic_0056283725.xml", "product_code":"tms", "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 ", "doc_type":"api", "kw":"APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"APIs", "githuburl":"" }, { "uri":"en-us_topic_0056765894.html", + "node_id":"en-us_topic_0056765894.xml", "product_code":"tms", "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":"API Description", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"API Description", "githuburl":"" }, { "uri":"en-us_topic_0133313255.html", + "node_id":"en-us_topic_0133313255.xml", "product_code":"tms", "code":"3", "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":"Querying the API Version", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Querying the API Version", "githuburl":"" }, { "uri":"en-us_topic_0133313256.html", + "node_id":"en-us_topic_0133313256.xml", "product_code":"tms", "code":"4", "des":"This API is used to query the versions of all TMS APIs.GET /Example requestParameter descriptionParameters in the responseNameTypeDescriptionversionsArraySpecifies all AP", "doc_type":"api", "kw":"Querying the API Versions,Querying the API Version,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Querying the API Versions", "githuburl":"" }, { "uri":"en-us_topic_0133313257.html", + "node_id":"en-us_topic_0133313257.xml", "product_code":"tms", "code":"5", "des":"This API is used to query the details of a specified TMS API version.GET /{api_version}Parameter descriptionParameters in the requestParameterMandatoryTypeDescriptionapi_", "doc_type":"api", "kw":"Querying Details About a Specified TMS API Version,Querying the API Version,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Querying Details About a Specified TMS API Version", "githuburl":"" }, { "uri":"en-us_topic_0133313258.html", + "node_id":"en-us_topic_0133313258.xml", "product_code":"tms", "code":"6", "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":"Predefined Tag Operations", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Predefined Tag Operations", "githuburl":"" }, { "uri":"en-us_topic_0056765935.html", + "node_id":"en-us_topic_0056765935.xml", "product_code":"tms", "code":"7", "des":"This API is used to create or delete predefined tags. You can add tags to resources using the predefined tags.This API supports idempotency and batch processing.Idempoten", "doc_type":"api", "kw":"Creating or Deleting Predefined Tags,Predefined Tag Operations,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Creating or Deleting Predefined Tags", "githuburl":"" }, { "uri":"en-us_topic_0056765936.html", + "node_id":"en-us_topic_0056765936.xml", "product_code":"tms", "code":"8", - "des":"This API is used to query predefined tags.GET /v1.0/predefine_tagsParameter descriptionParameters in the requestNameMandatoryTypeDescriptionkeyNoStringSpecifies the key.S", + "des":"This API is used to query predefined tags.GET /v1.0/predefine_tagsParameter descriptionRequest header parametersParameterMandatoryTypeDescriptionX-Auth-TokenYesStringSpec", "doc_type":"api", "kw":"Querying Predefined Tags,Predefined Tag Operations,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Querying Predefined Tags", "githuburl":"" }, { "uri":"en-us_topic_0060929630.html", + "node_id":"en-us_topic_0060929630.xml", "product_code":"tms", "code":"9", - "des":"This API is used for modifying predefined tags.PUT /v1.0/predefine_tagsParameter descriptionParameters in the requestNameMandatoryTypeDescriptionold_tagYesObjectSpecifies", + "des":"This API is used for modifying predefined tags.PUT /v1.0/predefine_tagsParameter descriptionRequest header parametersParameterMandatoryTypeDescriptionX-Auth-TokenYesStrin", "doc_type":"api", "kw":"Modifying Predefined Tags,Predefined Tag Operations,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Modifying Predefined Tags", "githuburl":"" }, { - "uri":"en-us_topic_0170638684.html", + "uri":"topic_300000002.html", + "node_id":"topic_300000002.xml", "product_code":"tms", "code":"10", "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":"Quotas", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], + "title":"Quotas", + "githuburl":"" + }, + { + "uri":"ShowTagQuota.html", + "node_id":"showtagquota.xml", + "product_code":"tms", + "code":"11", + "des":"This API is used to query tag quotas.GET /v1.0/tms/quotasStatus code: 200Querying tag quotasStatus code: 200Successful operationSee Status Codes.See Error Codes.", + "doc_type":"api", + "kw":"Querying Tag Quotas,Quotas,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], + "title":"Querying Tag Quotas", + "githuburl":"" + }, + { + "uri":"topic_300000003.html", + "node_id":"topic_300000003.xml", + "product_code":"tms", + "code":"12", + "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":"Resource Tags", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], + "title":"Resource Tags", + "githuburl":"" + }, + { + "uri":"CreateResourceTag.html", + "node_id":"createresourcetag.xml", + "product_code":"tms", + "code":"13", + "des":"You can use this API to add tags to multiple resources. Up to 10 tags can be added to a resource and a maximum of 50 resources can be tagged at a time.POST /v1.0/resource", + "doc_type":"api", + "kw":"Batch Adding Tags,Resource Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], + "title":"Batch Adding Tags", + "githuburl":"" + }, + { + "uri":"DeleteResourceTag.html", + "node_id":"deleteresourcetag.xml", + "product_code":"tms", + "code":"14", + "des":"You can use this API to remove tags from multiple resources. Up to 10 tags can be removed from a resource and a maximum of 50 resources can be operated at a time.POST /v1", + "doc_type":"api", + "kw":"Batch Removing Tags,Resource Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], + "title":"Batch Removing Tags", + "githuburl":"" + }, + { + "uri":"ListTagKeys.html", + "node_id":"listtagkeys.xml", + "product_code":"tms", + "code":"15", + "des":"You can use this API to query any tag key in a specified region.GET /v1.0/tag-keysStatus code: 200Query tag keysStatus code: 200Successful operationSee Status Codes.See E", + "doc_type":"api", + "kw":"Querying Tag Keys,Resource Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], + "title":"Querying Tag Keys", + "githuburl":"" + }, + { + "uri":"ListTagValues.html", + "node_id":"listtagvalues.xml", + "product_code":"tms", + "code":"16", + "des":"You can use this API to query any tag value in a specified region.GET /v1.0/tag-valuesStatus code: 200Querying tag valuesStatus code: 200Successful operationSee Status Co", + "doc_type":"api", + "kw":"Query Tag Values,Resource Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], + "title":"Query Tag Values", + "githuburl":"" + }, + { + "uri":"GetResourceTag.html", + "node_id":"getresourcetag.xml", + "product_code":"tms", + "code":"17", + "des":"You can use this API to query tags of a specific resource.GET /v2.0/resources/{resource_id}/tagsStatus code: 200Querying tags of a resourceStatus code: 200Successful oper", + "doc_type":"api", + "kw":"Querying Resource Tags,Resource Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], + "title":"Querying Resource Tags", + "githuburl":"" + }, + { + "uri":"ListResource.html", + "node_id":"listresource.xml", + "product_code":"tms", + "code":"18", + "des":"You can use this API to filter resources by tag.POST /v1.0/resource-instances/filterStatus code: 200Filtering resources by tagStatus code: 200Successful operationSee Stat", + "doc_type":"api", + "kw":"Querying Resources by Tag,Resource Tags,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], + "title":"Querying Resources by Tag", + "githuburl":"" + }, + { + "uri":"topic_300000004.html", + "node_id":"topic_300000004.xml", + "product_code":"tms", + "code":"19", + "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":"Querying Services Supported by TMS", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], + "title":"Querying Services Supported by TMS", + "githuburl":"" + }, + { + "uri":"ListProviders.html", + "node_id":"listproviders.xml", + "product_code":"tms", + "code":"20", + "des":"You can use this API to query services supported by TMS.GET /v1.0/tms/providersStatus code: 200Querying supported services by TMSStatus code: 200Successful operationSee S", + "doc_type":"api", + "kw":"Querying Services Supported by TMS,Querying Services Supported by TMS,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], + "title":"Querying Services Supported by TMS", + "githuburl":"" + }, + { + "uri":"en-us_topic_0170638684.html", + "node_id":"en-us_topic_0170638684.xml", + "product_code":"tms", + "code":"21", + "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":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Permissions Policies and Supported Actions", "githuburl":"" }, { "uri":"en-us_topic_0180205868.html", + "node_id":"en-us_topic_0180205868.xml", "product_code":"tms", - "code":"11", + "code":"22", "des":"You can use Identity and Access Management (IAM) for fine-grained permissions management of your TMS resources. If your account does not need individual IAM users, you ca", "doc_type":"api", "kw":"Introduction,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Introduction", "githuburl":"" }, { "uri":"en-us_topic_0180205869.html", + "node_id":"en-us_topic_0180205869.xml", "product_code":"tms", - "code":"12", + "code":"23", "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":"TMS API Actions,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"TMS API Actions", "githuburl":"" }, { "uri":"en-us_topic_0126416865.html", + "node_id":"en-us_topic_0126416865.xml", "product_code":"tms", - "code":"13", + "code":"24", "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":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Appendix", "githuburl":"" }, { "uri":"en-us_topic_0130578970.html", + "node_id":"en-us_topic_0130578970.xml", "product_code":"tms", - "code":"14", + "code":"25", "des":"NormalReturned ValueDescription200 OKThe results of GET and PUT operations are returned as expected.201 CreatedThe results of the POST operation are returned as expected.", "doc_type":"api", "kw":"Status Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Status Codes", "githuburl":"" }, { "uri":"en-us_topic_0057939857.html", + "node_id":"en-us_topic_0057939857.xml", "product_code":"tms", - "code":"15", + "code":"26", "des":"If the returned status code of a TMS API is 400, the customized error information will also be returned. This section describes the meaning of each TMS error code.", "doc_type":"api", "kw":"Error Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Error Codes", "githuburl":"" }, { "uri":"en-us_topic_0126416752.html", + "node_id":"en-us_topic_0126416752.xml", "product_code":"tms", - "code":"16", + "code":"27", "des":"A project ID is required for some URLs when an API is called. Therefore, you need to obtain a project ID in advance. Two methods are available:Obtain the Project ID by Ca", "doc_type":"api", "kw":"Obtaining a Project ID,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Obtaining a Project ID", "githuburl":"" }, { "uri":"en-us_topic_0057939858.html", + "node_id":"en-us_topic_0057939858.xml", "product_code":"tms", - "code":"17", + "code":"28", "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":[ + { + "documenttype":"api", + "prodname":"tms" + } + ], "title":"Change History", "githuburl":"" } diff --git a/docs/tms/api-ref/CLASS.TXT.json b/docs/tms/api-ref/CLASS.TXT.json index b6038036e..adb75717a 100644 --- a/docs/tms/api-ref/CLASS.TXT.json +++ b/docs/tms/api-ref/CLASS.TXT.json @@ -63,7 +63,7 @@ "code":"7" }, { - "desc":"This API is used to query predefined tags.GET /v1.0/predefine_tagsParameter descriptionParameters in the requestNameMandatoryTypeDescriptionkeyNoStringSpecifies the key.S", + "desc":"This API is used to query predefined tags.GET /v1.0/predefine_tagsParameter descriptionRequest header parametersParameterMandatoryTypeDescriptionX-Auth-TokenYesStringSpec", "product_code":"tms", "title":"Querying Predefined Tags", "uri":"en-us_topic_0056765936.html", @@ -72,7 +72,7 @@ "code":"8" }, { - "desc":"This API is used for modifying predefined tags.PUT /v1.0/predefine_tagsParameter descriptionParameters in the requestNameMandatoryTypeDescriptionold_tagYesObjectSpecifies", + "desc":"This API is used for modifying predefined tags.PUT /v1.0/predefine_tagsParameter descriptionRequest header parametersParameterMandatoryTypeDescriptionX-Auth-TokenYesStrin", "product_code":"tms", "title":"Modifying Predefined Tags", "uri":"en-us_topic_0060929630.html", @@ -83,29 +83,128 @@ { "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":"tms", - "title":"Permissions Policies and Supported Actions", - "uri":"en-us_topic_0170638684.html", + "title":"Quotas", + "uri":"topic_300000002.html", "doc_type":"api", - "p_code":"", + "p_code":"2", "code":"10" }, { - "desc":"You can use Identity and Access Management (IAM) for fine-grained permissions management of your TMS resources. If your account does not need individual IAM users, you ca", + "desc":"This API is used to query tag quotas.GET /v1.0/tms/quotasStatus code: 200Querying tag quotasStatus code: 200Successful operationSee Status Codes.See Error Codes.", "product_code":"tms", - "title":"Introduction", - "uri":"en-us_topic_0180205868.html", + "title":"Querying Tag Quotas", + "uri":"ShowTagQuota.html", "doc_type":"api", "p_code":"10", "code":"11" }, + { + "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":"tms", + "title":"Resource Tags", + "uri":"topic_300000003.html", + "doc_type":"api", + "p_code":"2", + "code":"12" + }, + { + "desc":"You can use this API to add tags to multiple resources. Up to 10 tags can be added to a resource and a maximum of 50 resources can be tagged at a time.POST /v1.0/resource", + "product_code":"tms", + "title":"Batch Adding Tags", + "uri":"CreateResourceTag.html", + "doc_type":"api", + "p_code":"12", + "code":"13" + }, + { + "desc":"You can use this API to remove tags from multiple resources. Up to 10 tags can be removed from a resource and a maximum of 50 resources can be operated at a time.POST /v1", + "product_code":"tms", + "title":"Batch Removing Tags", + "uri":"DeleteResourceTag.html", + "doc_type":"api", + "p_code":"12", + "code":"14" + }, + { + "desc":"You can use this API to query any tag key in a specified region.GET /v1.0/tag-keysStatus code: 200Query tag keysStatus code: 200Successful operationSee Status Codes.See E", + "product_code":"tms", + "title":"Querying Tag Keys", + "uri":"ListTagKeys.html", + "doc_type":"api", + "p_code":"12", + "code":"15" + }, + { + "desc":"You can use this API to query any tag value in a specified region.GET /v1.0/tag-valuesStatus code: 200Querying tag valuesStatus code: 200Successful operationSee Status Co", + "product_code":"tms", + "title":"Query Tag Values", + "uri":"ListTagValues.html", + "doc_type":"api", + "p_code":"12", + "code":"16" + }, + { + "desc":"You can use this API to query tags of a specific resource.GET /v2.0/resources/{resource_id}/tagsStatus code: 200Querying tags of a resourceStatus code: 200Successful oper", + "product_code":"tms", + "title":"Querying Resource Tags", + "uri":"GetResourceTag.html", + "doc_type":"api", + "p_code":"12", + "code":"17" + }, + { + "desc":"You can use this API to filter resources by tag.POST /v1.0/resource-instances/filterStatus code: 200Filtering resources by tagStatus code: 200Successful operationSee Stat", + "product_code":"tms", + "title":"Querying Resources by Tag", + "uri":"ListResource.html", + "doc_type":"api", + "p_code":"12", + "code":"18" + }, + { + "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":"tms", + "title":"Querying Services Supported by TMS", + "uri":"topic_300000004.html", + "doc_type":"api", + "p_code":"2", + "code":"19" + }, + { + "desc":"You can use this API to query services supported by TMS.GET /v1.0/tms/providersStatus code: 200Querying supported services by TMSStatus code: 200Successful operationSee S", + "product_code":"tms", + "title":"Querying Services Supported by TMS", + "uri":"ListProviders.html", + "doc_type":"api", + "p_code":"19", + "code":"20" + }, + { + "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":"tms", + "title":"Permissions Policies and Supported Actions", + "uri":"en-us_topic_0170638684.html", + "doc_type":"api", + "p_code":"", + "code":"21" + }, + { + "desc":"You can use Identity and Access Management (IAM) for fine-grained permissions management of your TMS resources. If your account does not need individual IAM users, you ca", + "product_code":"tms", + "title":"Introduction", + "uri":"en-us_topic_0180205868.html", + "doc_type":"api", + "p_code":"21", + "code":"22" + }, { "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":"tms", "title":"TMS API Actions", "uri":"en-us_topic_0180205869.html", "doc_type":"api", - "p_code":"10", - "code":"12" + "p_code":"21", + "code":"23" }, { "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.", @@ -114,7 +213,7 @@ "uri":"en-us_topic_0126416865.html", "doc_type":"api", "p_code":"", - "code":"13" + "code":"24" }, { "desc":"NormalReturned ValueDescription200 OKThe results of GET and PUT operations are returned as expected.201 CreatedThe results of the POST operation are returned as expected.", @@ -122,8 +221,8 @@ "title":"Status Codes", "uri":"en-us_topic_0130578970.html", "doc_type":"api", - "p_code":"13", - "code":"14" + "p_code":"24", + "code":"25" }, { "desc":"If the returned status code of a TMS API is 400, the customized error information will also be returned. This section describes the meaning of each TMS error code.", @@ -131,8 +230,8 @@ "title":"Error Codes", "uri":"en-us_topic_0057939857.html", "doc_type":"api", - "p_code":"13", - "code":"15" + "p_code":"24", + "code":"26" }, { "desc":"A project ID is required for some URLs when an API is called. Therefore, you need to obtain a project ID in advance. Two methods are available:Obtain the Project ID by Ca", @@ -140,8 +239,8 @@ "title":"Obtaining a Project ID", "uri":"en-us_topic_0126416752.html", "doc_type":"api", - "p_code":"13", - "code":"16" + "p_code":"24", + "code":"27" }, { "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.", @@ -150,6 +249,6 @@ "uri":"en-us_topic_0057939858.html", "doc_type":"api", "p_code":"", - "code":"17" + "code":"28" } ] \ No newline at end of file diff --git a/docs/tms/api-ref/CreateResourceTag.html b/docs/tms/api-ref/CreateResourceTag.html new file mode 100644 index 000000000..fdf83c215 --- /dev/null +++ b/docs/tms/api-ref/CreateResourceTag.html @@ -0,0 +1,237 @@ + + +

Batch Adding Tags

+

Function

You can use this API to add tags to multiple resources. Up to 10 tags can be added to a resource and a maximum of 50 resources can be tagged at a time.

+
+

URI

POST /v1.0/resource-tags/batch-create

+
+

Request

+
+ + + + + + + + + + + +
Table 1 Header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Specifies the user token. TMS is a global service. So you need to set scope to domain when calling an IAM API to obtain a user token. The value of X-Subject-Token in the response header is the user token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

No

+

String

+

Specifies the project ID. This parameter is mandatory when resource_type is at a region level.

+

resources

+

Yes

+

Array of ResourceTagBody objects

+

Specifies resources.

+

tags

+

Yes

+

Array of CreateTagRequest objects

+

Specifies tags.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 ResourceTagBody

Parameter

+

Mandatory

+

Type

+

Description

+

resource_id

+

Yes

+

String

+

Specifies the resource ID.

+

resource_type

+

Yes

+

String

+

Specifies the resource type.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 CreateTagRequest

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Specifies the key.

+

It cannot be left blank and can contain a maximum of 36 Unicode characters. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.

+

value

+

Yes

+

String

+

Specifies the value.

+

Each value contains a maximum of 43 Unicode characters and can be an empty string. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.

+
+
+
+

Response

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Body parameters

Parameter

+

Type

+

Description

+

failed_resources

+

Array of TagCreateResponseItem objects

+

Specifies resources for which tags fail to be added.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 6 TagCreateResponseItem

Parameter

+

Type

+

Description

+

resource_id

+

String

+

Specifies the resource ID.

+

resource_type

+

String

+

Specifies the resource type.

+

error_code

+

String

+

Error Codes

+

error_msg

+

String

+

Specifies the error.

+
+
+
+

Example Request

You can use this API to batch tag resources.

+
POST https://{Endpoint}/v1.0/resource-tags/batch-create
+
+{
+  "project_id" : "xxxdcffffffff",
+  "resources" : [ {
+    "resource_id" : "a28531fa-a8d5-468e-8417-86a80962ee5e",
+    "resource_type" : "disk"
+  }, {
+    "resource_id" : "a28531fa-a8d5-468e-8417-86a8096ddddd",
+    "resource_type" : "vpc"
+  } ],
+  "tags" : [ {
+    "key" : "ENV",
+    "value" : "dev"
+  }, {
+    "key" : "DEPT",
+    "value" : "pdd"
+  } ]
+}
+
+

Example Response

Status code: 200

+

Successful operation

+
{
+  "failed_resources": []
+}
+
+

Status Codes

See Status Codes.

+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/tms/api-ref/DeleteResourceTag.html b/docs/tms/api-ref/DeleteResourceTag.html new file mode 100644 index 000000000..23732b7bd --- /dev/null +++ b/docs/tms/api-ref/DeleteResourceTag.html @@ -0,0 +1,223 @@ + + +

Batch Removing Tags

+

Function

You can use this API to remove tags from multiple resources. Up to 10 tags can be removed from a resource and a maximum of 50 resources can be operated at a time.

+
+

URI

POST /v1.0/resource-tags/batch-delete

+
+

Request

+
+ + + + + + + + + + + +
Table 1 Header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Specifies the user token. TMS is a global service. So you need to set scope to domain when calling an IAM API to obtain a user token. The value of X-Subject-Token in the response header is the user token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

No

+

String

+

Specifies the project ID. This parameter is mandatory when resource_type is at a region level.

+

resources

+

Yes

+

Array of ResourceTagBody objects

+

Specifies resource list

+

tags

+

Yes

+

Array of DeleteTagRequest objects

+

Specifies tags.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 ResourceTagBody

Parameter

+

Mandatory

+

Type

+

Description

+

resource_id

+

Yes

+

String

+

Specifies the resource ID.

+

resource_type

+

Yes

+

String

+

Specifies the resource type.

+
+
+ +
+ + + + + + + + + + + +
Table 4 DeleteTagRequest

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Specifies the key.

+

It cannot be left blank and can contain a maximum of 36 Unicode characters. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.

+
+
+
+

Response

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Body parameters

Parameter

+

Type

+

Description

+

failed_resources

+

Array of TagDeleteResponseItem objects

+

Specifies resources for which tags are failed to be deleted.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 6 TagDeleteResponseItem

Parameter

+

Type

+

Description

+

resource_id

+

String

+

Specifies the resource ID.

+

resource_type

+

String

+

Specifies the resource type.

+

error_code

+

String

+

Error Codes

+

error_msg

+

String

+

Specifies the error.

+
+
+
+

Example Request

Batch delete tags

+
POST https://{Endpoint}/v1.0/resource-tags/batch-delete
+
+{
+  "project_id" : "xxxdcffffffff",
+  "resources" : [ {
+    "resource_id" : "a28531fa-a8d5-468e-8417-86a80962ee5e",
+    "resource_type" : "disk"
+  }, {
+    "resource_id" : "vpc-dc7d19b7",
+    "resource_type" : "vpc"
+  } ],
+  "tags" : [ {
+    "key" : "ENV"
+  } ]
+}
+
+

Example Response

Status code: 200

+

Successful operation

+
{
+  "failed_resources": []
+}
+
+

Status Codes

See Status Codes.

+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/tms/api-ref/GetResourceTag.html b/docs/tms/api-ref/GetResourceTag.html new file mode 100644 index 000000000..363ec07ab --- /dev/null +++ b/docs/tms/api-ref/GetResourceTag.html @@ -0,0 +1,161 @@ + + +

Querying Resource Tags

+

Function

You can use this API to query tags of a specific resource.

+
+

URI

GET /v2.0/resources/{resource_id}/tags

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

Parameter

+

Mandatory

+

Type

+

Description

+

resource_id

+

Yes

+

String

+

Specifies the resource ID.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

No

+

String

+

Specifies the project ID. This parameter is mandatory for region-level resources.

+

resource_type

+

Yes

+

String

+

Specifies the resource type.

+
+
+
+

Request

+
+ + + + + + + + + + + +
Table 3 Header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Specifies the user token. TMS is a global service. So you need to set scope to domain when calling an IAM API to obtain a user token. The value of X-Subject-Token in the response header is the user token.

+
+
+
+

Response

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Body parameters

Parameter

+

Type

+

Description

+

tags

+

Array of TagVo objects

+

Specifies resource tags.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 TagVo

Parameter

+

Type

+

Description

+

key

+

String

+

Specifies the key.

+

It cannot be left blank and can contain a maximum of 36 Unicode characters. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.

+

value

+

String

+

Specifies the value.

+

Each value contains a maximum of 43 Unicode characters and can be an empty string. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.

+
+
+
+

Example Request

Querying tags of a resource

+
GET https://{Endpoint}/v2.0/resources/xxxx/tags?project_id=xxxx&resource_type=disk
+
+

Example Response

Status code: 200

+

Successful operation

+
{
+  "tags" : [ {
+    "key" : "key1",
+    "value" : "value1"
+  }, {
+    "key" : "key2",
+    "value" : "value2"
+  } ]
+}
+
+

Status Codes

See Status Codes.

+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/tms/api-ref/ListProviders.html b/docs/tms/api-ref/ListProviders.html new file mode 100644 index 000000000..427bca8b1 --- /dev/null +++ b/docs/tms/api-ref/ListProviders.html @@ -0,0 +1,910 @@ + + +

Querying Services Supported by TMS

+

Function

You can use this API to query services supported by TMS.

+
+

URI

GET /v1.0/tms/providers

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

locale

+

No

+

String

+

Specifies the display language.

+

limit

+

No

+

Integer

+

The maximum queries supported. The value 10 is used by default if this parameter is not set. The value range is 1 to 200.

+

offset

+

No

+

Integer

+

Specifies the index position, which starts from the next data record specified by offset. The value must be a number and cannot be negative. The default value is 0.

+

provider

+

No

+

String

+

Specifies the cloud service name.

+
+
+
+

Request

+
+ + + + + + + + + + + +
Table 2 Header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Specifies the user token. TMS is a global service. So you need to set scope to domain when calling an IAM API to obtain a user token. The value of X-Subject-Token in the response header is the user token.

+
+
+
+

Response

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 3 Body parameters

Parameter

+

Type

+

Description

+

providers

+

Array of ProviderResponseBody objects

+

Specifies the cloud services

+

total_count

+

Integer

+

Specifies the total cloud services supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 4 ProviderResponseBody

Parameter

+

Type

+

Description

+

provider

+

String

+

Specifies the cloud service name.

+

provider_i18n_display_name

+

String

+

Specifies the display name of the resource. You can set the language by setting the **locale** parameter.

+

resource_types

+

Array of ResourceTypeBody objects

+

Specifies the resource type.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 ResourceTypeBody

Parameter

+

Type

+

Description

+

resource_type

+

String

+

Specifies the resource type.

+

resource_type_i18n_display_name

+

String

+

Specifies the display name of the resource type. You can set the language by setting the **locale** parameter.

+

regions

+

Array of strings

+

Specifies the supported regions.

+

global

+

Boolean

+

Specifies whether the resource is a global resource.

+
+
+
+

Example Request

Querying supported services by TMS

+
GET https://{Endpoint}/v1.0/tms/providers?locale=en-us&limit=200
+
+

Example Response

Status code: 200

+

Successful operation

+
{
+    "providers": [
+        {
+            "provider": "drs",
+            "provider_i18n_display_name": "drs",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "sync",
+                    "resource_type_i18n_display_name": "sync",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "cloudDataGuard",
+                    "resource_type_i18n_display_name": "cloudDataGuard",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "subscription",
+                    "resource_type_i18n_display_name": "subscription",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "backupMigration",
+                    "resource_type_i18n_display_name": "backupMigration",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "migration",
+                    "resource_type_i18n_display_name": "migration",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "dli",
+            "provider_i18n_display_name": "dli",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "dli_basic_datasource",
+                    "resource_type_i18n_display_name": "dli_basic_datasource",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "dli_queue",
+                    "resource_type_i18n_display_name": "dli_queue",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "gaussdb",
+            "provider_i18n_display_name": "gaussdb",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "gaussdb",
+                    "resource_type_i18n_display_name": "gaussdb",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "er",
+            "provider_i18n_display_name": "er",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "instance",
+                    "resource_type_i18n_display_name": "instance",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "nosql",
+            "provider_i18n_display_name": "GaussDBNoSQL",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "nosql",
+                    "resource_type_i18n_display_name": "nosql",
+                    "regions": [
+                        "cn-north-7",
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "as",
+            "provider_i18n_display_name": "AS",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "scaling_group",
+                    "resource_type_i18n_display_name": "AS",
+                    "regions": [
+                        "ru-northwest-2"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "ecs",
+            "provider_i18n_display_name": "ecs",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "ecs",
+                    "resource_type_i18n_display_name": "ECS",
+                    "regions": [
+                        "ru-northwest-2",
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "vpc",
+            "provider_i18n_display_name": "vpc",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "subnet",
+                    "resource_type_i18n_display_name": "subnet",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "eip",
+                    "resource_type_i18n_display_name": "eip",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "vpc",
+                    "resource_type_i18n_display_name": "vpc",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "loadbalancers",
+                    "resource_type_i18n_display_name": "loadbalancers",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "listeners",
+                    "resource_type_i18n_display_name": "listeners",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "ipsec-site-connections",
+                    "resource_type_i18n_display_name": "ipsec-site-connections",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "nat_gateways",
+                    "resource_type_i18n_display_name": "nat_gateways",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "DBSS",
+            "provider_i18n_display_name": "Database Security Service",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "auditInstance",
+                    "resource_type_i18n_display_name": "Database Security Service",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "FunctionGraph",
+            "provider_i18n_display_name": "FunctionGraph",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "functions",
+                    "resource_type_i18n_display_name": "functions",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "dms",
+            "provider_i18n_display_name": "dms",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "kafka",
+                    "resource_type_i18n_display_name": "kafka",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "dcs",
+            "provider_i18n_display_name": "dcs",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "dcs",
+                    "resource_type_i18n_display_name": "dcs",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "css",
+            "provider_i18n_display_name": "css",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "css-cluster",
+                    "resource_type_i18n_display_name": "css-cluster",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "cce",
+            "provider_i18n_display_name": "cce",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "cce-cluster",
+                    "resource_type_i18n_display_name": "cce-cluster",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "ims",
+            "provider_i18n_display_name": "ims",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "private_image",
+                    "resource_type_i18n_display_name": "private_image",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "vbs",
+            "provider_i18n_display_name": "vbs",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "backup",
+                    "resource_type_i18n_display_name": "backup",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "autoback",
+            "provider_i18n_display_name": "autoback",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "backup_policy",
+                    "resource_type_i18n_display_name": "backup_policy",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "rds",
+            "provider_i18n_display_name": "rds",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "rds",
+                    "resource_type_i18n_display_name": "rds",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "csbs",
+            "provider_i18n_display_name": "csbs",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "vault",
+                    "resource_type_i18n_display_name": "vault",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "csbs_backup",
+                    "resource_type_i18n_display_name": "csbs_backup",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": false,
+                    "resource_type": "csbs_backup_policy",
+                    "resource_type_i18n_display_name": "csbs_backup_policy",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "dns",
+            "provider_i18n_display_name": "dns",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "DNS_ptr_record",
+                    "resource_type_i18n_display_name": "DNS_ptr_record",
+                    "regions": [
+                        "eu-de"
+                    ]
+                },
+                {
+                    "global": true,
+                    "resource_type": "DNS_private_zone",
+                    "resource_type_i18n_display_name": "DNS_private_zone",
+                    "regions": [
+                        "eu-de",
+                        "eu-nl"
+                    ]
+                },
+                {
+                    "global": true,
+                    "resource_type": "DNS_private_recordset",
+                    "resource_type_i18n_display_name": "DNS_private_recordset",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "evs",
+            "provider_i18n_display_name": "evs",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "disk",
+                    "resource_type_i18n_display_name": "disk",
+                    "regions": [
+                        "",
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "kms",
+            "provider_i18n_display_name": "kms",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "kms",
+                    "resource_type_i18n_display_name": "kms",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "smn",
+            "provider_i18n_display_name": "smn",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "smn_topic",
+                    "resource_type_i18n_display_name": "smn_topic",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "dws",
+            "provider_i18n_display_name": "dws",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "dws_clusters",
+                    "resource_type_i18n_display_name": "dws_clusters",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "bms",
+            "provider_i18n_display_name": "bms",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "bms_server",
+                    "resource_type_i18n_display_name": "bms_server",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "deh",
+            "provider_i18n_display_name": "deh",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "dedicated-host-tags",
+                    "resource_type_i18n_display_name": "dedicated-host-tags",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "waf",
+            "provider_i18n_display_name": "waf",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "waf",
+                    "resource_type_i18n_display_name": "waf",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "sfs",
+            "provider_i18n_display_name": "sfs",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "sfs",
+                    "resource_type_i18n_display_name": "sfs",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "obs",
+            "provider_i18n_display_name": "obs",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "bucket",
+                    "resource_type_i18n_display_name": "bucket",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "sdrs",
+            "provider_i18n_display_name": "sdrs",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "sdrs",
+                    "resource_type_i18n_display_name": "sdrs",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "dds",
+            "provider_i18n_display_name": "dds",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "dds",
+                    "resource_type_i18n_display_name": "dds",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        },
+        {
+            "provider": "mrs",
+            "provider_i18n_display_name": "mrs",
+            "resource_types": [
+                {
+                    "global": false,
+                    "resource_type": "clusters",
+                    "resource_type_i18n_display_name": "clusters",
+                    "regions": [
+                        "eu-de"
+                    ]
+                }
+            ]
+        }
+    ],
+    "total_count": 32
+}
+
+

Status Codes

See Status Codes.

+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/tms/api-ref/ListResource.html b/docs/tms/api-ref/ListResource.html new file mode 100644 index 000000000..f66dc03dc --- /dev/null +++ b/docs/tms/api-ref/ListResource.html @@ -0,0 +1,348 @@ + + +

Querying Resources by Tag

+

Function

You can use this API to filter resources by tag.

+
+

URI

POST /v1.0/resource-instances/filter

+
+

Request

+
+ + + + + + + + + + + +
Table 1 Header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Specifies the user token. TMS is a global service. So you need to set scope to domain when calling an IAM API to obtain a user token. The value of X-Subject-Token in the response header is the user token.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

No

+

String

+

Project ID. This parameter is mandatory when resource_type is a region-specific service.

+

resource_types

+

Yes

+

Array of strings

+

Resource type. This parameter is case-sensitive. Supported resource types can be provided as ecs,scaling_group, images, disk,vpcs,security-groups, shared_bandwidth,eip, cdn.

+

tags

+

Yes

+

Array of Tag objects

+

Tags

+

without_any_tag

+

No

+

Boolean

+

Specifies whether to query only untagged resources. If this parameter is set to true, only untagged resources are queried.

+

offset

+

No

+

Integer

+

Index position. The query starts from the next data specified by offset. The value must be a number and cannot be negative. The default value is 0.

+

limit

+

No

+

Integer

+

The maximum queries supported. The value 200 is used by default if this parameter is not set. The value range is 1 to 200.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Tag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Key.

+

It cannot be left blank and can contain a maximum of 36 Unicode characters. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.

+

values

+

Yes

+

Array of strings

+

Specifies tag values.

+

Each value contains a maximum of 43 Unicode characters and can be an empty string. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.

+
+
+
+

Response

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Body parameters

Parameter

+

Type

+

Description

+

resources

+

Array of Resources objects

+

Specifies resources.

+

errors

+

Array of Errors objects

+

Specifies resources of the tag.

+

total_count

+

Integer

+

Specifies the total number of resources of the tag.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Resources

Parameter

+

Type

+

Description

+

project_id

+

String

+

ProjectID

+

project_name

+

String

+

Specifies the project name.

+

resource_id

+

String

+

Specifies the resource ID.

+

resource_name

+

String

+

Specifies the resource name.

+

resource_type

+

String

+

Specifies the resource type.

+

tags

+

Array of FilterTagResponse objects

+

Specifies the resource tag.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 FilterTagResponse

Parameter

+

Type

+

Description

+

key

+

String

+

Specifies the key.

+

It cannot be left blank and can contain a maximum of 36 Unicode characters. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.

+

value

+

String

+

Specifies the value.

+

Each value contains a maximum of 43 Unicode characters and can be an empty string. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 7 Errors

Parameter

+

Type

+

Description

+

error_code

+

String

+

Specifies the error code.

+

error_msg

+

String

+

Specifies the error.

+

project_id

+

String

+

ProjectID

+

resource_type

+

String

+

Specifies the resource type.

+
+
+
+

Example Request

Filtering resources by tag

+
POST https://v1.0/resource-instances/filter
+
+{
+  "project_id" : "e1eb7c40cbeaxxxxxxcde527594a306d",
+  "resource_types" : [ "disk", "ecs" ],
+  "tags" : [ {
+    "key" : "env",
+    "values" : [ "dev", "prod" ]
+  }, {
+    "key" : "test",
+    "values" : [ "test" ]
+  } ],
+  
+  "without_any_tag" : true,
+  "offset" : 0,
+  "limit" : 10
+}
+
+

Example Response

Status code: 200

+

Successful operation

+
{
+  "resources" : [ {
+    "project_id" : "e1eb7c40cbeaxxxxxxde527594a306d",
+    "project_name" : "XXXX",
+    "resource_type" : "disk",
+    "resource_id" : "b621f5ae-xxxx-xxxx-xxxx-752c445434b4",
+    "resource_name" : "xxx1-volume-0001",
+    "tags" : [ {
+      "key" : "ENV",
+      "value" : "dev"
+    } ]
+  }, {
+    "project_id" : "e1eb7c40cbxxxxxx89cde527594a306d",
+    "project_name" : "XXXX",
+    "resource_type" : "disk",
+    "resource_id" : "87c9edc9-xxxx-xxxx-xxxx-372b2e22d579",
+    "resource_name" : "xxx2-volume-0002",
+    "tags" : [ {
+      "key" : "test",
+      "value" : "test"
+    } ]
+  } ],
+  "errors" : [],
+  "total_count" : 2
+}
+
+

Status Codes

See Status Codes.

+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/tms/api-ref/ListTagKeys.html b/docs/tms/api-ref/ListTagKeys.html new file mode 100644 index 000000000..dabe545e1 --- /dev/null +++ b/docs/tms/api-ref/ListTagKeys.html @@ -0,0 +1,153 @@ + + +

Querying Tag Keys

+

Function

You can use this API to query any tag key in a specified region.

+
+

URI

GET /v1.0/tag-keys

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

region_id

+

No

+

String

+

Region ID

+

limit

+

No

+

Integer

+

The maximum queries supported. The value range is 1 to 200. If this parameter is not specified, the default value 200 is used by default.

+

Minimum value: 1

+

Maximum value: 200

+

Default value: 200

+

marker

+

No

+

String

+

Paging location identifier (index). The query starts from the next piece of data indexed by this parameter. When querying the data on the first page, you do not need to specify this parameter. When querying the data on subsequent pages, set this parameter to the value in the response body returned by querying data of the previous page. When the returned next_marker is empty, the last page has been queried.

+
+
+
+

Request

+
+ + + + + + + + + + + +
Table 2 Header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. TMS is a global service. So you need to set scope to domain when calling an IAM API to obtain a user token. The value of X-Subject-Token in the response header is the user token.

+
+
+
+

Response

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 3 Body parameters

Parameter

+

Type

+

Description

+

keys

+

Array of strings

+

Tag keys.

+

page_info

+

PageInfoTagKeys object

+

Pagination information

+
+
+ +
+ + + + + + + + + + + + + +
Table 4 PageInfoTagKeys

Parameter

+

Type

+

Description

+

next_marker

+

String

+

Paging location marker (index position)

+

current_count

+

Integer

+

Specifies the number of tag keys on the current page.

+
+
+
+

Example Request

Query tag keys

+
GET https://{Endpoint}/v1.0/tag-keys?limit=10&marker=9
+
+

Example Response

Status code: 200

+

Successful operation

+
{
+  "keys" : [ "ENV1", "ENV2" ],
+  "page_info" : [ {
+    "next_marker" : "9",
+    "current_count" : 10
+  } ]
+}
+
+

Status Codes

See Status Codes.

+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/tms/api-ref/ListTagValues.html b/docs/tms/api-ref/ListTagValues.html new file mode 100644 index 000000000..554376b7e --- /dev/null +++ b/docs/tms/api-ref/ListTagValues.html @@ -0,0 +1,162 @@ + + +

Query Tag Values

+

Function

You can use this API to query any tag value in a specified region.

+
+

URI

GET /v1.0/tag-values

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

region_id

+

No

+

String

+

Region ID

+

limit

+

No

+

Integer

+

The maximum queries supported. The value range is 1 to 200. If this parameter is not specified, the default value 200 is used by default.

+

Minimum value: 1

+

Maximum value: 200

+

Default value: 10

+

marker

+

No

+

String

+

Paging location identifier (index). The query starts from the next piece of data indexed by this parameter. When querying the data on the first page, you do not need to specify this parameter. When querying the data on subsequent pages, set this parameter to the value in the response body returned by querying data of the previous page. When the returned next_marker is empty, the last page has been queried.

+

key

+

Yes

+

String

+

Tag key.

+
+
+
+

Request

+
+ + + + + + + + + + + +
Table 2 Header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token. TMS is a global service. So you need to set scope to domain when calling an IAM API to obtain a user token. The value of X-Subject-Token in the response header is the user token.

+
+
+
+

Response

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 3 Body parameters

Parameter

+

Type

+

Description

+

values

+

Array of strings

+

Tag values queried.

+

page_info

+

PageInfoTagValues object

+

Pagination information

+
+
+ +
+ + + + + + + + + + + + + +
Table 4 PageInfoTagValues

Parameter

+

Type

+

Description

+

next_marker

+

String

+

Paging location marker (index position)

+

current_count

+

Integer

+

The number of tag values on the current page.

+
+
+
+

Example Request

Querying tag values

+
GET https://{Endpoint}/v1.0/tag-values?limit=10&marker=9&key=dev
+
+

Example Response

Status code: 200

+

Successful operation

+
{
+  "values" : [ "ENV1", "ENV2" ],
+  "page_info" : [ {
+    "next_marker" : "9",
+    "current_count" : 10
+  } ]
+}
+
+

Status Codes

See Status Codes.

+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/tms/api-ref/ShowTagQuota.html b/docs/tms/api-ref/ShowTagQuota.html new file mode 100644 index 000000000..e0585ea1e --- /dev/null +++ b/docs/tms/api-ref/ShowTagQuota.html @@ -0,0 +1,117 @@ + + +

Querying Tag Quotas

+

Function

This API is used to query tag quotas.

+
+

URI

GET /v1.0/tms/quotas

+
+

Request

+
+ + + + + + + + + + + +
Table 1 Header

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

Specifies the user token. TMS is a global service. So you need to set scope to domain when calling an IAM API to obtain a user token. The value of X-Subject-Token in the response header is the user token.

+
+
+
+

Response

Status code: 200

+ +
+ + + + + + + + + +
Table 2 Body

Parameter

+

Type

+

Description

+

quotas

+

Array of TagQuota objects

+

Quota lists

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 TagQuota

Parameter

+

Type

+

Description

+

quota_key

+

String

+

Specifies the quota key.

+

quota_limit

+

Integer

+

Specifies the quota value.

+

used

+

Integer

+

Specifies the used quota.

+

unit

+

String

+

Specifies the unit.

+
+
+
+

Example Request

Querying tag quotas

+
GET https://{Endpoint}/v1.0/tms/quotas
+
+

Example Response

Status code: 200

+

Successful operation

+
{
+  "quotas" : [ {
+    "used" : 4,
+    "unit" : "count",
+    "quota_key" : "predefine_tag",
+    "quota_limit" : 500
+  } ]
+}
+
+

Status Codes

See Status Codes.

+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/tms/api-ref/en-us_topic_0056765894.html b/docs/tms/api-ref/en-us_topic_0056765894.html index f3af52a35..9c697df22 100644 --- a/docs/tms/api-ref/en-us_topic_0056765894.html +++ b/docs/tms/api-ref/en-us_topic_0056765894.html @@ -8,6 +8,12 @@ + + + diff --git a/docs/tms/api-ref/en-us_topic_0056765935.html b/docs/tms/api-ref/en-us_topic_0056765935.html index b593a8282..8e4544978 100644 --- a/docs/tms/api-ref/en-us_topic_0056765935.html +++ b/docs/tms/api-ref/en-us_topic_0056765935.html @@ -9,41 +9,64 @@

URI

POST /v1.0/predefine_tags/action

Request