GET DataCenters({id})/ComputeResources/Count

Get the number of compute resources located in a datacenter.

Request Information

Parameters

NameDescriptionAdditional information
id

ID of the datacenter.

Type: String

name

See Filtering, Arranging, and Paging.

Type: String

filterBy

See Filtering, Arranging, and Paging. The supported filters are:

  • All: All compute resources.
  • NotDeleted: All compute resources that are not currently being deleted. (default)
  • Allocated: Only compute resources that are allocated either for shared use, or to a single tenant.
  • Empty: Only compute resources that have not provisioned any machines.
  • NotUsed: Only compute resources that have not been allocated. Note that a compute resource may be allocated yet have no provisioned machines, and will not be returned by this filter.

Type: Filter

filterProp

See Filtering, Arranging, and Paging.

Type: String

Response Information

Number of compute resources.

Response type

Number

Response body formats

application/json, text/json

Sample:
1