Share via


CommunicationExtensions.GetCommunicationServiceResource Method

Definition

Overloads

GetCommunicationServiceResource(ArmClient, ResourceIdentifier)

Gets an object representing a CommunicationServiceResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a CommunicationServiceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetCommunicationServiceResource(ResourceIdentifier) instead.

GetCommunicationServiceResource(ResourceGroupResource, String, CancellationToken)

Get the CommunicationService and its properties.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • Operation Id: CommunicationServices_Get
  • Default Api Version: 2023-04-01
  • Resource: CommunicationServiceResource

GetCommunicationServiceResource(ArmClient, ResourceIdentifier)

Source:
CommunicationExtensions.cs
Source:
CommunicationExtensions.cs

Gets an object representing a CommunicationServiceResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a CommunicationServiceResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetCommunicationServiceResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.Communication.CommunicationServiceResource GetCommunicationServiceResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetCommunicationServiceResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Communication.CommunicationServiceResource
<Extension()>
Public Function GetCommunicationServiceResource (client As ArmClient, id As ResourceIdentifier) As CommunicationServiceResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a CommunicationServiceResource object.

Exceptions

client is null.

Applies to

GetCommunicationServiceResource(ResourceGroupResource, String, CancellationToken)

Source:
CommunicationExtensions.cs
Source:
CommunicationExtensions.cs

Get the CommunicationService and its properties.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • Operation Id: CommunicationServices_Get
  • Default Api Version: 2023-04-01
  • Resource: CommunicationServiceResource
public static Azure.Response<Azure.ResourceManager.Communication.CommunicationServiceResource> GetCommunicationServiceResource (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string communicationServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetCommunicationServiceResource : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Communication.CommunicationServiceResource>
<Extension()>
Public Function GetCommunicationServiceResource (resourceGroupResource As ResourceGroupResource, communicationServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CommunicationServiceResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

communicationServiceName
String

The name of the CommunicationService resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or communicationServiceName is null.

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

Applies to