import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::CDN::Domain */ export declare function getDomain(args: GetDomainArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDomain. */ export interface GetDomainArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getDomain. */ export interface GetDomainResult { /** * Indicates the configuration module for the 'regional access control' feature. This feature is disabled by default. */ readonly areaAccessRule: outputs.cdn.GetDomainAreaAccessRule; /** * Indicates the backup origin server list configured for this domain. If no backup origin server is configured for this domain, the parameter value is null. */ readonly backupOrigins: string[]; /** * Indicates the configuration module for the 'browser cache' feature. This feature is disabled by default. The parameter value is a list of rules, described as follows: Each list element is a cache rule configuration. You can create up to 50 rules. The order of elements in the list determines the priority of the corresponding rules. The rule at the top of the list has the highest priority. If you create multiple rules, pay attention to whether there are containment relationships between rules. If containment exists, rules with a broader scope should appear after those with a narrower scope. */ readonly browserCaches: outputs.cdn.GetDomainBrowserCach[]; /** * Specifies the configuration module for the 'shared cache' feature. This feature is disabled by default. */ readonly cacheHost: outputs.cdn.GetDomainCacheHost; /** * Indicates the configuration module for the 'cache key' feature. This feature is disabled by default. The parameter value is a list of rules, described as follows: Each list element is a cache key rule configuration. You can create up to 50 rules. The order of elements in the list determines the priority of the corresponding rules. The rules in the list have the highest priority. If you create multiple rules, pay attention to whether there is any inclusion relationship between rules. If inclusion exists, rules with a broader scope should appear after those with a narrower scope. */ readonly cacheKeys: outputs.cdn.GetDomainCacheKey[]; /** * Indicates the role of this domain in the 'shared cache' configuration. The parameter has the following values: target*host: indicates the 'target domain'. cache*shared_on: indicates the 'configured domain'. If this domain is not included in any 'shared cache' configuration, the parameter value is an empty string (''). */ readonly cacheShared: string; /** * If CacheShared is cache*shared*on, this parameter indicates the 'Target Domain' in the 'Shared Cache' configuration for this domain name. If CacheShared is target_host, this parameter is empty (""). */ readonly cacheSharedTargetHost: string; /** * Represents the configuration module for the 'Cache Rule' feature. This feature is disabled by default, meaning no custom rules are created. The list can contain up to 50 rules. The order of rules in the list defines their priority, with the first rule having the highest priority. The filter in each rule specifies the scope of the rule. If you create multiple rules, rules with a broader scope should appear after those with a narrower scope. */ readonly caches: outputs.cdn.GetDomainCach[]; /** * Indicates the CNAME assigned by the content delivery network to the acceleration domain name. */ readonly cname: string; /** * Represents the configuration module for the 'Smart Compression' feature. This feature is disabled by default. */ readonly compression: outputs.cdn.GetDomainCompression; /** * Specifies the configuration module for the 'Conditional Origin' feature. */ readonly conditionalOrigin: outputs.cdn.GetDomainConditionalOrigin; /** * Indicates the creation time of this accelerated domain name, in Unix timestamp format. */ readonly createdTime: number; /** * Indicates the configuration module for the "Custom Error Page" feature. This feature is disabled by default. */ readonly customErrorPage: outputs.cdn.GetDomainCustomErrorPage; /** * Represents the configuration module for the 'Custom Header Allowlist and Blocklist' feature. This feature is disabled by default. */ readonly customizeAccessRule: outputs.cdn.GetDomainCustomizeAccessRule; /** * Indicates the acceleration domain name. */ readonly domain: string; /** * Indicates the lock status of this domain name. */ readonly domainLock: outputs.cdn.GetDomainDomainLock; /** * Represents the configuration module for the 'Download Speed Limit' feature. This feature is disabled by default. */ readonly downloadSpeedLimit: outputs.cdn.GetDomainDownloadSpeedLimit; /** * Specifies whether to enable the 'origin redirect follow' feature. The parameter values are: true: enable the feature; false: disable the feature. The default value is false. */ readonly followRedirect: boolean; /** * Represents the configuration module for the 'Force HTTPS Redirect to HTTP' feature. This feature is disabled by default. */ readonly httpForcedRedirect: outputs.cdn.GetDomainHttpForcedRedirect; /** * Indicates the HTTPS configuration module. This feature is disabled by default. */ readonly https: outputs.cdn.GetDomainHttps; /** * Indicates the configuration module for the IPv6 feature. */ readonly iPv6: outputs.cdn.GetDomainIPv6; /** * Uniquely identifies the resource. */ readonly id: string; /** * Specifies the configuration module for the 'IP allowlist and blocklist' feature. This feature is disabled by default. There are two configuration methods: Standard configuration: Specify RuleType and Ip to configure the current domain. Global configuration: Specify SharedConfig to use a global configuration. The global configuration is the allowlist feature. You can only choose one configuration method. */ readonly ipAccessRule: outputs.cdn.GetDomainIpAccessRule; /** * Indicates whether the domain is a conflicting domain. In CDN, each domain is unique. If you need to add a domain that already exists under another primary account, you must submit a ticket. If you successfully add the domain under your primary account, it becomes a conflicting domain. This parameter has the following values: true: the domain is a conflicting domain. false: the domain is not a conflicting domain. */ readonly isConflictDomain: boolean; /** * Indicates whether the configuration for this domain name can be changed. The parameter values are: on: Allowed. off: Not allowed. */ readonly lockStatus: string; /** * Represents the configuration module for the 'Disable HTTP Method' feature. This feature is disabled by default. */ readonly methodDeniedRule: outputs.cdn.GetDomainMethodDeniedRule; /** * Indicates the configuration module for the multi-range feature. This feature is disabled by default */ readonly multiRange: outputs.cdn.GetDomainMultiRange; /** * Indicates the configuration module for the 'status code cache' feature. This feature is disabled by default. The parameter value is a list, as explained below: Each list element is a cache rule configuration. You can create up to 50 rules. The order of elements in the list determines the priority of the corresponding rules. The first rule in the list has the highest priority. If you create multiple rules, pay attention to whether there is containment between rules. If containment exists, rules with a broader scope should appear after rules with a narrower scope. */ readonly negativeCaches: outputs.cdn.GetDomainNegativeCach[]; /** * Indicates the configuration module for the 'offline cache' feature. */ readonly offlineCache: outputs.cdn.GetDomainOfflineCache; /** * Indicates the configuration module for the 'Origin allowlist and blacklist' feature. This feature is disabled by default. */ readonly originAccessRule: outputs.cdn.GetDomainOriginAccessRule; /** * Represents the rule list for the 'Origin Parameters' configuration module. The list can contain up to 50 rules. Each rule includes a filter (Condition) and an action performed by the CDN (OriginArgAction). The order of rules in the list defines their priority. The first rule in the list has the highest priority. The filter in each rule defines the scope of the rule. If you create multiple rules, rules with a broader scope should appear after those with a narrower scope. When a user request is received, the CDN matches the request against the rules in order of priority, from highest to lowest. If the request matches a rule, the CDN stops processing the remaining rules. You must add the following preset rule at the end of the rule list. You cannot modify the Condition in this rule, but you can change the configuration in OriginArgAction. */ readonly originArgs: outputs.cdn.GetDomainOriginArg[]; /** * Origin certificate validation */ readonly originCertCheck: outputs.cdn.GetDomainOriginCertCheck; /** * If there are multiple sites on the origin server, this parameter specifies the domain name accessed by the origin request. This parameter applies to all origin configurations, but has lower priority than the OriginHost parameter in the origin configuration. The default value of this parameter is the same as Domain. If the origin is an object storage bucket, you do not need to specify this parameter. Its default value is the same as the Address in the origin configuration. */ readonly originHost: string; /** * Indicates the configuration for "IPv6 origin fetch." This parameter has the following values: ipv6*first: The content delivery network always tries to obtain the IPv6 address of the origin domain. If it cannot obtain the IPv6 address, the content delivery network then tries to obtain the IPv4 address of the origin domain. ipv4*first: The content delivery network always tries to obtain the IPv4 address of the origin domain. If it cannot obtain the IPv4 address, the content delivery network then tries to obtain the IPv6 address of the origin domain. followclient: The content delivery network tries to obtain the same type of IP address as the user's request. The default value for this parameter is followclient. Since some overseas origin fetch nodes do not support sending origin fetch requests to IPv6 addresses, this feature is only available for origin fetch nodes located in mainland China. */ readonly originIPv6: string; /** * Indicates the protocol used for origin requests. The parameter has the following values: http: uses the HTTP protocol for origin requests. https: uses the HTTPS protocol for origin requests. followclient: uses the same protocol as the user's request. */ readonly originProtocol: string; /** * Indicates whether the 'Range Origin' feature is enabled. This parameter has the following values: true: enables the feature. false: disables the feature. The default value is false. */ readonly originRange: boolean; /** * Indicates the configuration module for the "origin fetch retry settings" feature. */ readonly originRetry: outputs.cdn.GetDomainOriginRetry; /** * Indicates the configuration module for the 'Origin URL Rewrite' feature. */ readonly originRewrite: outputs.cdn.GetDomainOriginRewrite; /** * Indicates the configuration module for the 'origin SNI' feature. */ readonly originSni: outputs.cdn.GetDomainOriginSni; /** * Indicates the basic origin configuration module. */ readonly origins: outputs.cdn.GetDomainOrigin[]; /** * Specifies the configuration module for the 'page optimization' feature. */ readonly pageOptimization: outputs.cdn.GetDomainPageOptimization; /** * Indicates the list of primary origin servers configured for this domain name. */ readonly primaryOrigins: string[]; /** * Indicates the project to which the acceleration domain belongs */ readonly project: string; /** * Indicates the configuration module for the QUIC feature. This feature is disabled by default. */ readonly quic: outputs.cdn.GetDomainQuic; /** * Represents the configuration module for the 'URL Redirect Rewrite' feature. This feature is disabled by default. */ readonly redirectionRewrite: outputs.cdn.GetDomainRedirectionRewrite; /** * Indicates the configuration module for the "Referer Allowlist and Denylist" feature. This feature is disabled by default. */ readonly refererAccessRule: outputs.cdn.GetDomainRefererAccessRule; /** * Indicates the configuration module for the 'remote authentication' feature. This feature is disabled by default. */ readonly remoteAuth: outputs.cdn.GetDomainRemoteAuth; /** * Indicates the configuration module for the 'Custom Interception' feature. This feature is disabled by default */ readonly requestBlockRule: outputs.cdn.GetDomainRequestBlockRule; /** * Indicates the configuration module for the 'origin HTTP request header' feature. This feature is disabled by default. */ readonly requestHeaders: outputs.cdn.GetDomainRequestHeader[]; /** * Indicates the configuration module for the 'HTTP response header' feature. This feature is disabled by default. */ readonly responseHeaders: outputs.cdn.GetDomainResponseHeader[]; /** * Indicates the configuration module for the "Standard HLS Encryption Rewrite" feature. This feature is disabled by default. */ readonly rewriteHls: outputs.cdn.GetDomainRewriteHls; /** * Indicates the acceleration region for this accelerated domain name. The parameter values are: chinese*mainland: Chinese Mainland. global: Global. outside*chinese_mainland: Global (excluding Chinese Mainland). */ readonly serviceRegion: string; /** * Indicates the business type of the domain name. This parameter has the following options: download: File download. web: Web page. video: Audio and video on demand. */ readonly serviceType: string; /** * Indicates the configuration module for the 'URL Authentication' feature. This feature is disabled by default */ readonly signedUrlAuth: outputs.cdn.GetDomainSignedUrlAuth; /** * Indicates the status of the acceleration domain name. The parameter values are as follows: online: indicates normal operation. configuring: indicates configuration in progress. offline: indicates offline status. */ readonly status: string; /** * Tag information */ readonly tags: outputs.cdn.GetDomainTag[]; /** * Indicates the configuration module for the 'origin timeout' feature. This feature is disabled by default. */ readonly timeout: outputs.cdn.GetDomainTimeout; /** * Indicates the configuration module for the "UA allowlist and blocklist" feature. This feature is disabled by default. */ readonly uaAccessRule: outputs.cdn.GetDomainUaAccessRule; /** * Indicates the most recent update time for this domain configuration, in Unix timestamp format. */ readonly updatedTime: number; /** * Specifies the configuration module for the 'URL normalization' feature. This feature is disabled by default. */ readonly urlNormalize: outputs.cdn.GetDomainUrlNormalize; /** * Indicates the configuration module for the "Video Drag" feature. This feature is disabled by default. */ readonly videoDrag: outputs.cdn.GetDomainVideoDrag; } /** * Data Source schema for Volcengine::CDN::Domain */ export declare function getDomainOutput(args: GetDomainOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDomain. */ export interface GetDomainOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }