Create AWS Origin

Posthttps://api.cdn77.com/v3/origin/aws

Request body≥1 required

  • aws_access_key_idstring

    Located in the Security Credentials section of your AWS account.

  • aws_access_key_secretstring

    Located in the Security Credentials section of your AWS account.

  • aws_regionstring

    Located in the Security Credentials section of your AWS account. Possibly stored as AWS_DEFAULT_REGION.

  • base_dirstring

    Directory of the stored content on your AWS Origin. Maximum length is 255. characters

  • labelstringrequired

    The label helps you to identify your AWS Origin.

  • notestring

    Optional note for the Origin.

  • schemestring

    Available values: http, https

  • hoststringrequired

    AWS Origin host without scheme and port. Can be a domain name or an IP address.

  • portinteger

    AWS Origin port. If not specified, the default scheme port is used. Allowed range is between 1 and 65535.

Example of the request body
{
  "aws_access_key_id": "KLAMIDYDRAP8CJYC1DN",
  "aws_access_key_secret": "3a1F8jM+xJyDkHdUQazbcq5mDI2gW0vFsFbLi6PW",
  "aws_region": "us-east-1",
  "base_dir": "/pictures/images",
  "label": "My AWS Origin",
  "note": "Note for my Origin",
  "scheme": "https",
  "host": "my.s3.amazonaws.com",
  "port": 1000
}

Responses

AWS Origin for CDN Resource setup was created.

Response parameters

  • cdnsarray of objects

    List of all CDN Resources assigned to the Origin.

  • idstring

    Origin ID.

  • labelstring

    Origin label.

  • notestring

    Optional note for the Origin.

  • schemestring

    Available values: http, https

  • aws_access_key_idstring

    Located in the Security Credentials section of your AWS account.

  • aws_regionstring

    Located in the Security Credentials section of your AWS account. Possibly stored as AWS_DEFAULT_REGION.

  • base_dirstring

    Directory of the stored content on your AWS Origin. Maximum length is 255 characters.

  • hoststring

    AWS Origin host without scheme and port. Can be a domain name or an IP address.

  • portinteger

    AWS Origin port. If not specified, the default scheme port is used. Allowed range is between 1 and 65535.

  • typestring

    Available values: aws, object-storage, storage, url

Example of the response
{
  "cdns": [
    {
      "id": 1234567890,
      "label": "My cdn"
    }
  ],
  "id": "e56564d1-8d3e-4457-93a6-082b054bc736",
  "label": "My origin",
  "note": "Note for my Origin",
  "scheme": "https",
  "aws_access_key_id": "KLAMIDYDRAP8CJYC1DN",
  "aws_region": "us-east-1",
  "base_dir": "/pictures/images",
  "host": "my.s3.amazonaws.com",
  "port": 1000,
  "type": "aws"
}
Can’t find what you are looking for?