Update a connection for an application

put

/epm/rest/v1/applications/{applicationId}/connections/{connectionId}

Request

Supported Media Types
Path Parameters
Body ()
The updated details of the connection
Root Schema : UpdateApplicationConnectionCommandJson
Type: object
Show Source
Nested Schema : UpdateApplicationConnectionDetailsCommandJson
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Application Connection updated
Body ()
Root Schema : Connection
Type: object
Show Source
Nested Schema : ConnectionInfo
Type: object
Show Source

400 Response

Error in body

404 Response

Application Connection not found
Back to Top

Examples

The following example shows how to update the details of a specific application connection by using a put request on the REST resource using cURL.

cURL Command

curl --user epm_cloud_user -X PUT -H 'Content-Type: application/json' @example_request_payload.json https://servername.fa.us2.oraclecloud.com/epm/rest/v1/applications/e63e92c4-4727-4999-97f2-50498cb40ec7/connections/ea2328ed-48d3-45dd-b033-fc447a5e2a77

Example of Request Body

The following shows an example of the request body in JSON format.

        {
            "name": "Production",
            "description": "Production Pod",
            "primary": true,
            "connectionDetails": {
                "url": "https://servername.fa.us2.oraclecloud.com",
                "username": "epm_default_cloud_admin",
                "password": "password",
                "domain": ""
            }
        }
    
    

Example of Response Body

The following shows an example of the response body in JSON format.

    {
        "id": "ea2328ed-48d3-45dd-b033-fc447a5e2a77",
        "name": "Production",
        "description": "Production Pod",
        "connectionDetails": "{\"url\":\"https://servername.fa.us2.oraclecloud.com\",\"domain\":\"\",\"username\":\"epm_default_cloud_admin\",\"password\":\"daa64d99-9c88-4109-a75b-c9756b7d0796\"}",
        "links": [
            {
                "rel": "self",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/applications/e63e92c4-4727-4999-97f2-50498cb40ec7/connections/ea2328ed-48d3-45dd-b033-fc447a5e2a77"
            },
            {
                "rel": "edit",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/applications/e63e92c4-4727-4999-97f2-50498cb40ec7/connections/ea2328ed-48d3-45dd-b033-fc447a5e2a77",
                "method": "PUT"
            },
            {
                "rel": "testConnection",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/applications/e63e92c4-4727-4999-97f2-50498cb40ec7/connections/ea2328ed-48d3-45dd-b033-fc447a5e2a77/test",
                "method": "POST"
            },
            {
                "rel": "connectionResources",
                "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/applications/e63e92c4-4727-4999-97f2-50498cb40ec7/connections/ea2328ed-48d3-45dd-b033-fc447a5e2a77/resources",
                "templated": true,
                "method": "GET"
            }
        ],
        "connectionInfo": {
            "url": "https://servername.fa.us2.oraclecloud.com",
            "username": "epm_default_cloud_admin",
            "password": "daa64d99-9c88-4109-a75b-c9756b7d0796",
            "domain": ""
        },
        "primary": true
    }
Back to Top