List Operating Systems
The List Operating Systems operation lists the versions of the guest operating system that are currently available in Microsoft Azure.
Request
The List Operating Systems request may be specified as follows. Replace <subscription-id> with the subscription ID.
Method |
Request URI |
---|---|
GET |
https://management.core.windows.net/<subscription-id>/operatingsystems |
URI Parameters
None.
Request Headers
The following table describes the request headers.
Request Header |
Description |
---|---|
x-ms-version |
Required. Specifies the version of the operation to use for this request. The value of this header must be set to 2010-04-01 or higher. |
Request Body
None.
Response
The response includes an HTTP status code, a set of response headers, and a response body.
Status Code
A successful operation returns status code 200 (OK).
Response Headers
The response for this operation includes the following headers. The response may also include additional standard HTTP headers.
Response Header |
Description |
---|---|
x-ms-request-id |
A value that uniquely identifies a request made against the management service. |
Response Body
<?xml version="1.0" encoding="utf-8"?>
<OperatingSystems xmlns="https://schemas.microsoft.com/windowsazure">
<OperatingSystem>
<Version>operating-system-version</Version>
<Label>base64-encoded-label</Label>
<IsDefault>true|false</IsDefault>
<IsActive>true|false</IsActive>
<Family>osfamily-number</Family>
<FamilyLabel>base64-encoded-label</FamilyLabel>
</OperatingSystem>
</OperatingSystems>
The following table describes the elements in the response body.
Element Name |
Description |
---|---|
Version |
Specifies the version of the operating system. This value corresponds to the configuration value for specifying that your service is to run on a particular version of the Azure guest operating system. |
Label |
Specifies the base-64 encoded label of the operating system version. |
IsDefault |
Indicates whether this operating system version is the default version for a service that has not otherwise specified a particular version. The default operating system version is applied to services that are configured for auto-upgrade. An operating system family has exactly one default operating system version at any given time, for which the IsDefault element is set to true; for all other versions, IsDefault is set to false. |
IsActive |
Indicates whether this operating system version is currently active for running a service. If an operating system version is active, you can manually configure your service to run on that version. An operating system version may be inactive for one of two reasons:
|
Family |
Indicates which operating system family this version belongs to. |
Family Label |
Specifies the base-64 encoded label of the operating system family. |