1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. vod
  5. Domain
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.vod.Domain

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 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 _default = new random.index.Integer("default", {
        min: 10000,
        max: 99999,
    });
    const defaultDomain = new alicloud.vod.Domain("default", {
        domainName: `example-${_default.result}.com`,
        scope: "domestic",
        sources: [{
            sourceType: "domain",
            sourceContent: "outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com",
            sourcePort: "443",
        }],
        tags: {
            Created: "terraform",
            For: "example",
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    default = random.index.Integer("default",
        min=10000,
        max=99999)
    default_domain = alicloud.vod.Domain("default",
        domain_name=f"example-{default['result']}.com",
        scope="domestic",
        sources=[{
            "source_type": "domain",
            "source_content": "outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com",
            "source_port": "443",
        }],
        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 {
    		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
    			Min: 10000,
    			Max: 99999,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vod.NewDomain(ctx, "default", &vod.DomainArgs{
    			DomainName: pulumi.Sprintf("example-%v.com", _default.Result),
    			Scope:      pulumi.String("domestic"),
    			Sources: vod.DomainSourceArray{
    				&vod.DomainSourceArgs{
    					SourceType:    pulumi.String("domain"),
    					SourceContent: pulumi.String("outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com"),
    					SourcePort:    pulumi.String("443"),
    				},
    			},
    			Tags: pulumi.StringMap{
    				"Created": pulumi.String("terraform"),
    				"For":     pulumi.String("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 @default = new Random.Index.Integer("default", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var defaultDomain = new AliCloud.Vod.Domain("default", new()
        {
            DomainName = $"example-{@default.Result}.com",
            Scope = "domestic",
            Sources = new[]
            {
                new AliCloud.Vod.Inputs.DomainSourceArgs
                {
                    SourceType = "domain",
                    SourceContent = "outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com",
                    SourcePort = "443",
                },
            },
            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.integer;
    import com.pulumi.random.IntegerArgs;
    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 default_ = new Integer("default", IntegerArgs.builder()
                .min(10000)
                .max(99999)
                .build());
    
            var defaultDomain = new Domain("defaultDomain", DomainArgs.builder()
                .domainName(String.format("example-%s.com", default_.result()))
                .scope("domestic")
                .sources(DomainSourceArgs.builder()
                    .sourceType("domain")
                    .sourceContent("outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com")
                    .sourcePort("443")
                    .build())
                .tags(Map.ofEntries(
                    Map.entry("Created", "terraform"),
                    Map.entry("For", "example")
                ))
                .build());
    
        }
    }
    
    resources:
      default:
        type: random:integer
        properties:
          min: 10000
          max: 99999
      defaultDomain:
        type: alicloud:vod:Domain
        name: default
        properties:
          domainName: example-${default.result}.com
          scope: domestic
          sources:
            - sourceType: domain
              sourceContent: outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com
              sourcePort: '443'
          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, str]] = 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.

    Constructor 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", "string" },
        },
        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.StringMap{
    		"string": pulumi.String("string"),
    	},
    	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", "string"))
        .topLevelDomain("string")
        .build());
    
    exampledomain_resource_resource_from_voddomain = alicloud.vod.Domain("exampledomainResourceResourceFromVoddomain",
        domain_name="string",
        sources=[{
            "source_content": "string",
            "source_port": "string",
            "source_type": "string",
            "source_priority": "string",
        }],
        check_url="string",
        scope="string",
        tags={
            "string": "string",
        },
        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: "string",
        },
        topLevelDomain: "string",
    });
    
    type: alicloud:vod:Domain
    properties:
        checkUrl: string
        domainName: string
        scope: string
        sources:
            - sourceContent: string
              sourcePort: string
              sourcePriority: string
              sourceType: string
        tags:
            string: string
        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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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, string>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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]string
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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,String>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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]: string}
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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, str]
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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<String>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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, str]] = 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, string>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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]string
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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,String>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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]: string}
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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, str]
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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<String>
    A mapping of tags to assign to the resource.

    • Key: It can be up to 64 characters in length. It cannot be a null string.
    • Value: It can be up to 128 characters in length. It can be a null string.
    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.66.0 published on Friday, Nov 15, 2024 by Pulumi