DeploymentStackCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /{scope}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}
  • Operation Id: DeploymentStacks_GetAtScope
  • Default Api Version: 2024-03-01
  • Resource: DeploymentStackResource
public virtual Azure.NullableResponse<Azure.ResourceManager.Resources.DeploymentStackResource> GetIfExists (string deploymentStackName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Resources.DeploymentStackResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Resources.DeploymentStackResource>
Public Overridable Function GetIfExists (deploymentStackName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of DeploymentStackResource)

Parameters

deploymentStackName
String

Name of the deployment stack.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

deploymentStackName is an empty string, and was expected to be non-empty.

deploymentStackName is null.

Applies to