Manage Website Endpoints

To set up ARTESCA with website endpoints, you must add or delete the website configuration for the instance.

Create a Website Configuration

  1. Retrieve the TOKEN and INSTANCE_ID as described in Retrieve Access Tokens.

  2. Set the website configuration parameters.

    [artesca-os@bootstrap ~]$
    
    export ENDPOINT_PARAMS='"your_bucket_website_domain"'
    export DOMAIN='your_instance_domain'
    
  3. Send a POST request to the management API.

    [artesca-os@bootstrap ~]$
    
    curl -s -k -X POST \
        -H "X-Authentication-Token: ${TOKEN}" \
        -H "Content-Type: application/json" \
        -d "${ENDPOINT_PARAMS}" \
        "https://management.${DOMAIN}/api/v1/config/${INSTANCE_ID}/website/endpoint"
    

Follow the PUT Bucket Website instructions to set the website configuration parameters at the bucket level.

Delete a Website Configuration

  1. Retrieve the TOKEN and INSTANCE_ID as described in Retrieve Access Tokens.

  2. Set the website configuration parameters.

    [artesca-os@bootstrap ~]$
    
    export ENDPOINT_PARAMS='your_bucket_website_domain'
    export DOMAIN='your_instance_domain'
    
  3. Send a DELETE request to the management API.

    [artesca-os@bootstrap ~]$
    
    curl -s -k -X DELETE \
          -H "X-Authentication-Token: ${TOKEN}" \
          -H "Content-Type: application/json" \
          "https://management.${DOMAIN}/api/v1/config/${INSTANCE_ID}/website/${ENDPOINT_PARAMS}"