Importing Resources in On-premises IDCs
Function
This API is used to manage resources from multiple cloud vendors and IDCs, including importing device resources in IDCs in batches.
URI
POST /v1/other-resources/import
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
file |
Yes |
File |
Definition Download template Excel file (related device information) for the uploaded PMs, VMs, or middleware devices. Constraints N/A Range Download template Excel file (related device information) for PMs, VMs, or middleware devices. Default value N/A |
|
type |
Yes |
String |
Definition Import type. Constraints N/A Range vm: VMs
Default value N/A |
|
region_id |
Yes |
String |
Definition Region ID. Constraints N/A Range The value is a string. It contains 0 to 64 characters. Default value N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
success |
Integer |
Definition Number of successful records, that is, number of data records that pass the verification in the Excel file. Range N/A |
|
total |
Integer |
Definition Total number of records, that is, the total number of data records in the Excel file. Range N/A |
|
error_list |
Array of strings |
Definition Failed information set, that is, error information collection of verification failures in the Excel file. Range N/A |
Example Requests
Import resources of on-premises IDCs.
POST https://{endpoint}/v1/other-resources/import
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The resources are imported. |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot