Reliable Services/DRS Policy APIs
POSTDRS Policy APIsSince 4.0.0SynchronousAuth Required
Create Cluster DRS
Create Cluster DRS
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
clusterUuidStringRequiredThe Cluster UUID
Body Fields
nameStringRequiredThe resource name
descriptionStringThe detailed description of the resource
automationLevelStringRequiredWhether scheduling is triggered manually or automatically
thresholdsListRequiredThe threshold criteria
thresholdDurationIntegerRequiredThe threshold evaluation duration. The system queries the workload data for the period from the current time back to thresholdDuration, calculates the result, and compares it with the threshold to determine whether the Cluster requires scheduling.
Responses
Endpoint
POST/zstack/v1/clusters/{clusterUuid}/drs
/zstack/v1/clusters/{clusterUuid}/drs
Request Example
curl -X POST 'http://{host}/zstack/v1/clusters/{clusterUuid}/drs' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"name":"<name>","description":"<description>","automationLevel":"<automationLevel>","thresholds":["<thresholds>"],"thresholdDuration":1,"defaultEnable":true,"resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"],"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{}Change History
This API has no change history records yet.
