ConnectedClusterOperations interface
表示 ConnectedClusterOperations 的接口。
方法
方法详细信息
beginCreate(string, string, ConnectedCluster, ConnectedClusterCreateOptionalParams)
用于注册新的 Kubernetes 群集并在 Azure 资源管理器(ARM)中创建跟踪资源的 API。
function beginCreate(resourceGroupName: string, clusterName: string, connectedCluster: ConnectedCluster, options?: ConnectedClusterCreateOptionalParams): Promise<PollerLike<PollOperationState<ConnectedCluster>, ConnectedCluster>>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- clusterName
-
string
调用其获取的 Kubernetes 群集的名称。
- connectedCluster
- ConnectedCluster
提供用于创建连接的群集的参数。
选项参数。
返回
Promise<PollerLike<@azure/core-lro.PollOperationState<ConnectedCluster>, ConnectedCluster>>
beginCreateAndWait(string, string, ConnectedCluster, ConnectedClusterCreateOptionalParams)
用于注册新的 Kubernetes 群集并在 Azure 资源管理器(ARM)中创建跟踪资源的 API。
function beginCreateAndWait(resourceGroupName: string, clusterName: string, connectedCluster: ConnectedCluster, options?: ConnectedClusterCreateOptionalParams): Promise<ConnectedCluster>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- clusterName
-
string
调用其获取的 Kubernetes 群集的名称。
- connectedCluster
- ConnectedCluster
提供用于创建连接的群集的参数。
选项参数。
返回
Promise<ConnectedCluster>
beginDelete(string, string, ConnectedClusterDeleteOptionalParams)
删除连接的群集,删除 Azure 资源管理器(ARM)中的跟踪资源。
function beginDelete(resourceGroupName: string, clusterName: string, options?: ConnectedClusterDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- clusterName
-
string
调用其获取的 Kubernetes 群集的名称。
选项参数。
返回
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginDeleteAndWait(string, string, ConnectedClusterDeleteOptionalParams)
删除连接的群集,删除 Azure 资源管理器(ARM)中的跟踪资源。
function beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ConnectedClusterDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- clusterName
-
string
调用其获取的 Kubernetes 群集的名称。
选项参数。
返回
Promise<void>
get(string, string, ConnectedClusterGetOptionalParams)
返回指定连接的群集的属性,包括名称、标识、属性和其他群集详细信息。
function get(resourceGroupName: string, clusterName: string, options?: ConnectedClusterGetOptionalParams): Promise<ConnectedCluster>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- clusterName
-
string
调用其获取的 Kubernetes 群集的名称。
选项参数。
返回
Promise<ConnectedCluster>
listByResourceGroup(string, ConnectedClusterListByResourceGroupOptionalParams)
用于枚举资源组下已注册的已连接的 K8s 群集的 API
function listByResourceGroup(resourceGroupName: string, options?: ConnectedClusterListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ConnectedCluster, ConnectedCluster[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
选项参数。
返回
listBySubscription(ConnectedClusterListBySubscriptionOptionalParams)
用于枚举订阅下已注册的已连接的 K8s 群集的 API
function listBySubscription(options?: ConnectedClusterListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ConnectedCluster, ConnectedCluster[], PageSettings>
参数
选项参数。
返回
listClusterUserCredential(string, string, ListClusterUserCredentialProperties, ConnectedClusterListClusterUserCredentialOptionalParams)
获取具有指定资源组和名称的连接群集的群集用户凭据。
function listClusterUserCredential(resourceGroupName: string, clusterName: string, properties: ListClusterUserCredentialProperties, options?: ConnectedClusterListClusterUserCredentialOptionalParams): Promise<CredentialResults>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- clusterName
-
string
调用其获取的 Kubernetes 群集的名称。
- properties
- ListClusterUserCredentialProperties
ListClusterUserCredential 属性
选项参数。
返回
Promise<CredentialResults>
update(string, string, ConnectedClusterPatch, ConnectedClusterUpdateOptionalParams)
用于更新已连接群集资源的某些属性的 API
function update(resourceGroupName: string, clusterName: string, connectedClusterPatch: ConnectedClusterPatch, options?: ConnectedClusterUpdateOptionalParams): Promise<ConnectedCluster>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- clusterName
-
string
调用其获取的 Kubernetes 群集的名称。
- connectedClusterPatch
- ConnectedClusterPatch
提供用于更新连接的群集的参数。
选项参数。
返回
Promise<ConnectedCluster>