Share via


Deployments Interface

Implements

public interface Deployments
extends SupportsCreating<Blank>, SupportsListing<Deployment>, SupportsListingByResourceGroup<Deployment>, SupportsGettingByName<Deployment>, SupportsGettingByResourceGroup<Deployment>, SupportsGettingById<Deployment>, SupportsDeletingById, SupportsDeletingByResourceGroup, HasManager<ResourceManager>

Entry point to template deployment in Azure.

Method Summary

Modifier and Type Method and Description
default Accepted<Void> beginDeleteById(String id)

Deletes a deployment from the deployment history by its ID.

default Accepted<Void> beginDeleteById(String id, Context context)

Deletes a deployment from the deployment history by its ID.

default Accepted<Void> beginDeleteByResourceGroup(String resourceGroupName, String name)

Deletes a deployment from the deployment history by its resource group and name.

default Accepted<Void> beginDeleteByResourceGroup(String resourceGroupName, String name, Context context)

Deletes a deployment from the deployment history by its resource group and name.

abstract boolean checkExistence(String resourceGroupName, String deploymentName)

Checks if a deployment exists in a resource group.

Method Details

beginDeleteById

public default Accepted<Void> beginDeleteById(String id)

Deletes a deployment from the deployment history by its ID. A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group.

Parameters:

id - the resource ID of the resource to delete

Returns:

the accepted deleting operation

beginDeleteById

public default Accepted<Void> beginDeleteById(String id, Context context)

Deletes a deployment from the deployment history by its ID. A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group.

Parameters:

id - the resource ID of the resource to delete
context - the Context of the request

Returns:

the accepted deleting operation

beginDeleteByResourceGroup

public default Accepted<Void> beginDeleteByResourceGroup(String resourceGroupName, String name)

Deletes a deployment from the deployment history by its resource group and name. A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group.

Parameters:

resourceGroupName - the resource group the deployment is part of
name - the name of the deployment

Returns:

the accepted deleting operation

beginDeleteByResourceGroup

public default Accepted<Void> beginDeleteByResourceGroup(String resourceGroupName, String name, Context context)

Deletes a deployment from the deployment history by its resource group and name. A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group.

Parameters:

resourceGroupName - the resource group the deployment is part of
name - the name of the deployment
context - the Context of the request

Returns:

the accepted deleting operation

checkExistence

public abstract boolean checkExistence(String resourceGroupName, String deploymentName)

Checks if a deployment exists in a resource group.

Parameters:

resourceGroupName - the resource group's name
deploymentName - the deployment's name

Returns:

true if the deployment exists; false otherwise

Applies to