/// <summary> /// Deletes a Certificate from the specified Account. /// </summary> /// <remarks> /// You cannot delete a Certificate if a resource (Pool or Compute Node) is /// using it. Before you can delete a Certificate, you must therefore make sure /// that the Certificate is not associated with any existing Pools, the /// Certificate is not installed on any Nodes (even if you remove a Certificate /// from a Pool, it is not removed from existing Compute Nodes in that Pool /// until they restart), and no running Tasks depend on the Certificate. If you /// try to delete a Certificate that is in use, the deletion fails. The /// Certificate status changes to deleteFailed. You can use Cancel Delete /// Certificate to set the status back to active if you decide that you want to /// continue using the Certificate. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='thumbprintAlgorithm'> /// The algorithm used to derive the thumbprint parameter. This must be sha1. /// </param> /// <param name='thumbprint'> /// The thumbprint of the Certificate to be deleted. /// </param> /// <param name='certificateDeleteOptions'> /// Additional parameters for the operation /// </param> public static CertificateDeleteHeaders Delete(this ICertificateOperations operations, string thumbprintAlgorithm, string thumbprint, CertificateDeleteOptions certificateDeleteOptions = default(CertificateDeleteOptions)) { return(operations.DeleteAsync(thumbprintAlgorithm, thumbprint, certificateDeleteOptions).GetAwaiter().GetResult()); }
/// <summary> /// Delete the certificate. (see /// http://aka.ms/azureautomationsdk/certificateoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.ICertificateOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='certificateName'> /// Required. The name of certificate. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this ICertificateOperations operations, string automationAccount, string certificateName) { return(operations.DeleteAsync(automationAccount, certificateName, CancellationToken.None)); }
/// <summary> /// Deletes the specified certificate. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the Batch account. /// </param> /// <param name='accountName'> /// The name of the Batch account. /// </param> /// <param name='certificateName'> /// The identifier for the certificate. This must be made up of algorithm and /// thumbprint separated by a dash, and must match the certificate data in the /// request. For example SHA1-a3d1c5. /// </param> public static CertificateDeleteHeaders Delete(this ICertificateOperations operations, string resourceGroupName, string accountName, string certificateName) { return(operations.DeleteAsync(resourceGroupName, accountName, certificateName).GetAwaiter().GetResult()); }
/// <summary> /// Deletes specific certificate. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='certificateId'> /// Identifier of the certificate entity. Must be unique in the current API /// Management service instance. /// </param> /// <param name='ifMatch'> /// ETag of the Entity. ETag should match the current entity state from the /// header response of the GET request or it should be * for unconditional /// update. /// </param> public static void Delete(this ICertificateOperations operations, string resourceGroupName, string serviceName, string certificateId, string ifMatch) { operations.DeleteAsync(resourceGroupName, serviceName, certificateId, ifMatch).GetAwaiter().GetResult(); }
/// <summary> /// Delete the certificate. /// <see href="http://aka.ms/azureautomationsdk/certificateoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='certificateName'> /// The name of certificate. /// </param> public static void Delete(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName) { operations.DeleteAsync(resourceGroupName, automationAccountName, certificateName).GetAwaiter().GetResult(); }