# CdpResource Resource

Root resource for the CDPD Api calls.

### POST /cdp/createEnvironment

Create an environment in ECS

Request Parameters
name | type | description | default
--- | --- | --- | ---
serviceName | query |  | n/a

Request Body
media type | data type
--- | ---
application/json | ApiCreateEnvironment (JSON)

Response Body
media type | data type | description
--- | --- | ---
application/json | ApiCommand (JSON) | command info

### POST /cdp/remoteContext

Create or update the remote data context in the Workload cluster.

Request Body
media type | data type
--- | ---
application/json | ApiRemoteDataContext (JSON)

Response Body
media type | data type | description
--- | --- | ---
application/json | ApiRemoteDataContext (JSON) | json describing

### GET /cdp/remoteContext/byCluster/{clusterName}

Get a JSON for creating a remote data context in a Workload cluster.

Request Parameters
name | type | description | default
--- | --- | --- | ---
clusterName | path | The name of the DataContext. | n/a

Response Body
media type | data type | description
--- | --- | ---
application/json | ApiRemoteDataContext (JSON) | json describing

### GET /cdp/remoteContext/byContext/{dataContextName}

Get a JSON for creating a remote data context in a Workload cluster.

Request Parameters
name | type | description | default
--- | --- | --- | ---
dataContextName | path | The name of the DataContext. | n/a

Response Body
media type | data type | description
--- | --- | ---
application/json | ApiRemoteDataContext (JSON) | json describing