Skip to content

DomainProps

Properties for defining a Domain.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cdn-domain

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcdn"
&alicloudroscdkcdn.DomainProps {
    CdnType: interface{},
    DomainName: interface{},
    CheckUrl: interface{},
    OriginServers: interface{},
    ResourceGroupId: interface{},
    Scope: interface{},
    Sources: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkcdn.RosDomain.TagsProperty,
    TopLevelDomain: interface{},
}

Properties

Name Type Description
CdnType interface{} Property cdnType: The business type of the domain name.
DomainName interface{} Property domainName: The CDN domain name.
CheckUrl interface{} Property checkUrl: The health check URL.
OriginServers interface{} Property originServers: The list of origin URLs.
ResourceGroupId interface{} Property resourceGroupId: The ID of the resource group.
Scope interface{} Property scope: The acceleration region.
Sources interface{} Property sources: The list of origin URLs.
Tags *[]TagsProperty Property tags: Tags to attach to instance.
TopLevelDomain interface{} Property topLevelDomain: The top-level domain, which can only be configured by users on the whitelist.

CdnTypeRequired

CdnType interface{}
  • Type: interface{}

Property cdnType: The business type of the domain name.

Valid values:

  • web: images and small files.
  • download: large files.
  • video: on-demand video and audio streaming.

DomainNameRequired

DomainName interface{}
  • Type: interface{}

Property domainName: The CDN domain name.

Wildcard domain names that start with periods (.) are supported. For example, .a.com.


CheckUrlOptional

CheckUrl interface{}
  • Type: interface{}

Property checkUrl: The health check URL.


OriginServersOptional

OriginServers interface{}
  • Type: interface{}

Property originServers: The list of origin URLs.

It has the same function as Sources, but has a higher priority than it.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The ID of the resource group.

If this is left blank, the system automatically fills in the ID of the default resource group.


ScopeOptional

Scope interface{}
  • Type: interface{}

Property scope: The acceleration region.

Valid values:

  • domestic (default): Chinese mainland only.
  • overseas: global (excluding the Chinese mainland).
  • global: global.

SourcesOptional

Sources interface{}
  • Type: interface{}

Property sources: The list of origin URLs.


TagsOptional

Tags *[]TagsProperty

Property tags: Tags to attach to instance.

Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.


TopLevelDomainOptional

TopLevelDomain interface{}
  • Type: interface{}

Property topLevelDomain: The top-level domain, which can only be configured by users on the whitelist.