OpenCdnService

Last Updated: May 04, 2018

Description

Make sure that before using this interface, you fully know billing method and price of CDN. For more information, see Price overview.

Subscribe to the CDN service. Only after subscribing can you perform domain name operations.

  • A single user can only subscribe once.

  • Subscription restrictions: The account must have passed real-name registration.

Request parameters

Parameters Type Required Example values Description
Action String Yes OpenCdnService

The name of this interface. Value: OpenCdnService

InternetChargeType String Yes PayByTraffic

Service subscription billing method:

  • PayByTraffic
  • PayByBandwidth
If the user does not make a choice, the default charging type is PayByTraffic.

Return parameters

Parameters Type Example values Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The ID of the request.

Example

Request example

  1. https://cdn.aliyuncs.com?&Action=OpenCdnService&InternetChargeType=PayByBandwidth&<Public request parameter>

Normal return example

JSON format

  1. {
  2. "RequestId":"97C68796-EB7F-4D41-9D5B-12B909D76508"
  3. }

Exception return example

JSON format

  1. {
  2. "Code":"InternalError",
  3. "HostId":"cdn.aliyuncs.com",
  4. "Message":"The request processing has failed due to some unknown error.",
  5. "RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
  6. }

Error code

For more information, see Error code of this product.

Thank you! We've received your feedback.