GET /v2/service_auth_tokens
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: label, provider |
|
|
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 |
|
|
Name | Description | Default | Valid Values | Example Values |
---|---|---|---|---|
guid | The guid of the service auth token. |
|
|
|
label | Human readable name for the auth token |
|
|
|
provider | Human readable name of service provider |
|
|
|
token | The secret auth token used for authenticating |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NSIsImVtYWlsIjoiZW1haWwtMTI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDV9.0dcaOXmErRcO1tjggC27AjC2suUmOHbL2fttHjM_AHE Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_auth_tokens" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NSIsImVtYWlsIjoiZW1haWwtMTI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDV9.0dcaOXmErRcO1tjggC27AjC2suUmOHbL2fttHjM_AHE" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "1bbb9d25-a86d-4af6-917f-a5978491d97f", "url": "/v2/service_auth_tokens/1bbb9d25-a86d-4af6-917f-a5978491d97f", "created_at": "2015-03-05T19:15:45Z", "updated_at": null }, "entity": { "label": "label-20", "provider": "provider-11" } }, { "metadata": { "guid": "1135c003-3d60-4567-9ee4-3c141aa5340c", "url": "/v2/service_auth_tokens/1135c003-3d60-4567-9ee4-3c141aa5340c", "created_at": "2015-03-05T19:15:45Z", "updated_at": null }, "entity": { "label": "label-21", "provider": "provider-12" } }, { "metadata": { "guid": "eeb2dbe9-ebf8-49e4-a6e5-0ed3e7cc469c", "url": "/v2/service_auth_tokens/eeb2dbe9-ebf8-49e4-a6e5-0ed3e7cc469c", "created_at": "2015-03-05T19:15:45Z", "updated_at": null }, "entity": { "label": "label-22", "provider": "provider-13" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 73a7c6ed-9a74-47f2-ba76-2c97679cb4a6 X-Cf-Warnings: Support+for+the+v1+Service+Broker+API+is+deprecated+and+will+re+removed+in+the+next+major+version+of+Cloud+Foundry.+Consider+upgrading+your+broker+to+implement+the+v2+Service+Broker+API. Content-Length: 1122 X-Content-Type-Options: nosniff