1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vod
  5. Domain
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.vod.Domain

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Provides a VOD Domain resource.

    For information about VOD Domain and how to use it, see What is Domain.

    NOTE: Available since v1.136.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const defaultRandomInteger = new random.RandomInteger("defaultRandomInteger", {
        max: 99999,
        min: 10000,
    });
    const defaultDomain = new alicloud.vod.Domain("defaultDomain", {
        domainName: pulumi.interpolate`example-${defaultRandomInteger.result}.com`,
        scope: "domestic",
        sources: [{
            sourceContent: "outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com",
            sourcePort: "443",
            sourceType: "domain",
        }],
        tags: {
            Created: "terraform",
            For: "example",
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    default_random_integer = random.RandomInteger("defaultRandomInteger",
        max=99999,
        min=10000)
    default_domain = alicloud.vod.Domain("defaultDomain",
        domain_name=default_random_integer.result.apply(lambda result: f"example-{result}.com"),
        scope="domestic",
        sources=[alicloud.vod.DomainSourceArgs(
            source_content="outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com",
            source_port="443",
            source_type="domain",
        )],
        tags={
            "Created": "terraform",
            "For": "example",
        })
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vod"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		defaultRandomInteger, err := random.NewRandomInteger(ctx, "defaultRandomInteger", &random.RandomIntegerArgs{
    			Max: pulumi.Int(99999),
    			Min: pulumi.Int(10000),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vod.NewDomain(ctx, "defaultDomain", &vod.DomainArgs{
    			DomainName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) {
    				return fmt.Sprintf("example-%v.com", result), nil
    			}).(pulumi.StringOutput),
    			Scope: pulumi.String("domestic"),
    			Sources: vod.DomainSourceArray{
    				&vod.DomainSourceArgs{
    					SourceContent: pulumi.String("outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com"),
    					SourcePort:    pulumi.String("443"),
    					SourceType:    pulumi.String("domain"),
    				},
    			},
    			Tags: pulumi.Map{
    				"Created": pulumi.Any("terraform"),
    				"For":     pulumi.Any("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var defaultRandomInteger = new Random.RandomInteger("defaultRandomInteger", new()
        {
            Max = 99999,
            Min = 10000,
        });
    
        var defaultDomain = new AliCloud.Vod.Domain("defaultDomain", new()
        {
            DomainName = defaultRandomInteger.Result.Apply(result => $"example-{result}.com"),
            Scope = "domestic",
            Sources = new[]
            {
                new AliCloud.Vod.Inputs.DomainSourceArgs
                {
                    SourceContent = "outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com",
                    SourcePort = "443",
                    SourceType = "domain",
                },
            },
            Tags = 
            {
                { "Created", "terraform" },
                { "For", "example" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.RandomInteger;
    import com.pulumi.random.RandomIntegerArgs;
    import com.pulumi.alicloud.vod.Domain;
    import com.pulumi.alicloud.vod.DomainArgs;
    import com.pulumi.alicloud.vod.inputs.DomainSourceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var defaultRandomInteger = new RandomInteger("defaultRandomInteger", RandomIntegerArgs.builder()        
                .max(99999)
                .min(10000)
                .build());
    
            var defaultDomain = new Domain("defaultDomain", DomainArgs.builder()        
                .domainName(defaultRandomInteger.result().applyValue(result -> String.format("example-%s.com", result)))
                .scope("domestic")
                .sources(DomainSourceArgs.builder()
                    .sourceContent("outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com")
                    .sourcePort("443")
                    .sourceType("domain")
                    .build())
                .tags(Map.ofEntries(
                    Map.entry("Created", "terraform"),
                    Map.entry("For", "example")
                ))
                .build());
    
        }
    }
    
    resources:
      defaultRandomInteger:
        type: random:RandomInteger
        properties:
          max: 99999
          min: 10000
      defaultDomain:
        type: alicloud:vod:Domain
        properties:
          domainName: example-${defaultRandomInteger.result}.com
          scope: domestic
          sources:
            - sourceContent: outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com
              sourcePort: '443'
              sourceType: domain
          tags:
            Created: terraform
            For: example
    

    Create Domain Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Domain(name: string, args: DomainArgs, opts?: CustomResourceOptions);
    @overload
    def Domain(resource_name: str,
               args: DomainArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Domain(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               domain_name: Optional[str] = None,
               sources: Optional[Sequence[DomainSourceArgs]] = None,
               check_url: Optional[str] = None,
               scope: Optional[str] = None,
               tags: Optional[Mapping[str, Any]] = None,
               top_level_domain: Optional[str] = None)
    func NewDomain(ctx *Context, name string, args DomainArgs, opts ...ResourceOption) (*Domain, error)
    public Domain(string name, DomainArgs args, CustomResourceOptions? opts = null)
    public Domain(String name, DomainArgs args)
    public Domain(String name, DomainArgs args, CustomResourceOptions options)
    
    type: alicloud:vod:Domain
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DomainArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DomainArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var exampledomainResourceResourceFromVoddomain = new AliCloud.Vod.Domain("exampledomainResourceResourceFromVoddomain", new()
    {
        DomainName = "string",
        Sources = new[]
        {
            new AliCloud.Vod.Inputs.DomainSourceArgs
            {
                SourceContent = "string",
                SourcePort = "string",
                SourceType = "string",
                SourcePriority = "string",
            },
        },
        CheckUrl = "string",
        Scope = "string",
        Tags = 
        {
            { "string", "any" },
        },
        TopLevelDomain = "string",
    });
    
    example, err := vod.NewDomain(ctx, "exampledomainResourceResourceFromVoddomain", &vod.DomainArgs{
    	DomainName: pulumi.String("string"),
    	Sources: vod.DomainSourceArray{
    		&vod.DomainSourceArgs{
    			SourceContent:  pulumi.String("string"),
    			SourcePort:     pulumi.String("string"),
    			SourceType:     pulumi.String("string"),
    			SourcePriority: pulumi.String("string"),
    		},
    	},
    	CheckUrl: pulumi.String("string"),
    	Scope:    pulumi.String("string"),
    	Tags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	TopLevelDomain: pulumi.String("string"),
    })
    
    var exampledomainResourceResourceFromVoddomain = new Domain("exampledomainResourceResourceFromVoddomain", DomainArgs.builder()        
        .domainName("string")
        .sources(DomainSourceArgs.builder()
            .sourceContent("string")
            .sourcePort("string")
            .sourceType("string")
            .sourcePriority("string")
            .build())
        .checkUrl("string")
        .scope("string")
        .tags(Map.of("string", "any"))
        .topLevelDomain("string")
        .build());
    
    exampledomain_resource_resource_from_voddomain = alicloud.vod.Domain("exampledomainResourceResourceFromVoddomain",
        domain_name="string",
        sources=[alicloud.vod.DomainSourceArgs(
            source_content="string",
            source_port="string",
            source_type="string",
            source_priority="string",
        )],
        check_url="string",
        scope="string",
        tags={
            "string": "any",
        },
        top_level_domain="string")
    
    const exampledomainResourceResourceFromVoddomain = new alicloud.vod.Domain("exampledomainResourceResourceFromVoddomain", {
        domainName: "string",
        sources: [{
            sourceContent: "string",
            sourcePort: "string",
            sourceType: "string",
            sourcePriority: "string",
        }],
        checkUrl: "string",
        scope: "string",
        tags: {
            string: "any",
        },
        topLevelDomain: "string",
    });
    
    type: alicloud:vod:Domain
    properties:
        checkUrl: string
        domainName: string
        scope: string
        sources:
            - sourceContent: string
              sourcePort: string
              sourcePriority: string
              sourceType: string
        tags:
            string: any
        topLevelDomain: string
    

    Domain Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Domain resource accepts the following input properties:

    DomainName string
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    Sources List<Pulumi.AliCloud.Vod.Inputs.DomainSource>
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    CheckUrl string
    The URL that is used for health checks.
    Scope string
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.
    TopLevelDomain string
    The top-level domain name.
    DomainName string
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    Sources []DomainSourceArgs
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    CheckUrl string
    The URL that is used for health checks.
    Scope string
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.
    TopLevelDomain string
    The top-level domain name.
    domainName String
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    sources List<DomainSource>
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    checkUrl String
    The URL that is used for health checks.
    scope String
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    tags Map<String,Object>
    A mapping of tags to assign to the resource.
    topLevelDomain String
    The top-level domain name.
    domainName string
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    sources DomainSource[]
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    checkUrl string
    The URL that is used for health checks.
    scope string
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.
    topLevelDomain string
    The top-level domain name.
    domain_name str
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    sources Sequence[DomainSourceArgs]
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    check_url str
    The URL that is used for health checks.
    scope str
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.
    top_level_domain str
    The top-level domain name.
    domainName String
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    sources List<Property Map>
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    checkUrl String
    The URL that is used for health checks.
    scope String
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    tags Map<Any>
    A mapping of tags to assign to the resource.
    topLevelDomain String
    The top-level domain name.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Domain resource produces the following output properties:

    CertName string
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    Cname string
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    Description string
    The description of the domain name for CDN.
    GmtCreated string
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    GmtModified string
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    SslProtocol string
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    SslPub string
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    Status string
    The status of the domain name for CDN. Valid values:
    Weight string
    The weight of the origin server.
    CertName string
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    Cname string
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    Description string
    The description of the domain name for CDN.
    GmtCreated string
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    GmtModified string
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    SslProtocol string
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    SslPub string
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    Status string
    The status of the domain name for CDN. Valid values:
    Weight string
    The weight of the origin server.
    certName String
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    cname String
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    description String
    The description of the domain name for CDN.
    gmtCreated String
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    gmtModified String
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    sslProtocol String
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    sslPub String
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    status String
    The status of the domain name for CDN. Valid values:
    weight String
    The weight of the origin server.
    certName string
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    cname string
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    description string
    The description of the domain name for CDN.
    gmtCreated string
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    gmtModified string
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    sslProtocol string
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    sslPub string
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    status string
    The status of the domain name for CDN. Valid values:
    weight string
    The weight of the origin server.
    cert_name str
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    cname str
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    description str
    The description of the domain name for CDN.
    gmt_created str
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    gmt_modified str
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    ssl_protocol str
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    ssl_pub str
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    status str
    The status of the domain name for CDN. Valid values:
    weight str
    The weight of the origin server.
    certName String
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    cname String
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    description String
    The description of the domain name for CDN.
    gmtCreated String
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    gmtModified String
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    sslProtocol String
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    sslPub String
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    status String
    The status of the domain name for CDN. Valid values:
    weight String
    The weight of the origin server.

    Look up Existing Domain Resource

    Get an existing Domain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DomainState, opts?: CustomResourceOptions): Domain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cert_name: Optional[str] = None,
            check_url: Optional[str] = None,
            cname: Optional[str] = None,
            description: Optional[str] = None,
            domain_name: Optional[str] = None,
            gmt_created: Optional[str] = None,
            gmt_modified: Optional[str] = None,
            scope: Optional[str] = None,
            sources: Optional[Sequence[DomainSourceArgs]] = None,
            ssl_protocol: Optional[str] = None,
            ssl_pub: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, Any]] = None,
            top_level_domain: Optional[str] = None,
            weight: Optional[str] = None) -> Domain
    func GetDomain(ctx *Context, name string, id IDInput, state *DomainState, opts ...ResourceOption) (*Domain, error)
    public static Domain Get(string name, Input<string> id, DomainState? state, CustomResourceOptions? opts = null)
    public static Domain get(String name, Output<String> id, DomainState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CertName string
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    CheckUrl string
    The URL that is used for health checks.
    Cname string
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    Description string
    The description of the domain name for CDN.
    DomainName string
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    GmtCreated string
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    GmtModified string
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Scope string
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    Sources List<Pulumi.AliCloud.Vod.Inputs.DomainSource>
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    SslProtocol string
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    SslPub string
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    Status string
    The status of the domain name for CDN. Valid values:
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.
    TopLevelDomain string
    The top-level domain name.
    Weight string
    The weight of the origin server.
    CertName string
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    CheckUrl string
    The URL that is used for health checks.
    Cname string
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    Description string
    The description of the domain name for CDN.
    DomainName string
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    GmtCreated string
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    GmtModified string
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Scope string
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    Sources []DomainSourceArgs
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    SslProtocol string
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    SslPub string
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    Status string
    The status of the domain name for CDN. Valid values:
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.
    TopLevelDomain string
    The top-level domain name.
    Weight string
    The weight of the origin server.
    certName String
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    checkUrl String
    The URL that is used for health checks.
    cname String
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    description String
    The description of the domain name for CDN.
    domainName String
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    gmtCreated String
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    gmtModified String
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    scope String
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    sources List<DomainSource>
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    sslProtocol String
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    sslPub String
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    status String
    The status of the domain name for CDN. Valid values:
    tags Map<String,Object>
    A mapping of tags to assign to the resource.
    topLevelDomain String
    The top-level domain name.
    weight String
    The weight of the origin server.
    certName string
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    checkUrl string
    The URL that is used for health checks.
    cname string
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    description string
    The description of the domain name for CDN.
    domainName string
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    gmtCreated string
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    gmtModified string
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    scope string
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    sources DomainSource[]
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    sslProtocol string
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    sslPub string
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    status string
    The status of the domain name for CDN. Valid values:
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.
    topLevelDomain string
    The top-level domain name.
    weight string
    The weight of the origin server.
    cert_name str
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    check_url str
    The URL that is used for health checks.
    cname str
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    description str
    The description of the domain name for CDN.
    domain_name str
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    gmt_created str
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    gmt_modified str
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    scope str
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    sources Sequence[DomainSourceArgs]
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    ssl_protocol str
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    ssl_pub str
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    status str
    The status of the domain name for CDN. Valid values:
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.
    top_level_domain str
    The top-level domain name.
    weight str
    The weight of the origin server.
    certName String
    The name of the certificate. The value of this parameter is returned if HTTPS is enabled.
    checkUrl String
    The URL that is used for health checks.
    cname String
    The CNAME that is assigned to the domain name for CDN. You must add a CNAME record in the system of your Domain Name System (DNS) service provider to map the domain name for CDN to the CNAME.
    description String
    The description of the domain name for CDN.
    domainName String
    The domain name for CDN that you want to add to ApsaraVideo VOD. Wildcard domain names are supported. Start the domain name with a period (.). Example: .example.com..
    gmtCreated String
    The time when the domain name for CDN was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    gmtModified String
    The last time when the domain name for CDN was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    scope String
    This parameter is applicable to users of level 3 or higher in mainland China and users outside mainland China. Valid values:
    sources List<Property Map>
    The information about the address of the origin server. For more information about the Sources parameter, See the following Block sources.
    sslProtocol String
    Indicates whether the Secure Sockets Layer (SSL) certificate is enabled. Valid values: on,off.
    sslPub String
    The public key of the certificate. The value of this parameter is returned if HTTPS is enabled.
    status String
    The status of the domain name for CDN. Valid values:
    tags Map<Any>
    A mapping of tags to assign to the resource.
    topLevelDomain String
    The top-level domain name.
    weight String
    The weight of the origin server.

    Supporting Types

    DomainSource, DomainSourceArgs

    SourceContent string
    The address of the origin server. You can specify an IP address or a domain name.
    SourcePort string
    The port number. You can specify port 443 or 80. Default value: 80. If you specify port 443, Alibaba Cloud CDN communicates with the origin server over HTTPS. You can also customize a port.
    SourceType string
    The type of the origin server. Valid values:
    SourcePriority string
    The priority of the origin server if multiple origin servers are specified. Valid values: 20 and 30. Default value: 20. A value of 20 indicates that the origin server is the primary origin server. A value of 30 indicates that the origin server is a secondary origin server.
    SourceContent string
    The address of the origin server. You can specify an IP address or a domain name.
    SourcePort string
    The port number. You can specify port 443 or 80. Default value: 80. If you specify port 443, Alibaba Cloud CDN communicates with the origin server over HTTPS. You can also customize a port.
    SourceType string
    The type of the origin server. Valid values:
    SourcePriority string
    The priority of the origin server if multiple origin servers are specified. Valid values: 20 and 30. Default value: 20. A value of 20 indicates that the origin server is the primary origin server. A value of 30 indicates that the origin server is a secondary origin server.
    sourceContent String
    The address of the origin server. You can specify an IP address or a domain name.
    sourcePort String
    The port number. You can specify port 443 or 80. Default value: 80. If you specify port 443, Alibaba Cloud CDN communicates with the origin server over HTTPS. You can also customize a port.
    sourceType String
    The type of the origin server. Valid values:
    sourcePriority String
    The priority of the origin server if multiple origin servers are specified. Valid values: 20 and 30. Default value: 20. A value of 20 indicates that the origin server is the primary origin server. A value of 30 indicates that the origin server is a secondary origin server.
    sourceContent string
    The address of the origin server. You can specify an IP address or a domain name.
    sourcePort string
    The port number. You can specify port 443 or 80. Default value: 80. If you specify port 443, Alibaba Cloud CDN communicates with the origin server over HTTPS. You can also customize a port.
    sourceType string
    The type of the origin server. Valid values:
    sourcePriority string
    The priority of the origin server if multiple origin servers are specified. Valid values: 20 and 30. Default value: 20. A value of 20 indicates that the origin server is the primary origin server. A value of 30 indicates that the origin server is a secondary origin server.
    source_content str
    The address of the origin server. You can specify an IP address or a domain name.
    source_port str
    The port number. You can specify port 443 or 80. Default value: 80. If you specify port 443, Alibaba Cloud CDN communicates with the origin server over HTTPS. You can also customize a port.
    source_type str
    The type of the origin server. Valid values:
    source_priority str
    The priority of the origin server if multiple origin servers are specified. Valid values: 20 and 30. Default value: 20. A value of 20 indicates that the origin server is the primary origin server. A value of 30 indicates that the origin server is a secondary origin server.
    sourceContent String
    The address of the origin server. You can specify an IP address or a domain name.
    sourcePort String
    The port number. You can specify port 443 or 80. Default value: 80. If you specify port 443, Alibaba Cloud CDN communicates with the origin server over HTTPS. You can also customize a port.
    sourceType String
    The type of the origin server. Valid values:
    sourcePriority String
    The priority of the origin server if multiple origin servers are specified. Valid values: 20 and 30. Default value: 20. A value of 20 indicates that the origin server is the primary origin server. A value of 30 indicates that the origin server is a secondary origin server.

    Import

    VOD Domain can be imported using the id, e.g.

    $ pulumi import alicloud:vod/domain:Domain example <domain_name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi