Get Cluster DRS Status (GetClusterDRSStatus)

API Request

URLs
GET zstack/v1/clusters/drs/status
Headers
Authorization: OAuth the-session-uuid
Curl Example
curl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/clusters/drs/status
Parameter List
Name Type Location Description Allowed Values Starting Version
drsUuid String query The UUID of the Cluster DRS 4.0.0
systemTags (Optional) List query System tags 4.0.0
userTags (Optional) List query User tags 4.0.0

API Response

On success, this API returns an empty JSON structure {}. On failure, the returned JSON structure contains an error field, for example:
{ 	"error": { 		"code": "SYS.1001", 		"description": "A message or a operation timeout", 		"details": "Create VM on KVM timeout after 300s" 	} }

SDK Examples

Java SDK
GetClusterDRSStatusAction action = new GetClusterDRSStatusAction(); action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"; GetClusterDRSStatusAction.Result res = action.call();
Python SDK
GetClusterDRSStatusAction action = GetClusterDRSStatusAction() action.sessionId = "b86c9016b4f24953a9edefb53ca0678c" GetClusterDRSStatusAction.Result res = action.call()

Query Cluster DRS (QueryClusterDRS)

API Request

URLs
GET zstack/v1/clusters/drs GET zstack/v1/clusters/drs/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl Example
curl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/clusters/drs
curl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/clusters/drs/aaa6a44233d23decb16c085599167233

Queryable Fields

Run the CLI command-line tool, type QueryClusterDRS and press the Tab key to view all queryable fields and cross-table queryable resource names.

API Response

On success, this API returns an empty JSON structure {}. On failure, the returned JSON structure contains an error field, for example:
{ 	"error": { 		"code": "SYS.1001", 		"description": "A message or a operation timeout", 		"details": "Create VM on KVM timeout after 300s" 	} }

SDK Examples

Java SDK
QueryClusterDRSAction action = new QueryClusterDRSAction(); action.conditions = asList(); action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"; QueryClusterDRSAction.Result res = action.call();
Python SDK
QueryClusterDRSAction action = QueryClusterDRSAction() action.conditions = [] action.sessionId = "b86c9016b4f24953a9edefb53ca0678c" QueryClusterDRSAction.Result res = action.call()

Query DRS Scheduling Advice (QueryDRSAdvice)

API Request

URLs
GET zstack/v1/clusters/drs/advice GET zstack/v1/clusters/drs/advice/{uuid}
Headers
Authorization: OAuth the-session-uuid
Curl Example
curl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/clusters/drs/advice
curl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X GET http://localhost:8080/zstack/v1/clusters/drs/advice/e0f394447d143aceb0dc96ec0373a4cb

Queryable Fields

Run the CLI command-line tool, type QueryClusterDRS and press the Tab key to view all queryable fields and cross-table queryable resource names.

API Response

On success, this API returns an empty JSON structure {}. On failure, the returned JSON structure contains an error field, for example:
{ 	"error": { 		"code": "SYS.1001", 		"description": "A message or a operation timeout", 		"details": "Create VM on KVM timeout after 300s" 	} }

SDK Examples

Java SDK
QueryDRSAdviceAction action = new QueryDRSAdviceAction(); action.conditions = asList(); action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"; QueryDRSAdviceAction.Result res = action.call();
Python SDK
QueryDRSAdviceAction action = QueryDRSAdviceAction() action.conditions = [] action.sessionId = "b86c9016b4f24953a9edefb53ca0678c" QueryDRSAdviceAction.Result res = action.call()







Archives

Download Document Archives

Download

Already filled the basic info?Click here.

Enter at least 2 characters.
Cannot be empty.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

An email with a verification code will be sent to you. Make sure the address you provided is valid and correct.

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.
同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
ZStack Training and Certification
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
Request Trial
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder.
Or click on the URL below. (For Internet Explorer, right-click the URL and save it.)

Thank you for using ZStack products and services.

Submit successfully.

We'll connect soon.

Thank you for using ZStack products and services.