Activate staged config changes

post

https://cloud-native-SBC-IP/config/v1/activate

Activate staged config changes. The staged changes are squashed and applied to the activated config, creating new revisions in changed topics and the top-level configuration object. The diff queries after the activation will start reporting these changes. If no staged config exist returns 404

Request

There are no request parameters for this operation.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

OK

404 Response

Not Found
Body ()
Root Schema : ApiValidationError
Type: object
Show Source
Nested Schema : errors
Type: array
Show Source
Nested Schema : Errors
Type: object
Show Source
Back to Top

Examples

Example of Accessing the API with cURL

The following example shows how to activate staged config changes by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST \
    --header "Accept: application/xml" \
    --header "Authorization: Bearer $TOKEN" \
    "https://${SBCIP}/config/v1/activate"

Example of Accessing the API with Python

The following example shows how to activate staged config changes by submitting a POST request on the REST resource using Python. This example assumes you have a valid token stored in the token variable. For an example of authenticating with Python, see Authenticate.

import requests
headers = { "Accept":"application/xml", "Authorization":"Bearer " + token }
url  = "https://" + sbcip + "/config/v1/activate"
resp = requests.post(url, headers=headers)

Example of the Response Body

This endpoint does not return a response body.

Back to Top