azure.mgmt.compute.containerservice.v2017_01_31.operations module

class azure.mgmt.compute.containerservice.v2017_01_31.operations.ContainerServicesOperations(client, config, serializer, deserializer)[source]

Bases: object

ContainerServicesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Client Api Version. Constant value: “2017-01-31”.

create_or_update(resource_group_name, container_service_name, parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates or updates a container service.

Creates or updates a container service with the specified configuration of orchestrator, masters, and agents.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • container_service_name (str) – The name of the container service in the specified subscription and resource group.
  • parameters (ContainerService) – Parameters supplied to the Create or Update a Container Service operation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns ContainerService

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

delete(resource_group_name, container_service_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes the specified container service.

Deletes the specified container service in the specified subscription and resource group. The operation does not delete other resources created as part of creating a container service, including storage accounts, VMs, and availability sets. All the other resources created with the container service are part of the same resource group and can be deleted individually.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • container_service_name (str) – The name of the container service in the specified subscription and resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Return type:

AzureOperationPoller instance that returns None

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

get(resource_group_name, container_service_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the properties of the specified container service.

Gets the properties of the specified container service in the specified subscription and resource group. The operation returns the properties including state, orchestrator, number of masters and agents, and FQDNs of masters and agents. .

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • container_service_name (str) – The name of the container service in the specified subscription and resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ContainerService

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Gets a list of container services in the specified subscription.

Gets a list of container services in the specified subscription. The operation returns properties of each container service including state, orchestrator, number of masters and agents, and FQDNs of masters and agents.

Parameters:
Return type:

ContainerServicePaged

Raises:

CloudError

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a list of container services in the specified resource group.

Gets a list of container services in the specified subscription and resource group. The operation returns properties of each container service including state, orchestrator, number of masters and agents, and FQDNs of masters and agents.

Parameters:
  • resource_group_name (str) – The name of the resource group.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ContainerServicePaged

Raises:

CloudError