Delete an S3 EndpointΒΆ

  1. Click Data Management on the top menu.

  2. From the Data Services page, click the trash can icon next to the endpoint you want to delete to open the Confirmation dialog box.

  3. Click Delete to confirm the deletion. The Deleting Data Service message displays.

  4. Wait for the Deleting Data Service message to disappear and check that the deleted endpoint is no longer listed.

  1. Retrieve tokens as described in Retrieve Access Tokens.

  2. Retrieve the list of all endpoints and hostnames.

    [artesca-os@bootstrap ~]$
    
    sudo kubectl --kubeconfig=/etc/kubernetes/admin.conf \
    -n zenko get zenkoconfigurationoverlay -o \
    jsonpath='{.items[-1].spec.s3API.endpoints[*]}' \
    --sort-by='{.metadata.creationTimestamp}'
    
  3. Select the hostname to delete.

    [artesca-os@bootstrap ~]$
    
    HOSTNAME="hostname to delete"
    
  4. Send a delete request to the management API.

    Note

    If you have changed the default domain of your ARTESCA-installation, you must reflect that change in the following command.

    [artesca-os@bootstrap ~]$
    
    curl -s -k -X DELETE -H "X-Authentication-Token: ${TOKEN}" \
    "https://management.<base-domain-name>/api/v1/config/${INSTANCE_ID}/endpoint/${HOSTNAME}"
    
  5. Check that the endpoint has been deleted.

    [artesca-os@bootstrap ~]$
    
    sudo kubectl --kubeconfig=/etc/kubernetes/admin.conf -n zenko \
    get zenkoconfigurationoverlay -o \
    jsonpath='{range .items[-1].spec.s3API.endpoints[*]}{}{"\n"}{end}' \
    --sort-by='{.metadata.creationTimestamp}'