GET DataCenters({id})/ComputeResources
Get the compute resources located in a datacenter.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| id | ID of the datacenter. |
Type: |
| name |
Type: String |
|
| filterBy | See Filtering, Arranging, and Paging. The supported filters are:
|
Type: Filter |
| filterProp |
Type: String |
|
| arrangeBy | See Filtering, Arranging, and Paging. The supported arrangers are:
|
Type: String |
| skip |
Type: Number |
|
| take |
Type: Number |
Response Information
A list of compute resources.
Response type
CollectionResultModel<ComputeResourceModel>
Response body formats
application/json, text/json
Sample:
{
"Href": "[api:DataCenters(af1fc9c4-dee5-4b0d-836c-9e1c5b57a88a)/ComputeResources]",
"Count": 1,
"TotalMatchingFilter": 1,
"Items": [
{
"Href": "[api:ComputeResources(ab32f043-4682-4953-8dea-a0489b839f80)]",
"Id": "ab32f043-4682-4953-8dea-a0489b839f80",
"ChangeId": "4",
"Name": "SCVMM",
"ShortName": "SCVMM",
"Description": "My SCVMM cluster",
"DeleteState": "NotDeleted",
"ComputeResourceAllocationState": "Allocated",
"ComputeResourceType": "HyperV",
"Address": "https://10.1.1.10",
"UserNameOrApiKey": "DOMAIN\\scvmm",
"Cluster": {
"Href": "[api:ComputeResources(ab32f043-4682-4953-8dea-a0489b839f80)/ClusterTree",
"Name": "ClusterRoot",
"FullPath": "/ClusterRoot",
"CanBeProvisioningTarget": true,
"Children": [
{
"Name": "Cluster1",
"FullPath": "/ClusterRoot/Cluster1",
"CanBeProvisioningTarget": true
},
{
"Name": "Cluster2",
"FullPath": "/ClusterRoot/Cluster2",
"CanBeProvisioningTarget": true
}
]
},
"UseLocalStorage": true,
"PersonalVDiskStorage": [
"PVD Storage"
],
"Tenant": {
"Href": "[api:Tenants(91ade655-feb5-47d3-9585-a5827ad50132)]",
"Name": "Tenant 1",
"Id": "91ade655-feb5-47d3-9585-a5827ad50132"
},
"DataCenter": {
"Href": "[api:DataCenters(af1fc9c4-dee5-4b0d-836c-9e1c5b57a88a)]",
"Name": "datacenter1",
"Id": "af1fc9c4-dee5-4b0d-836c-9e1c5b57a88a"
},
"MaxVirtualMachinesToProvision": 100,
"NumVirtualMachinesProvisioned": 5,
"IsEnabled": true,
"IsVMLimitHitMax": false,
"Tags": [
"tag"
],
"CustomProperties": [
{
"Name": "myProperty",
"Value": "myValue"
}
]
}
]
}