@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api AppServiceCertificateOrders API Client
@base https://management.azure.com
@version 2018-02-01
@auth OAuth2
@common_fields {subscriptionId: any # Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)., api-version: any # API Version}
@endpoints 20
@toc subscriptions(20)

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders
@desc List all certificate orders in a subscription.
@returns(200) OK

@endpoint POST /subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation
@desc Validate information for a certificate order.
@required {appServiceCertificateOrder: map # Information for a certificate order.}
@returns(204) No Content

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders
@desc Get certificate orders in a resource group.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs.}
@returns(200) OK

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}
@desc Get a certificate order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order..}
@returns(200) OK

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}
@desc Create or update a certificate purchase order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order., certificateDistinguishedName: map # Distinguished name to use for the certificate order.}
@returns(200) App Service Certificate Order is created.
@returns(201) App Service Certificate Order creation operation is in progress

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}
@desc Delete an existing certificate order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order.}
@returns(200) Successfully deleted certificate order.
@returns(204) Certificate order does not exist.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}
@desc Create or update a certificate purchase order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order., certificateDistinguishedName: map # Distinguished name to use for the certificate order.}
@returns(200) App Service Certificate Order is created.
@returns(201) App Service Certificate Order creation operation is in progress

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates
@desc List all certificates associated with a certificate order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order.}
@returns(200) OK

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}
@desc Get the certificate associated with a certificate order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order., name: any # Name of the certificate.}
@returns(200) OK

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}
@desc Creates or updates a certificate and associates with key vault secret.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order., name: any # Name of the certificate., keyVaultCertificate: map # Key vault certificate resource Id.}
@returns(200) App Service Certificate is created.
@returns(201) App Service Certificate creation operation is in progress

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}
@desc Delete the certificate associated with a certificate order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order., name: any # Name of the certificate.}
@returns(200) Successfully deleted certificate.
@returns(204) Certificate does not exist.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}
@desc Creates or updates a certificate and associates with key vault secret.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order., name: any # Name of the certificate., keyVaultCertificate: map # Key vault certificate resource Id.}
@returns(200) App Service Certificate is created.
@returns(201) App Service Certificate creation operation is in progress

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/reissue
@desc Reissue an existing certificate order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order., reissueCertificateOrderRequest: map # Parameters for the reissue.}
@returns(204) No Content

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/renew
@desc Renew an existing certificate order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order., renewCertificateOrderRequest: map # Renew parameters}
@returns(204) No Content

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendEmail
@desc Resend certificate email.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order.}
@returns(204) No Content

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendRequestEmails
@desc Verify domain ownership for this certificate order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order., nameIdentifier: any # Email address}
@returns(204) No Content

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/retrieveSiteSeal
@desc Verify domain ownership for this certificate order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order., siteSealRequest: map # Site seal request.}
@returns(200) OK

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/verifyDomainOwnership
@desc Verify domain ownership for this certificate order.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., certificateOrderName: any # Name of the certificate order.}
@returns(204) No Content

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveCertificateActions
@desc Retrieve the list of certificate actions.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., name: any # Name of the certificate order.}
@returns(200) OK

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveEmailHistory
@desc Retrieve email history.
@required {resourceGroupName: any # Name of the resource group to which the resource belongs., name: any # Name of the certificate order.}
@returns(200) OK

@end
