Querying Tags by Project
Function
- This API is used to query all resource tags of a resource in a specified project.
 - TMS uses this API to list tags created by a tenant to ease tag creation and resource filtering.
 
Debugging
For details, see Calling APIs.
URI
GET /v3/{project_id}/{resource_type}/tags
| 
         Parameter  | 
       
         Mandatory  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|---|
| 
         project_id  | 
       
         Yes  | 
       
         String  | 
       
         Specifies the project ID.  | 
      
| 
         resource_type  | 
       
         Yes  | 
       
         String  | 
       
        
 Enumeration values: 
  | 
      
Request Parameters
None
Response Parameters
Status code: 200
| 
         Parameter  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|
| 
         tags  | 
       
         Array of Tag objects  | 
       
         Specifies the tag list.  | 
      
| 
         request_id  | 
       
         String  | 
       
         Specifies the request ID.  | 
      
| 
         Parameter  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|
| 
         key  | 
       
         String  | 
       
         
         Specifies the tag key. The key: 
          
  | 
      
| 
         value  | 
       
         String  | 
       
         
         Specifies the tag value. The value: 
          
  | 
      
Example Requests
GET https://{dc_endpoint}/v3/ed28c294165741faaeccab26913122a1/dc-directconnect/tags
  Example Responses
Status code: 200
OK
{
  "tags" : [ {
    "key" : "department",
    "value" : "finance"
  } ]
}
  Status Code
| 
         Status Code  | 
       
         Description  | 
      
|---|---|
| 
         200  | 
       
         OK  | 
      
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.