All URIs are relative to https://localhost/cloudapi
Method | HTTP request | Description |
---|---|---|
GetComputePolicies | Get /2.0.0/vdcs/{orgVdcId}/computePolicies | Retrieves all compute policies of a vDC |
GetVdcMaxComputePolicy | Get /2.0.0/vdcs/{orgVdcId}/maxComputePolicy | Retrieves Max Compute Policy of the vDC. |
UpdateVdcMaxComputePolicy | Put /2.0.0/vdcs/{orgVdcId}/maxComputePolicy | Updates Max Compute Policy of the vDC. |
VdcComputePolicies2 GetComputePolicies(ctx, page, pageSize, orgVdcId, optional) Retrieves all compute policies of a vDC
Retrieves all compute policies of a vDC
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
page | int32 | Page to fetch, zero offset. | [default to 1] |
pageSize | int32 | Results per page to fetch. | [default to 25] |
orgVdcId | string | ||
optional | *Vdc2ApiGetComputePoliciesOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a Vdc2ApiGetComputePoliciesOpts struct
Name | Type | Description | Notes |
---|
filter | optional.String| Filter for a query. FIQL format. | sortAsc | optional.String| Field to use for ascending sort | sortDesc | optional.String| Field to use for descending sort |
- Content-Type: Not defined
- Accept: application/json;version=36.0
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VdcComputePolicy2 GetVdcMaxComputePolicy(ctx, orgVdcId) Retrieves Max Compute Policy of the vDC.
Retrieves Max Compute Policy of the vDC.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
orgVdcId | string |
- Content-Type: Not defined
- Accept: application/json;version=36.0
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VdcComputePolicy2 UpdateVdcMaxComputePolicy(ctx, newVdcComputePolicy2Params, orgVdcId) Updates Max Compute Policy of the vDC.
Updates Max Compute Policy of the vDC. Returns 400 if policy type is not VdcVmPolicy.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
newVdcComputePolicy2Params | VdcComputePolicy2 | ||
orgVdcId | string |
- Content-Type: application/json
- Accept: application/json;version=36.0
[Back to top] [Back to API list] [Back to Model list] [Back to README]