Clusters Interface
public interface Clusters
Resource collection API of Clusters.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
abstract
Name |
checkNameAvailability(NameAvailabilityRequest nameAvailabilityRequest)
Checks availability of a cluster name. |
|
abstract
Response<Name |
checkNameAvailabilityWithResponse(NameAvailabilityRequest nameAvailabilityRequest, Context context)
Checks availability of a cluster name. |
| abstract Blank |
define(String name)
Begins definition for a new Cluster resource. |
| abstract void |
delete(String resourceGroupName, String clusterName, Context context)
Deletes a cluster together with servers in it. |
| abstract void |
deleteById(String id)
Deletes a cluster together with servers in it. |
| abstract void |
deleteByIdWithResponse(String id, Context context)
Deletes a cluster together with servers in it. |
| abstract void |
deleteByResourceGroup(String resourceGroupName, String clusterName)
Deletes a cluster together with servers in it. |
| abstract Cluster |
getById(String id)
Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as cluster creation date and time. |
| abstract Response<Cluster> |
getByIdWithResponse(String id, Context context)
Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as cluster creation date and time. |
| abstract Cluster |
getByResourceGroup(String resourceGroupName, String clusterName)
Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as cluster creation date and time. |
| abstract Response<Cluster> |
getByResourceGroupWithResponse(String resourceGroupName, String clusterName, Context context)
Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as cluster creation date and time. |
|
abstract
Paged |
list()
Lists all clusters in a subscription. |
|
abstract
Paged |
list(Context context)
Lists all clusters in a subscription. |
|
abstract
Paged |
listByResourceGroup(String resourceGroupName)
Lists all clusters in a resource group. |
|
abstract
Paged |
listByResourceGroup(String resourceGroupName, Context context)
Lists all clusters in a resource group. |
| abstract void |
promoteReadReplica(String resourceGroupName, String clusterName)
Promotes read replica cluster to an independent read-write cluster. |
| abstract void |
promoteReadReplica(String resourceGroupName, String clusterName, Context context)
Promotes read replica cluster to an independent read-write cluster. |
| abstract void |
restart(String resourceGroupName, String clusterName)
Restarts all nodes in the cluster. |
| abstract void |
restart(String resourceGroupName, String clusterName, Context context)
Restarts all nodes in the cluster. |
| abstract void |
start(String resourceGroupName, String clusterName)
Starts stopped compute on all cluster nodes. |
| abstract void |
start(String resourceGroupName, String clusterName, Context context)
Starts stopped compute on all cluster nodes. |
| abstract void |
stop(String resourceGroupName, String clusterName)
Stops compute on all cluster nodes. |
| abstract void |
stop(String resourceGroupName, String clusterName, Context context)
Stops compute on all cluster nodes. |
Method Details
checkNameAvailability
public abstract NameAvailability checkNameAvailability(NameAvailabilityRequest nameAvailabilityRequest)
Checks availability of a cluster name. Cluster names should be globally unique; at least 3 characters and at most 40 characters long; they must only contain lowercase letters, numbers, and hyphens; and must not start or end with a hyphen.
Parameters:
Returns:
checkNameAvailabilityWithResponse
public abstract Response<NameAvailability> checkNameAvailabilityWithResponse(NameAvailabilityRequest nameAvailabilityRequest, Context context)
Checks availability of a cluster name. Cluster names should be globally unique; at least 3 characters and at most 40 characters long; they must only contain lowercase letters, numbers, and hyphens; and must not start or end with a hyphen.
Parameters:
Returns:
define
public abstract Cluster.DefinitionStages.Blank define(String name)
Begins definition for a new Cluster resource.
Parameters:
Returns:
delete
public abstract void delete(String resourceGroupName, String clusterName, Context context)
Deletes a cluster together with servers in it.
Parameters:
deleteById
public abstract void deleteById(String id)
Deletes a cluster together with servers in it.
Parameters:
deleteByIdWithResponse
public abstract void deleteByIdWithResponse(String id, Context context)
Deletes a cluster together with servers in it.
Parameters:
deleteByResourceGroup
public abstract void deleteByResourceGroup(String resourceGroupName, String clusterName)
Deletes a cluster together with servers in it.
Parameters:
getById
public abstract Cluster getById(String id)
Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as cluster creation date and time.
Parameters:
Returns:
getByIdWithResponse
public abstract Response<Cluster> getByIdWithResponse(String id, Context context)
Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as cluster creation date and time.
Parameters:
Returns:
getByResourceGroup
public abstract Cluster getByResourceGroup(String resourceGroupName, String clusterName)
Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as cluster creation date and time.
Parameters:
Returns:
getByResourceGroupWithResponse
public abstract Response<Cluster> getByResourceGroupWithResponse(String resourceGroupName, String clusterName, Context context)
Gets information about a cluster such as compute and storage configuration and cluster lifecycle metadata such as cluster creation date and time.
Parameters:
Returns:
list
public abstract PagedIterable<Cluster> list()
Lists all clusters in a subscription.
Returns:
list
public abstract PagedIterable<Cluster> list(Context context)
Lists all clusters in a subscription.
Parameters:
Returns:
listByResourceGroup
public abstract PagedIterable<Cluster> listByResourceGroup(String resourceGroupName)
Lists all clusters in a resource group.
Parameters:
Returns:
listByResourceGroup
public abstract PagedIterable<Cluster> listByResourceGroup(String resourceGroupName, Context context)
Lists all clusters in a resource group.
Parameters:
Returns:
promoteReadReplica
public abstract void promoteReadReplica(String resourceGroupName, String clusterName)
Promotes read replica cluster to an independent read-write cluster.
Parameters:
promoteReadReplica
public abstract void promoteReadReplica(String resourceGroupName, String clusterName, Context context)
Promotes read replica cluster to an independent read-write cluster.
Parameters:
restart
public abstract void restart(String resourceGroupName, String clusterName)
Restarts all nodes in the cluster.
Parameters:
restart
public abstract void restart(String resourceGroupName, String clusterName, Context context)
Restarts all nodes in the cluster.
Parameters:
start
public abstract void start(String resourceGroupName, String clusterName)
Starts stopped compute on all cluster nodes.
Parameters:
start
public abstract void start(String resourceGroupName, String clusterName, Context context)
Starts stopped compute on all cluster nodes.
Parameters:
stop
public abstract void stop(String resourceGroupName, String clusterName)
Stops compute on all cluster nodes.
Parameters:
stop
public abstract void stop(String resourceGroupName, String clusterName, Context context)
Stops compute on all cluster nodes.
Parameters: