@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api ApiManagementClient
@base https://management.azure.com
@version 2019-12-01-preview
@auth OAuth2
@endpoints 5
@toc subscriptions(5)

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates
@desc Lists a collection of all certificates in the specified service instance.
@optional {$filter: any # |   Field     |     Usage     |     Supported operators     |     Supported functions     ||-------------|-------------|-------------|-------------|| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | subject | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | thumbprint | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | | expirationDate | filter | ge, le, eq, ne, gt, lt |     |}
@returns(200) Returns a collection of Certificate entity.

@endpoint HEAD /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}
@desc Gets the entity state (Etag) version of the certificate specified by its identifier.
@returns(200) Specified certificate entity exists and current entity state version is present in the ETag header.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}
@desc Gets the details of the certificate specified by its identifier.
@returns(200) The response body contains the specified Certificate entity.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}
@desc Creates or updates the certificate being used for authentication with the backend.
@required {parameters: any # Create or Update parameters.}
@returns(200) The certificate details were successfully updated.
@returns(201) The new certificate was successfully added.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}
@desc Deletes specific certificate.
@returns(200) The certificate was successfully deleted.
@returns(204) The certificate was successfully deleted.

@end
