Share via


CassandraViewGetResultCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}
  • Operation Id: CassandraResources_GetCassandraView
  • Default Api Version: 2024-09-01-preview
  • Resource: CassandraViewGetResultResource
public virtual Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CassandraViewGetResultResource> GetIfExists (string viewName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CassandraViewGetResultResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CassandraViewGetResultResource>
Public Overridable Function GetIfExists (viewName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of CassandraViewGetResultResource)

Parameters

viewName
String

Cosmos DB view name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

viewName is null.

Applies to