Get a Service resource

get

/apiplatform/management/v1/services/{serviceId}/resources/{pathname}

Returns the resource at {pathname} for the {serviceId} service. Service resources are files attached to a service containing .zip or .wsdl files. The {pathname} is the filename of the resource you want to view. The pathnames of attached resources appear in the artifacts array returned in response from the /services/{serviceId} resource.

Users requesting this resource must be assigned the Service Manager, API Manager, or Gateway Manager role and must be issued the Service Manager or View All Details grant for the specified service.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

The resources for the Service.
Body ()
Root Schema : schema
Type: object
Show Source

403 Response

Forbidden.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source

500 Response

Unexpected error.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source
Back to Top

Examples

The following example shows how to retrieve a resource for the {serviceId} service by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL

curl -i -X GET 
-u apicsadmin:password
https://example.com/apiplatform/management/v1/services/{serviceId}/resources/{pathname}

where,

  • {serviceId}is a unique Ids of a specific service. See Get Services.

  • {pathname} is the filename of the resource you want to view. The path names of attached resources appear in the artifacts array returned in response from Get Service details.

    For example:

      "artifacts": [
            {
                "content-type": "application/octet-stream",
                "pathname": "mywsdl2.zip"
            }

Example of Response Headers

The following shows an example of the response headers.

HTTP/1.1 200 OK
Server: Oracle-Traffic-Director/12.2.1.0.0
Date:  Wed, 22 Mar 2017 09:43:13 GMT
Content-Length:  1493
Content-Type:  text/html;charset=utf-8
X-oracle-dms-ecid:  49d14691-2176-4c99-aed3-38438604f528-00001e9d
X-oracle-dms-rid:  0
Via: 1.1 otd_opc
Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0

Example of Response Body

The response body shows the contents of the mywsdl2.zip file requested in the cURL example.

Back to Top