GET https://apis.wso2.com/api/am/publisher/v0.16/clientCertificates/{alias}/content
This operation can be used to download a certificate which matches the given alias.
Not required
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
alias required |
String |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK. |
|
400 |
Bad Request. Alias not provided or server is not configured to support mutual SSL authentication. |
Error |
404 |
Not Found. Certificate for the Alias not found. |
Error |
500 |
Internal Server Error |
Error |
DELETE https://apis.wso2.com/api/am/publisher/v0.16/clientCertificates/{alias}
This operation can be used to delete an uploaded certificate.
Not required
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
alias required |
The alias of the certificate that should be deleted. |
String |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK. The Certificate deleted successfully. |
|
400 |
Bad Request. Alias not found or server is not configured to support mutual SSL authentication. |
Error |
404 |
Not Found. | Failed to delete the certificate. Certificate could not found for the given alias |
Error |
500 |
Internal Server Error |
Error |
GET https://apis.wso2.com/api/am/publisher/v0.16/clientCertificates/{alias}
This operation can be used to get the information about a certificate.
Not required
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
alias required |
String |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK. |
CertificateInfo |
400 |
Bad Request. Alias not found or server is not configured to support mutual SSL authentication. |
Error |
404 |
Not Found. Alias not found |
Error |
500 |
Internal Server Error |
Error |
PUT https://apis.wso2.com/api/am/publisher/v0.16/clientCertificates/{alias}
This operation can be used to update an uploaded certificate.
Not required
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
alias required |
Alias for the certificate |
String | |
Form |
certificate optional |
The certificate that needs to be uploaded. |
File | |
Form |
tier optional |
The tier of the certificate |
String |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK. The Certificate updated successfully. |
ClientCertMetadata |
400 |
Bad Request. Failure due to not providing alias. |
Error |
404 |
Not Found. Updating certificate failed. Alias not found or server is not configured to support mutual SSL authentication. |
Error |
500 |
Internal Server Error |
Error |
POST https://apis.wso2.com/api/am/publisher/v0.16/clientCertificates
This operation can be used to upload a new certificate for an endpoint.
Not required
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Form |
certificate required |
The certificate that needs to be uploaded. |
File | |
Form |
alias required |
Alias for the certificate |
String | |
Form |
apiId required |
apiId to which the certificate should be applied. |
String | |
Form |
tier required |
apiId to which the certificate should be applied. |
String |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK. The Certificate added successfully. |
ClientCertMetadata |
400 |
Bad Request. Failures due to existing alias or expired certificate. |
Error |
500 |
Internal Server Error Failed to add the Certificate due to an Internal Server Error |
Error |