Compartilhar via


SubscriptionExtensions.RenameSubscription Método

Definição

A operação para renomear uma assinatura

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Subscription/rename
  • Operação IdSubscription_Rename
public static Azure.Response<Azure.ResourceManager.Subscription.Models.RenamedSubscriptionId> RenameSubscription (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Subscription.Models.SubscriptionName body, System.Threading.CancellationToken cancellationToken = default);
static member RenameSubscription : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Subscription.Models.SubscriptionName * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Subscription.Models.RenamedSubscriptionId>
<Extension()>
Public Function RenameSubscription (subscriptionResource As SubscriptionResource, body As SubscriptionName, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RenamedSubscriptionId)

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância em que o método será executado.

body
SubscriptionName

Nome da assinatura.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

body é nulo.

Aplica-se a