Returns the list of all the BlockedCertificate.
If the flag BlockedCertificatesResult.limitExceeded is set, the maximum number of entries to be returned has been reached, more pkis exist and can be read by moving the offset forward in a new request
Example to get all BlockedCertificates:
String apiPath = "blockedCertificates.xml"; WebResource apisWeb = client.resource(API_URL).path(apiPath); BlockedCertificatesResult result; int offset = 0; do { // if the "limit" queryParam is not initialized, limit default value = 50 // if the "offset" queryParam is not initialized, offset default value = 0 apisWeb = apisWeb.queryParam("limit", "" + limit); if (offset > 0) apisWeb = apisWeb.queryParam("offset", "" + offset); result = apisWeb.get(BlockedCertificatesResult.class); offset += limit; } while (result.isLimitExceeded()):
Example of query in CURL :
curl --user 'username:password' -k https://api-sandbox.everyware-cloud.com/v2/blockedCertificates
name | type | description | default | constraints |
---|---|---|---|---|
limit | query | Maximum number of entries to be returned. Note that an error will be returned if the maximum allowed value is exceeded. | 50 | required |
offset | query | Starting offset for the entries to be returned. Note that an error will be returned if the maximum allowed value is exceeded. | 0 | required |
media type | data type | description |
---|---|---|
application/json | BlockedCertificatesResult (JSON) | The list of requested BlockedCertificates. |
application/xml | blockedCertificatesResult (XML) |
GET /blockedCertificates
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"limitExceeded" : true,
"blockedCertificate" : [ {
"digest" : "...",
"id" : 12345,
"certificate" : "...",
"accountId" : 12345,
"version" : 12345,
"serial" : "...",
"algorithm" : "...",
"subject" : "...",
"issuer" : "...",
"notBefore" : 12345,
"notAfter" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"name" : "...",
"optlock" : 12345
}, {
"digest" : "...",
"id" : 12345,
"certificate" : "...",
"accountId" : 12345,
"version" : 12345,
"serial" : "...",
"algorithm" : "...",
"subject" : "...",
"issuer" : "...",
"notBefore" : 12345,
"notAfter" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"name" : "...",
"optlock" : 12345
} ]
}
Creates a new BlockedCertificate based on the information provided in BlockedCertificateCreator parameter.
media type | data type | description |
---|---|---|
application/json | BlockedCertificateCreator (JSON) | Provides the information for the new BlockedCertificate to be created. |
application/xml | blockedCertificateCreator (XML) |
media type | data type | description |
---|---|---|
application/json | BlockedCertificate (JSON) | The newly created BlockedCertificate. |
application/xml | blockedCertificate (XML) |
POST /blockedCertificates
Content-Type: application/json
Accept: application/json
{
"certificate" : "...",
"privateKey" : "...",
"password" : "...",
"accountId" : 12345,
"version" : 12345,
"serial" : "...",
"algorithm" : "...",
"subject" : "...",
"issuer" : "...",
"notBefore" : 12345,
"notAfter" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"name" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"digest" : "...",
"id" : 12345,
"certificate" : "...",
"accountId" : 12345,
"version" : 12345,
"serial" : "...",
"algorithm" : "...",
"subject" : "...",
"issuer" : "...",
"notBefore" : 12345,
"notAfter" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"name" : "...",
"optlock" : 12345
}
Updates the BlockedCertificate provided in the request body.
media type | data type | description |
---|---|---|
application/json | BlockedCertificate (JSON) | The modified BlockedCertificate whose attributes need to be updated. |
application/xml | blockedCertificate (XML) |
media type | data type | description |
---|---|---|
application/json | BlockedCertificate (JSON) | The updated BlockedCertificate. |
application/xml | blockedCertificate (XML) |
PUT /blockedCertificates
Content-Type: application/json
Accept: application/json
{
"digest" : "...",
"id" : 12345,
"certificate" : "...",
"accountId" : 12345,
"version" : 12345,
"serial" : "...",
"algorithm" : "...",
"subject" : "...",
"issuer" : "...",
"notBefore" : 12345,
"notAfter" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"name" : "...",
"optlock" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"digest" : "...",
"id" : 12345,
"certificate" : "...",
"accountId" : 12345,
"version" : 12345,
"serial" : "...",
"algorithm" : "...",
"subject" : "...",
"issuer" : "...",
"notBefore" : 12345,
"notAfter" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"name" : "...",
"optlock" : 12345
}
Deletes the BlockedCertificate specified by the "blockedCertificateId" path parameter.
name | type | description |
---|---|---|
blockedCertificateId | path |
DELETE /blockedCertificates/{blockedCertificateId}
Content-Type: */*
...
HTTP/1.1 204 No Content
Returns the BlockedCertificate identified by the specified blockedCertificateId.
Example of query in CURL :
curl --user 'username:password' -k https://api-sandbox.everyware-cloud.com/v2/blockedCertificates/{blockedCertificateId}.xml | xmllint --format -
name | type | description |
---|---|---|
blockedCertificateId | path | The BlockedCertificate ID of the BlockedCertificate requested. |
media type | data type | description |
---|---|---|
application/json | BlockedCertificate (JSON) | The BlockedCertificate requested. |
application/xml | blockedCertificate (XML) |
GET /blockedCertificates/{blockedCertificateId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"digest" : "...",
"id" : 12345,
"certificate" : "...",
"accountId" : 12345,
"version" : 12345,
"serial" : "...",
"algorithm" : "...",
"subject" : "...",
"issuer" : "...",
"notBefore" : 12345,
"notAfter" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"name" : "...",
"optlock" : 12345
}