Update a dataplane
PUT/api/management/dataplanes/:id
Updates an existing dataplane.
Request
Path Parameters
id stringrequired
- application/json
Bodyrequired
datasets object[]
dataplaneTypestringrequired
Example:
exampleType
endpointPrefixstringrequired
Example:
/api/v1/dataplane
callbackAddressstringrequired
Example:
http://localhost/callback
managementAddressstringrequired
Example:
http://localhost/manage
managementTokenstringrequired
Example:
token123
catalogSynchronizationstringrequired
Possible values: [push
, pull
]
Example:
push
rolestringrequired
Possible values: [consumer
, provider
, both
]
Example:
consumer
identifierstringrequired
Example:
dp-12345
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
datasets object[]
dataplaneTypestringrequired
Example:
exampleType
endpointPrefixstringrequired
Example:
/api/v1/dataplane
callbackAddressstringrequired
Example:
http://localhost/callback
managementAddressstringrequired
Example:
http://localhost/manage
managementTokenstringrequired
Example:
token123
catalogSynchronizationstringrequired
Possible values: [push
, pull
]
Example:
push
rolestringrequired
Possible values: [consumer
, provider
, both
]
Example:
consumer
identifierstringrequired
Example:
dp-12345
{
"datasets": [
{
"id": "dataset-123",
"name": "Example Dataset"
}
],
"dataplaneType": "exampleType",
"endpointPrefix": "/api/v1/dataplane",
"callbackAddress": "http://localhost/callback",
"managementAddress": "http://localhost/manage",
"managementToken": "token123",
"catalogSynchronization": "push",
"role": "consumer",
"identifier": "dp-12345"
}
Invalid dataplane data
Forbidden
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
Example:
ResourceNotFound
statusstringrequired
Example:
404 Not Found
codenumberrequired
Example:
404
messageobject
Example:
The requested resource does not exist.
errorstring
Example:
Not Found
{
"name": "ResourceNotFound",
"status": "404 Not Found",
"code": 404,
"message": "The requested resource does not exist.",
"error": "Not Found"
}
Authorization: oauth2
name: oauth2type: oauth2scopes:controlplane_admin,controlplane_dataplane
flows: { "password": { "scopes": { "controlplane_admin": "controlplane_admin", "controlplane_dataplane": "controlplane_dataplane" } } }
- curl
- http
- CURL
curl -L -X PUT 'https://tsg.dataspac.es/api/management/dataplanes/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"datasets": [
{
"id": "dataset-123",
"name": "Example Dataset"
}
],
"dataplaneType": "exampleType",
"endpointPrefix": "/api/v1/dataplane",
"callbackAddress": "http://localhost/callback",
"managementAddress": "http://localhost/manage",
"managementToken": "token123",
"catalogSynchronization": "push",
"role": "consumer",
"identifier": "dp-12345"
}'