Help Page Home

# GET ComputeResources({id})/SessionMachines/Count

Get the number of session machines which have been provisioned on a compute resource.

## Request Information

### Parameters

Name | Description | Additional information
--- | --- | ---
id | ID of the compute resource. | Type: String
name | See Filtering, Arranging, and Paging. | Type: String
filterBy | See Filtering, Arranging, and Paging. The supported filters are: All: All session machines. NotDeleted: All session machines which are not being deleted. (default) CurrentVersion: All session machines which have been updated to the current version of their respective catalog. OldVersion: All session machines which have not been updated to the current version of their respective catalog. Allocated: All session machines which have been allocated either for shared use or to a single tenant. Draining: All session machines which are currently draining user sessions. UpdatePending: All session machines which have an update pending. NotUsed: All session machines which are not used in a delivery group. | Type: Filter
filterProp | See Filtering, Arranging, and Paging. | Type: String

## Response Information

Number of session machines.

### Response type

Number

### Response body formats

#### application/json, text/json

Sample:

    1