Common response parameters

Table 1. Response Parameter
Response Parameter Style Type Description
credential body Object A credential object
blob body String The credential itself, as a serialized blob

Required: Yes

project_id body String The storage account ID.

Required: Yes

type body String Required: Yes (ec2)
subject_ibm_id body String Identity of the user/service within IAM.

Required: No. Only present if subject_ibm_id was configured for this access key.

id body String This will be the Access Key

Required: Yes

Table 2. HTTP response code
HTTP Response Code Description
200 OK Request was successful
400 Bad Request Request does not comply with specification
401 Unauthorized The provided token is not valid or cannot be verified
403 Forbidden The provided token although valid, does not provide appropriate permissions to the user
404 Not Found No such user or storage account exists
405 Method Not Allowed Although the user may be valid, the user does not have privileges to access storage account
503 Service Unavailable The credential API service is currently unavailable
Table 3. Role Guidance
Role Guidance Description
Key Listing Admin Permission Generic permission to allow an admin to list access keys
Key Listing User Permission Generic permission to allow a user to list access keys

Example Output


Request
-------
GET <accesser>:8338/credentials/a42a27755ce6442596b049bd7dd8a563

Response
--------
HTTP/1.1 200 OK
Content-Length: 368
Accept-Ranges: bytes
Content-Type: application/json; charset=utf-8
X-Timestamp: 1458262564.22774
X-Trans-Id: tx8ea13a3a835544d8bebf1-0056eb522a
Date: Fri, 18 Mar 2016 00:56:10 GMT
{
    "credential": {
        "user_id": "bb5476fd12884539b41d5a88f838d773",
        "blob": {"access": "a42a27755ce6442596b049bd7dd8a563", 
                 "secret": "71faf1d40bb24c82b479b1c6fbbd9f0c", 
                 "status": "Active"
        },
        "project_id": "6e01855f345f4c59812999b5e459137d",
        "type": "ec2",
        "subject_ibm_id": "IBMid-61KR43CAFF",
        "id": "a42a27755ce6442596b049bd7dd8a563"
    }
}