Create an S3 Endpoint

Create an S3 Endpoint from the UI

  1. From the Zenko home screen, select the Data Services tab.

  2. Click the + Create Data Service button.

    ../../_images/create_endpoint.png
  3. Enter a descriptive Hostname and select a location from the Select Storage Location drop down menu.

    Note

    If no location is specified when creating a bucket from the S3-API, this endpoint location will be used to store objects.

    ../../_images/create_endpoint_options.png
  4. Click the Create button. The Deploying Data Service spinner appears.

  5. Check that the created endpoint is listed.

    ../../_images/endpoint_created.png

Create an S3 Endpoint from the Command Line

  1. Retrieve tokens as described in Retrieve Access Tokens.

  2. Define a hostname. For more information refer to:

    ENDPOINT_HOSTNAME="hostname"
    
  3. Define storage location. For more information refer to Add a Storage Location.

    LOCATION_NAME="location"
    
  4. Issue the following variable declarations and commands:

    ENDPOINT_PARAMS=$(
        echo '{}' |
        jq -c "
            .hostname=\"${ENDPOINT_HOSTNAME}\" |
            .locationName=\"${LOCATION_NAME}\"
        "
    )
    
    curl -s -k -X POST \
        -H "X-Authentication-Token: ${TOKEN}" \
        -H "Content-Type: application/json" \
        -d "${ENDPOINT_PARAMS}" \
        "https://management.zenko.workloadplane.scality.local/api/v1/config/${INSTANCE_ID}/endpoint" | \
        jq '.'