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¶
Retrieve the
TOKENandINSTANCE_IDas described in Retrieve Access Tokens.Set the website configuration parameters.
[artesca-os@bootstrap ~]$export ENDPOINT_PARAMS='"your_bucket_website_domain"' export DOMAIN='your_instance_domain'
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¶
Retrieve the
TOKENandINSTANCE_IDas described in Retrieve Access Tokens.Set the website configuration parameters.
[artesca-os@bootstrap ~]$export ENDPOINT_PARAMS='your_bucket_website_domain' export DOMAIN='your_instance_domain'
Send a
DELETErequest 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}"

