View

Retrieve a list of CDN Hostnames defined for the current account or customer, and id or server role. At least one of either ID or ServerRole must be specified

Tokens

This action requires the following tokens:

  • cdnhostname-read

Arguments

Required arguments are marked in bold, and optional arguments are marked in italics.

Argument Type Default Description
serverrole String   Server Role to filter on

Output

This action produces the following output on success:

An array containing zero or more elements, each one being an object containing the following fields:

Name Type Description
hostname String Hostname for this CustomHostname
serverrole String The name of the role to which the Hostname belongs
protocol String The protocol used

Errors

This action can return one of the default status codes, or one of the following status codes on error:

STATUS_ACCESS_DENIED (4)
You need to specify a valid Customer or Account to access this
STATUS_SERVER_ROLE_NOT_FOUND (134)
When the provided server role is not found
STATUS_CUSTOMHOSTNAME_NOT_FOUND (510)
The custom hostname was not found in the database