List delivery location configs
Call the listDeliveryLocationConfigs
operation to get a list of all the configured delivery destinations.
Any of the delivery destinations from this list can be used as a delivery destination for the createDelivery
operation.
Example
Request
Enter the following curl
command, remembering to replace the ${VARNAME}
variables with the appropriate values:
curl --location "${API_BASE_URL}/api/delivery/v1/deliveries/location-configs" \
--header "Accept: application/json, application/problem+json" \
--header "Authorization: Bearer ${API_ACCESS_TOKEN}"
Response
On success, returns a 200
status code and a JSON object containing an array of delivery location config objects.
{
"data": [
{
"ID": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"config": {
"endpoint": "https://s3.amazonaws.com",
"region": "eu-central-1",
"key_id": "ABCDE12345ABCDE12345",
"bucket": "example-bucket"
},
"method": "s3",
"status": "active"
},
{
"ID": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"config": {
"endpoint": "https://s3.amazonaws.com",
"region": "eu-central-1",
"key_id": "ABCDE12345ABCDE12345",
"bucket": "example-bucket"
},
"method": "s3",
"status": "active"
}
]
}