View deployment details

get

/apiplatform/management/v1/gateways/{gwId}/deployments/{depId}

Returns details for the {depId} deployment on the {gwId} gateway. The response also contains HATEOAS links to related operations.

Users requesting this resource must be assigned the Plan Manager, API Manager, or Gateway Manager role and must be issued the Manage Gateway or View All Details grants for the specified gateway.

Request

Supported Media Types
Path Parameters
Query Parameters
  • Collection Format: csv
    Pass optional fields, separated by commas, in this parameter to return them in the response. See the operation's description for a list of expand values.
  • Collection Format: csv
    Pass optional fields, separated by commas, in this parameter to return them in the response. See the operation's description for a list of field values.
Back to Top

Response

Supported Media Types

200 Response

The deployment
Body ()
Root Schema : GetDeploymentResponse
Match All
Show Source
Nested Schema : ResourceLinksProperties
Type: object
Show Source
Nested Schema : Deployment
Match All
Show Source
Nested Schema : DeploymentId
Type: object
Show Source
Nested Schema : Deployment-allOf[1]
Type: object
Show Source
Nested Schema : Deployment-allOf[2]
Type: object
Show Source
Nested Schema : DeploymentDef
Type: object
Show Source
Nested Schema : DeploymentMetadata
Type: object
Show Source
Nested Schema : Deployment-allOf[5]
Type: object
Show Source
Nested Schema : Api
Type: object
Nested Schema : Gateway
Match All
Show Source
Nested Schema : GatewayId
Type: object
Show Source
Nested Schema : GatewayIdentity
Type: object
Show Source
Nested Schema : GatewayDef
Type: object
Show Source
Nested Schema : GatewayMetadata
Type: object
Show Source
Nested Schema : configuration
Type: object
Show Source
Nested Schema : firewall
Type: object
Show Source
Nested Schema : proxyUrls
Type: array
Show Source
Nested Schema : urls
Type: array
Show Source
Nested Schema : endpoints
Type: array
The deployment's endpoints.
Show Source
Nested Schema : nodes
Type: array
Show Source
Nested Schema : NodeDeployment
Type: object
Show Source
Nested Schema : endpoints
Type: array
The node deployment's endpoints.
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 details of the deployment by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL

curl -i -X GET 
-H "Authorization: Bearer access_token"
https://example.com/apiplatform/management/v1/gateways/{gwId}/deployments/{depId}
  • {gwId} is the unique of a gateway. To retrieve available gateway Ids, see Get gateways.

  • {depId} is the unique Id for a deployment. To retrieve available deployment Ids, see Get deployed APIs.

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:  Fri, 17 Mar 2017 09:20:51 GMT
Content-Length:  1523
Content-Type:  application/json
X-oracle-dms-ecid:  f102c33f-1c5b-4409-806d-03bf5706c492-0002b4a7
X-oracle-dms-rid: 0:1
Via: 1.1 otd_opc
Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0

Example of Response Body

The following example shows the contents of the response body in JSON format, including details about the deployment and HATEOAS links to related operations.

{
    "endpoints": [
        "http://example.com:8001/exampleEndpoint"
    ],
    "updatedBy": "apicsadmin",
    "runtimeState": "ACTIVE",
    "deploymentState": "APPROVED",
    "createdAt": "2017-03-16T23:33:51-0700",
    "nodes": [
        {
            "deploymentState": "DEPLOYED",
            "endpoints": [
                "http://example.com:8001/exampleEndpoint"
            ],
            "id": "100"
        }
    ],
    "createdBy": "apicsadmin",
    "action": "DEPLOY",
    "links": [
        {
            "templated": "true",
            "method": "GET",
            "rel": "canonical",
            "href": "https://example.com:443/apiplatform/management/v1/gateways/100/deployments/103"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "implementation",
            "href": "https://example.com:443/apiplatform/management/v1/gateways/100/deployments/103/api"
        },
        {
            "templated": "true",
            "method": "POST",
            "rel": "deploy",
            "href": "https://example.com:443/apiplatform/management/v1/gateways/100/deployments"
        },
        {
            "templated": "true",
            "method": "POST",
            "rel": "redeploy",
            "href": "https://example.com:443/apiplatform/management/v1/gateways/100/deployments"
        },
        {
            "templated": "true",
            "method": "POST",
            "rel": "activate",
            "href": "https://example.com:443/apiplatform/management/v1/gateways/100/deployments"
        },
        {
            "templated": "true",
            "method": "POST",
            "rel": "inactivate",
            "href": "https://example.com:443/apiplatform/management/v1/gateways/100/deployments"
        },
        {
            "templated": "true",
            "method": "POST",
            "rel": "undeploy",
            "href": "https://example.com:443/apiplatform/management/v1/gateways/100/deployments"
        }
    ],
    "id": "103",
    "api": {
        "id": "103",
        "iterationId": "3"
    },
    "gateway": {
        "id": "100"
    },
    "updatedAt": "2017-03-16T23:33:51-0700"
}
Back to Top