ConnectedClusterOperations Class
ConnectedClusterOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectConnectedClusterOperations
Constructor
ConnectedClusterOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| begin_create |
Register a new Kubernetes cluster with Azure Resource Manager. API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager (ARM). |
| begin_delete |
Delete a connected cluster. Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM). |
| get |
Get the properties of the specified connected cluster. Returns the properties of the specified connected cluster, including name, identity, properties, and additional cluster details. |
| list_by_resource_group |
Lists all connected clusters. API to enumerate registered connected K8s clusters under a Resource Group. |
| list_by_subscription |
Lists all connected clusters. API to enumerate registered connected K8s clusters under a Subscription. |
| list_cluster_user_credential |
Gets cluster user credentials of a connected cluster. Gets cluster user credentials of the connected cluster with a specified resource group and name. |
| update |
Updates a connected cluster. API to update certain properties of the connected cluster resource. |
begin_create
Register a new Kubernetes cluster with Azure Resource Manager.
API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager (ARM).
begin_create(resource_group_name: str, cluster_name: str, connected_cluster: _models.ConnectedCluster, **kwargs: Any) -> LROPoller[_models.ConnectedCluster]
Parameters
- connected_cluster
- <xref:connected_kubernetes_client.models.ConnectedCluster>
Parameters supplied to Create a Connected Cluster.
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either ConnectedCluster or the result of cls(response)
Return type
Exceptions
begin_delete
Delete a connected cluster.
Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).
begin_delete(resource_group_name: str, cluster_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
get
Get the properties of the specified connected cluster.
Returns the properties of the specified connected cluster, including name, identity, properties, and additional cluster details.
get(resource_group_name: str, cluster_name: str, **kwargs: Any) -> _models.ConnectedCluster
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ConnectedCluster, or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Lists all connected clusters.
API to enumerate registered connected K8s clusters under a Resource Group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[_models.ConnectedClusterList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ConnectedClusterList or the result of cls(response)
Return type
Exceptions
list_by_subscription
Lists all connected clusters.
API to enumerate registered connected K8s clusters under a Subscription.
list_by_subscription(**kwargs: Any) -> Iterable[_models.ConnectedClusterList]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ConnectedClusterList or the result of cls(response)
Return type
Exceptions
list_cluster_user_credential
Gets cluster user credentials of a connected cluster.
Gets cluster user credentials of the connected cluster with a specified resource group and name.
list_cluster_user_credential(resource_group_name: str, cluster_name: str, properties: _models.ListClusterUserCredentialProperties, **kwargs: Any) -> _models.CredentialResults
Parameters
- properties
- <xref:connected_kubernetes_client.models.ListClusterUserCredentialProperties>
ListClusterUserCredential properties.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CredentialResults, or the result of cls(response)
Return type
Exceptions
update
Updates a connected cluster.
API to update certain properties of the connected cluster resource.
update(resource_group_name: str, cluster_name: str, connected_cluster_patch: _models.ConnectedClusterPatch, **kwargs: Any) -> _models.ConnectedCluster
Parameters
- connected_cluster_patch
- <xref:connected_kubernetes_client.models.ConnectedClusterPatch>
Parameters supplied to update Connected Cluster.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ConnectedCluster, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.hybridkubernetes.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\hybridkubernetes\\models\\__init__.py'>
Feedback
Submit and view feedback for