VMware Cloud Director API - GET-ServiceResource
GET /admin/extension/service/serviceresource/{id}
- Operation:
- GET /admin/extension/service/serviceresource/{id}
- Description:
- Retrieve (GET) service resource
- Since:
- Input parameters
-
- Consume media type(s):
- None
- Input type:
- None
- Output parameters
-
- Produce media type(s):
-
application/vnd.vmware.admin.serviceResource+xml
application/vnd.vmware.admin.serviceResource+json
- Output type:
- ServiceResourceType
- Examples
-
- Request
-
HTTP 1.1
GET /api/admin/extension/service/serviceresource/47968fa6-0b09-4c35-ad56-226e3c70cfb5
Headers:
x-vcloud-authorization: SZMKkKToUBmDWSEeqZYL2yxpCqDiyToj5PYW3TigOrI=
Body:
- Response
-
HTTP/1.1 200 OK
Headers:
Content-Length: 1263
Content-Type: application/vnd.vmware.admin.serviceresource+xml;version=5.5
Vary: Accept-Encoding
Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:ServiceResource
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
href="https://vcloud.example.com/api/admin/extension/service/serviceresource/47968fa6-0b09-4c35-ad56-226e3c70cfb5"
id="urn:vcloud:serviceResource:47968fa6-0b09-4c35-ad56-226e3c70cfb5"
name="res-backup-1"
type="application/vnd.vmware.admin.serviceResource+xml"
xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1.5 http://https://vcloud.example.com/api/v1.5/schema/vmwextensions.xsd http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
<vcloud:Link
href="https://vcloud.example.com/api/admin/extension/service/serviceresource/47968fa6-0b09-4c35-ad56-226e3c70cfb5"
rel="remove"/>
<vcloud:Link
href="https://vcloud.example.com/api/admin/extension/service/resourceclass/5c986319-0aee-45fd-b4ac-2a7153b4728c"
rel="up"
type="application/vnd.vmware.admin.resourceClass+xml"/>
<vmext:Org
href="https://vcloud.example.com/api/admin/org/7b832bc5-3d65-45a2-8d35-da28388ab80a"
type="application/vnd.vmware.admin.organization+xml"/>
<vmext:ExternalObjectId>123-456</vmext:ExternalObjectId>
</vmext:ServiceResource>