GET /v2/service_plan_visibilities
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: organization_guid, service_plan_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.eyJ1c2VyX2lkIjoidWFhLWlkLTE5IiwiZW1haWwiOiJlbWFpbC0xNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIyfQ._Qrtjt-cDPKHP2n4_polEArVVe-zoYwd35u9c8ba7lE Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5IiwiZW1haWwiOiJlbWFpbC0xNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIyfQ._Qrtjt-cDPKHP2n4_polEArVVe-zoYwd35u9c8ba7lE" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "0a748a22-1f83-4c1a-a5e9-33bef10e5aee", "url": "/v2/service_plan_visibilities/0a748a22-1f83-4c1a-a5e9-33bef10e5aee", "created_at": "2016-04-16T01:23:42Z", "updated_at": null }, "entity": { "service_plan_guid": "26cd8f69-0ec8-44ed-8844-eb4647774b6e", "organization_guid": "3aa079d5-f9e2-43b4-889b-c457fc965820", "service_plan_url": "/v2/service_plans/26cd8f69-0ec8-44ed-8844-eb4647774b6e", "organization_url": "/v2/organizations/3aa079d5-f9e2-43b4-889b-c457fc965820" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 743099ea-66af-4c2b-8134-b72e9480119e Content-Length: 696 X-Content-Type-Options: nosniff