Re: async last operation service broker ?
Nicholas Calugar
Hi Amulya,
Are you referencing the [1] Polling Last Operation (async only) of the
Service Broker API?
If so, that is a call the Cloud Controller makes to the Service Broker to
determine if the broker is finished doing an asynchronous operation
(provision, update, or deprovision). The result of the last operation is
shown in the call to /v2/service_instances/:guid as you’ve shown in your
example.
[1] http://docs.cloudfoundry.org/services/api.html#polling
Thanks,
Nick
Nicholas Calugar
Product Manager - Cloud Foundry API
Pivotal Software, Inc.
toggle quoted message
Show quoted text
Are you referencing the [1] Polling Last Operation (async only) of the
Service Broker API?
If so, that is a call the Cloud Controller makes to the Service Broker to
determine if the broker is finished doing an asynchronous operation
(provision, update, or deprovision). The result of the last operation is
shown in the call to /v2/service_instances/:guid as you’ve shown in your
example.
[1] http://docs.cloudfoundry.org/services/api.html#polling
Thanks,
Nick
Nicholas Calugar
Product Manager - Cloud Foundry API
Pivotal Software, Inc.
On August 8, 2016 at 1:03:41 PM, Amulya Sharma (amulya.sharma(a)gmail.com)
wrote:
I can not get the last_operation end point working am I missing something
$ cf curl /v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa
{
"metadata": {
"guid": "72153510-86eb-4c87-8964-9faf15a69caa",
"url": "/v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa",
"created_at": "2016-08-08T18:27:47Z",
"updated_at": null
},
"entity": {
"name": "redis-shared-test-123",
"credentials": {},
"service_plan_guid": "7a80c45b-05df-4946-b258-2595c479f66c",
"space_guid": "4d0a24b0-10d4-4f71-9edf-6abf64eaf174",
"gateway_data": null,
"dashboard_url": null,
"type": "managed_service_instance",
"last_operation": {
"type": "create",
"state": "succeeded",
"description": "",
"updated_at": "2016-08-08T18:29:02Z",
"created_at": "2016-08-08T18:27:47Z"
},
"tags": [],
"space_url": "/v2/spaces/4d0a24b0-10d4-4f71-9edf-6abf64eaf174",
"service_plan_url":
"/v2/service_plans/7a80c45b-05df-4946-b258-2595c479f66c",
"service_bindings_url":
"/v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa/service_bindings",
"service_keys_url":
"/v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa/service_keys",
"routes_url":
"/v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa/routes"
}
}
$ cf curl
/v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa/last_operations
{
"code": 10000,
"description": "Unknown request",
"error_code": "CF-NotFound"
}
wrote:
I can not get the last_operation end point working am I missing something
$ cf curl /v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa
{
"metadata": {
"guid": "72153510-86eb-4c87-8964-9faf15a69caa",
"url": "/v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa",
"created_at": "2016-08-08T18:27:47Z",
"updated_at": null
},
"entity": {
"name": "redis-shared-test-123",
"credentials": {},
"service_plan_guid": "7a80c45b-05df-4946-b258-2595c479f66c",
"space_guid": "4d0a24b0-10d4-4f71-9edf-6abf64eaf174",
"gateway_data": null,
"dashboard_url": null,
"type": "managed_service_instance",
"last_operation": {
"type": "create",
"state": "succeeded",
"description": "",
"updated_at": "2016-08-08T18:29:02Z",
"created_at": "2016-08-08T18:27:47Z"
},
"tags": [],
"space_url": "/v2/spaces/4d0a24b0-10d4-4f71-9edf-6abf64eaf174",
"service_plan_url":
"/v2/service_plans/7a80c45b-05df-4946-b258-2595c479f66c",
"service_bindings_url":
"/v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa/service_bindings",
"service_keys_url":
"/v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa/service_keys",
"routes_url":
"/v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa/routes"
}
}
$ cf curl
/v2/service_instances/72153510-86eb-4c87-8964-9faf15a69caa/last_operations
{
"code": 10000,
"description": "Unknown request",
"error_code": "CF-NotFound"
}