GET /v2/service_keys
Name | Description | Valid Values | Example Values |
---|---|---|---|
q |
Parameters used to filter the result set. Format queries as <filter><op><value> Valid ops: : >= <= < > IN Valid filters: name, service_instance_guid |
|
|
page | Page of results to fetch |
|
|
results-per-page | Number of results per page |
|
|
order-direction | Order of the results: asc (default) or desc |
|
|
inline-relations-depth | 0 - don't inline any relations and return URLs. Otherwise, inline to depth N. |
|
|
orphan-relations | 0 - de-duplicate object entries in response |
|
|
exclude-relations | comma-delimited list of relations to drop from response |
|
|
include-relations | comma-delimited list of the only relations to include in response |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTN9._3sw5Jo7lgFfVO-uuU2xFRin9_Sfe-5V3T5LNwBCEaA Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_keys" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTN9._3sw5Jo7lgFfVO-uuU2xFRin9_Sfe-5V3T5LNwBCEaA" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "77bd5661-9df9-4fbf-8ec8-fd042fd77398", "url": "/v2/service_keys/77bd5661-9df9-4fbf-8ec8-fd042fd77398", "created_at": "2015-07-06T23:23:12Z", "updated_at": null }, "entity": { "name": "name-1766", "service_instance_guid": "c7e4a42e-f4d3-4fc1-88b7-178f4b02dbfd", "credentials": { "creds-key-471": "creds-val-471" }, "service_instance_url": "/v2/service_instances/c7e4a42e-f4d3-4fc1-88b7-178f4b02dbfd" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 42a35018-1b32-4e84-b419-fc82991cadde Content-Length: 648 X-Content-Type-Options: nosniff