- Service Overview
- Getting Started
-
User Guide
- COC Enablement and Permissions Granting
- Overview
-
Application and Resource Management
- Resource Management
-
Application Management
- Creating an Application
- Modifying an Application
- Deleting an Application
- Editing an Application Topology
- Creating a Component
- Modifying a Component
- Deleted a Component
- Creating a Group
- Modifying a Group
- Deleting a Group
- Manually Associating Resources with a Group
- Intelligently Associating Resources with a Group
- Transferring Resources
- Disassociating a Resource from an Application Group
- Viewing Resource Details
- Viewing Capacity Rankings
- Multi-cloud Configurations
- Cross-Account Resources
- Resource O&M
- Automated O&M
- Faults
- Change Management
- Resilience Center
- Task Management
- Basic Configurations
- Viewing Logs
- Best Practices
- API Reference
-
FAQs
- Product Consulting
- Resource Management FAQs
-
FAQs About Resource O&M
-
Patch Management FAQs
- What Can I Do If the Patch Baselines Do Not Take Effect?
- What Are the Differences Between the Installation Rule Baselines And User-defined Baselines?
- What Can I Do If Exception all mirrors were tried Is Recorded in the Patch Service Ticket Log?
- Why Can't I Select a Node?
- What Can I Do If the Compliance Report Still Reports Non-compliance for a Patch After the Patch Has Been Repaired?
- What Can I Do If the lsb_release not found Error Occurs During Patch Operations?
- Automation FAQs
- Batch Operation FAQs
- FAQs About Parameter Management
- Resource O&M Permissions and Supported Actions
-
Patch Management FAQs
- FAQs About Fault Management
- FAQs About Change Ticket Management
- Resilience Center FAQs
- Change History
- General Reference
Copied.
Querying Tenant Resource Information
Function
This API is used to query tenant resource information.
URI
GET /v1/resources
Parameter |
Mandatory or Not |
Type |
Description |
---|---|---|---|
resource_id_list |
No |
Array |
Resource ID list |
provider |
Yes |
String |
Specifies the cloud service name. |
type |
Yes |
String |
Resource type name |
limit |
Yes |
Integer |
Maximum number of returned records. The maximum value is 100. |
marker |
No |
String |
Pagination parameter. You can use the marker value returned in the previous request as the number of the first page of records to return in this request. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
data |
Array of data objects |
Specifies resource list |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Resource ID allocated by CMDB. |
resource_id |
String |
ID of the resource allocated by the cloud service. |
name |
String |
Resource name |
provider |
String |
Specifies the cloud service name. |
type |
String |
Resource type |
project_id |
String |
Project I in OpenStack |
region_id |
String |
region ID |
ep_id |
String |
The enterprise project ID |
tags |
Map<String,String> |
Resource tag |
properties |
Map<String,Object> |
Resource attribute details |
agent_id |
String |
ID allocated by the UniAgent |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code Minimum length: 8 characters Maximum length: 36 characters |
error_msg |
String |
Error description Minimum length: 2 characters Maximum length: 512 characters |
Request Example
None
Response Example
None
Status Code
Status Code |
Description |
---|---|
200 |
resource info |
400 |
Error response |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot