REST API - get

vcenter namespace management namespace resource options: get

Get the information about the objects used to set and update resource quota keys for version of Kubernetes running on {#link cluster}.

Request:

HTTP request

GET https://{server}/api/vcenter/namespace-management/clusters/{cluster}/workload-resource-options

Path Parameters

Name Type Description
Required
cluster string Identifier for the cluster hosting the namespace on which the resource quota needs to be set.

Response:

HTTP Status Code: 200

Response Body Structure:

{
    "create_resource_quota_type""obj-103",
    "update_resource_quota_type""obj-103"
}

Headers:

None

Type:

Name Type Description
bold = required
- info Information about the structures representing the resource spec.
-.create_resource_quota_type string Identifier of the structure used to set resource quotas on the namespace. See create and set.

When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vapi.structure. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vapi.structure.

-.update_resource_quota_type string Identifier of the structure used to update resource quotas on the namespace. See update.

When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vapi.structure. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vapi.structure.

Errors:

HTTP Status Code Type Description
404 not_found if cluster could not be located.
400 unsupported if the specified cluster is not enabled for Namespaces.
500 error if the system reports an error while responding to the request.
401 unauthenticated if the user can not be authenticated.
403 unauthorized if the user does not have System.Read privilege.