///GENMHASH:CC6E0592F0BCD4CD83D832B40167E562:19BB8B1526082C9526EBBE504AC24AE2 public async Task VerifyDomainOwnershipAsync(string certificateOrderName, string domainVerificationToken, CancellationToken cancellationToken = default(CancellationToken)) { DomainOwnershipIdentifierInner identifierInner = new DomainOwnershipIdentifierInner() { OwnershipId = domainVerificationToken }; await Manager.Inner.Domains.CreateOrUpdateOwnershipIdentifierAsync(ResourceGroupName, Name, certificateOrderName, identifierInner, cancellationToken); }
/// <summary> /// Creates an ownership identifier for a domain or updates identifier details /// for an existing identifer /// </summary> /// <remarks> /// Creates an ownership identifier for a domain or updates identifier details /// for an existing identifer /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='domainName'> /// Name of domain. /// </param> /// <param name='name'> /// Name of identifier. /// </param> /// <param name='domainOwnershipIdentifier'> /// A JSON representation of the domain ownership properties. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DomainOwnershipIdentifierInner> UpdateOwnershipIdentifierAsync(this IDomainsOperations operations, string resourceGroupName, string domainName, string name, DomainOwnershipIdentifierInner domainOwnershipIdentifier, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateOwnershipIdentifierWithHttpMessagesAsync(resourceGroupName, domainName, name, domainOwnershipIdentifier, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }