Adding a Protection Measure
Function
This API is used to create data protection measures in batches.
Calling Method
For details, see Calling APIs.
URI
POST /v1/{project_id}/protect-measures/batch-create
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Unique project ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
[items] |
Yes |
Array of MeasureInfo objects |
Protection measure information. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
ID |
|
msg |
String |
Message. |
|
status |
String |
Response code. |
Status code: 201
Resource being created.
Example Requests
[ {
"description" : "string",
"life_cycle" : "string",
"measure_type" : "string",
"name" : "string"
} ]
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Created. |
|
201 |
Resource being created. |
|
401 |
Unauthorized. The user is not logged in or the token is invalid. |
|
403 |
Unauthorized to access the resource. |
|
404 |
The specified project does not exist. |
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