Managed Clusters - Get OS Options

Gets supported OS options in the specified subscription.

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/osOptions/default?api-version=2024-02-01
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/osOptions/default?api-version=2024-02-01&resource-type={resource-type}

URI Parameters

Name In Required Type Description
location
path True

string

The name of the Azure region.

subscriptionId
path True

string

uuid

The ID of the target subscription. The value must be an UUID.

api-version
query True

string

The API version to use for this operation.

resource-type
query

string

The resource type for which the OS options needs to be returned

Responses

Name Type Description
200 OK

OSOptionProfile

OK

Other Status Codes

CloudError

Error response describing why the operation failed

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Get Container Service OS Options

Sample Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/location1/osOptions/default?api-version=2024-02-01

Sample Response

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/location1/osOptions/default",
  "name": "default",
  "type": "Microsoft.ContainerService/locations/osOptions",
  "properties": {
    "osOptionPropertyList": [
      {
        "os-type": "Linux",
        "enable-fips-image": false
      },
      {
        "os-type": "Windows",
        "enable-fips-image": false
      }
    ]
  }
}

Definitions

Name Description
CloudError

An error response from the Container service.

CloudErrorBody

An error response from the Container service.

OSOptionProfile

The OS option profile.

OSOptionProperty

OS option property.

CloudError

An error response from the Container service.

Name Type Description
error

CloudErrorBody

Details about the error.

CloudErrorBody

An error response from the Container service.

Name Type Description
code

string

An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

details

CloudErrorBody[]

A list of additional details about the error.

message

string

A message describing the error, intended to be suitable for display in a user interface.

target

string

The target of the particular error. For example, the name of the property in error.

OSOptionProfile

The OS option profile.

Name Type Description
id

string

The ID of the OS option resource.

name

string

The name of the OS option resource.

properties.osOptionPropertyList

OSOptionProperty[]

The list of OS options.

type

string

The type of the OS option resource.

OSOptionProperty

OS option property.

Name Type Description
enable-fips-image

boolean

Whether the image is FIPS-enabled.

os-type

string

The OS type.