alicloud.esa.Site
Explore with Pulumi AI
Provides a ESA Site resource.
For information about ESA Site and how to use it, see What is Site.
NOTE: Available since v1.234.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = alicloud.resourcemanager.getResourceGroups({});
const defaultIEoDfU = new alicloud.esa.RatePlanInstance("defaultIEoDfU", {
type: "NS",
autoRenew: true,
period: 1,
paymentType: "Subscription",
coverage: "overseas",
autoPay: true,
planName: "basic",
});
const defaultInteger = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const defaultSite = new alicloud.esa.Site("default", {
siteName: `bcd${defaultInteger.result}.com`,
coverage: "overseas",
accessType: "NS",
instanceId: defaultIEoDfU.id,
resourceGroupId: _default.then(_default => _default.ids?.[0]),
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.resourcemanager.get_resource_groups()
default_i_eo_df_u = alicloud.esa.RatePlanInstance("defaultIEoDfU",
type="NS",
auto_renew=True,
period=1,
payment_type="Subscription",
coverage="overseas",
auto_pay=True,
plan_name="basic")
default_integer = random.index.Integer("default",
min=10000,
max=99999)
default_site = alicloud.esa.Site("default",
site_name=f"bcd{default_integer['result']}.com",
coverage="overseas",
access_type="NS",
instance_id=default_i_eo_df_u.id,
resource_group_id=default.ids[0])
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/esa"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
if err != nil {
return err
}
defaultIEoDfU, err := esa.NewRatePlanInstance(ctx, "defaultIEoDfU", &esa.RatePlanInstanceArgs{
Type: pulumi.String("NS"),
AutoRenew: pulumi.Bool(true),
Period: pulumi.Int(1),
PaymentType: pulumi.String("Subscription"),
Coverage: pulumi.String("overseas"),
AutoPay: pulumi.Bool(true),
PlanName: pulumi.String("basic"),
})
if err != nil {
return err
}
defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
_, err = esa.NewSite(ctx, "default", &esa.SiteArgs{
SiteName: pulumi.Sprintf("bcd%v.com", defaultInteger.Result),
Coverage: pulumi.String("overseas"),
AccessType: pulumi.String("NS"),
InstanceId: defaultIEoDfU.ID(),
ResourceGroupId: pulumi.String(_default.Ids[0]),
})
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 config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultIEoDfU = new AliCloud.Esa.RatePlanInstance("defaultIEoDfU", new()
{
Type = "NS",
AutoRenew = true,
Period = 1,
PaymentType = "Subscription",
Coverage = "overseas",
AutoPay = true,
PlanName = "basic",
});
var defaultInteger = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var defaultSite = new AliCloud.Esa.Site("default", new()
{
SiteName = $"bcd{defaultInteger.Result}.com",
Coverage = "overseas",
AccessType = "NS",
InstanceId = defaultIEoDfU.Id,
ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0])),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.esa.RatePlanInstance;
import com.pulumi.alicloud.esa.RatePlanInstanceArgs;
import com.pulumi.random.integer;
import com.pulumi.random.integerArgs;
import com.pulumi.alicloud.esa.Site;
import com.pulumi.alicloud.esa.SiteArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.build());
var defaultIEoDfU = new RatePlanInstance("defaultIEoDfU", RatePlanInstanceArgs.builder()
.type("NS")
.autoRenew(true)
.period(1)
.paymentType("Subscription")
.coverage("overseas")
.autoPay(true)
.planName("basic")
.build());
var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var defaultSite = new Site("defaultSite", SiteArgs.builder()
.siteName(String.format("bcd%s.com", defaultInteger.result()))
.coverage("overseas")
.accessType("NS")
.instanceId(defaultIEoDfU.id())
.resourceGroupId(default_.ids()[0])
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultIEoDfU:
type: alicloud:esa:RatePlanInstance
properties:
type: NS
autoRenew: true
period: '1'
paymentType: Subscription
coverage: overseas
autoPay: true
planName: basic
defaultInteger:
type: random:integer
name: default
properties:
min: 10000
max: 99999
defaultSite:
type: alicloud:esa:Site
name: default
properties:
siteName: bcd${defaultInteger.result}.com
coverage: overseas
accessType: NS
instanceId: ${defaultIEoDfU.id}
resourceGroupId: ${default.ids[0]}
variables:
default:
fn::invoke:
function: alicloud:resourcemanager:getResourceGroups
arguments: {}
Create Site Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Site(name: string, args: SiteArgs, opts?: CustomResourceOptions);
@overload
def Site(resource_name: str,
args: SiteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Site(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
site_name: Optional[str] = None,
flatten_mode: Optional[str] = None,
add_real_client_ip_header: Optional[str] = None,
cache_reserve_enable: Optional[str] = None,
cache_reserve_instance_id: Optional[str] = None,
case_insensitive: Optional[str] = None,
coverage: Optional[str] = None,
cross_border_optimization: Optional[str] = None,
development_mode: Optional[str] = None,
access_type: Optional[str] = None,
cache_architecture_mode: Optional[str] = None,
ipv6_enable: Optional[str] = None,
ipv6_region: Optional[str] = None,
resource_group_id: Optional[str] = None,
seo_bypass: Optional[str] = None,
add_client_geolocation_header: Optional[str] = None,
site_name_exclusive: Optional[str] = None,
site_version: Optional[int] = None,
tag_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
version_management: Optional[bool] = None)
func NewSite(ctx *Context, name string, args SiteArgs, opts ...ResourceOption) (*Site, error)
public Site(string name, SiteArgs args, CustomResourceOptions? opts = null)
type: alicloud:esa:Site
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 SiteArgs
- 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 SiteArgs
- 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 SiteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SiteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SiteArgs
- 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 siteResource = new AliCloud.Esa.Site("siteResource", new()
{
InstanceId = "string",
SiteName = "string",
FlattenMode = "string",
AddRealClientIpHeader = "string",
CacheReserveEnable = "string",
CacheReserveInstanceId = "string",
CaseInsensitive = "string",
Coverage = "string",
CrossBorderOptimization = "string",
DevelopmentMode = "string",
AccessType = "string",
CacheArchitectureMode = "string",
Ipv6Enable = "string",
Ipv6Region = "string",
ResourceGroupId = "string",
SeoBypass = "string",
AddClientGeolocationHeader = "string",
SiteNameExclusive = "string",
SiteVersion = 0,
TagName = "string",
Tags =
{
{ "string", "string" },
},
VersionManagement = false,
});
example, err := esa.NewSite(ctx, "siteResource", &esa.SiteArgs{
InstanceId: pulumi.String("string"),
SiteName: pulumi.String("string"),
FlattenMode: pulumi.String("string"),
AddRealClientIpHeader: pulumi.String("string"),
CacheReserveEnable: pulumi.String("string"),
CacheReserveInstanceId: pulumi.String("string"),
CaseInsensitive: pulumi.String("string"),
Coverage: pulumi.String("string"),
CrossBorderOptimization: pulumi.String("string"),
DevelopmentMode: pulumi.String("string"),
AccessType: pulumi.String("string"),
CacheArchitectureMode: pulumi.String("string"),
Ipv6Enable: pulumi.String("string"),
Ipv6Region: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
SeoBypass: pulumi.String("string"),
AddClientGeolocationHeader: pulumi.String("string"),
SiteNameExclusive: pulumi.String("string"),
SiteVersion: pulumi.Int(0),
TagName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VersionManagement: pulumi.Bool(false),
})
var siteResource = new Site("siteResource", SiteArgs.builder()
.instanceId("string")
.siteName("string")
.flattenMode("string")
.addRealClientIpHeader("string")
.cacheReserveEnable("string")
.cacheReserveInstanceId("string")
.caseInsensitive("string")
.coverage("string")
.crossBorderOptimization("string")
.developmentMode("string")
.accessType("string")
.cacheArchitectureMode("string")
.ipv6Enable("string")
.ipv6Region("string")
.resourceGroupId("string")
.seoBypass("string")
.addClientGeolocationHeader("string")
.siteNameExclusive("string")
.siteVersion(0)
.tagName("string")
.tags(Map.of("string", "string"))
.versionManagement(false)
.build());
site_resource = alicloud.esa.Site("siteResource",
instance_id="string",
site_name="string",
flatten_mode="string",
add_real_client_ip_header="string",
cache_reserve_enable="string",
cache_reserve_instance_id="string",
case_insensitive="string",
coverage="string",
cross_border_optimization="string",
development_mode="string",
access_type="string",
cache_architecture_mode="string",
ipv6_enable="string",
ipv6_region="string",
resource_group_id="string",
seo_bypass="string",
add_client_geolocation_header="string",
site_name_exclusive="string",
site_version=0,
tag_name="string",
tags={
"string": "string",
},
version_management=False)
const siteResource = new alicloud.esa.Site("siteResource", {
instanceId: "string",
siteName: "string",
flattenMode: "string",
addRealClientIpHeader: "string",
cacheReserveEnable: "string",
cacheReserveInstanceId: "string",
caseInsensitive: "string",
coverage: "string",
crossBorderOptimization: "string",
developmentMode: "string",
accessType: "string",
cacheArchitectureMode: "string",
ipv6Enable: "string",
ipv6Region: "string",
resourceGroupId: "string",
seoBypass: "string",
addClientGeolocationHeader: "string",
siteNameExclusive: "string",
siteVersion: 0,
tagName: "string",
tags: {
string: "string",
},
versionManagement: false,
});
type: alicloud:esa:Site
properties:
accessType: string
addClientGeolocationHeader: string
addRealClientIpHeader: string
cacheArchitectureMode: string
cacheReserveEnable: string
cacheReserveInstanceId: string
caseInsensitive: string
coverage: string
crossBorderOptimization: string
developmentMode: string
flattenMode: string
instanceId: string
ipv6Enable: string
ipv6Region: string
resourceGroupId: string
seoBypass: string
siteName: string
siteNameExclusive: string
siteVersion: 0
tagName: string
tags:
string: string
versionManagement: false
Site 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 Site resource accepts the following input properties:
- Instance
Id string - The ID of the associated package instance.
- Site
Name string - The website name.
- Access
Type string - The DNS setup. Valid values:
NS
CNAME
- Add
Client stringGeolocation Header - Add visitor geolocation header. Value range:
- Add
Real stringClient Ip Header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- Cache
Architecture stringMode - Multi-level cache architecture mode. Possible values:
- Cache
Reserve stringEnable - Site cache hold switch. Value:
- Cache
Reserve stringInstance Id - The ID of the cache instance.
- Case
Insensitive string - Whether the custom CacheTag name ignores case. Value range:
- Coverage string
- The service location. Valid values:
- Cross
Border stringOptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- Development
Mode string - Development mode configuration function switch. Value range:
- Flatten
Mode string - CNAME flattening mode. Possible values:
- Ipv6Enable string
- Specifies whether to enable IPv6. Valid values:
- Ipv6Region string
- The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- Resource
Group stringId - The ID of the resource group
- Seo
Bypass string - Release the search engine crawler configuration. Value:
- Site
Name stringExclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- Site
Version int - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- Tag
Name string - Custom CacheTag name.
- Dictionary<string, string>
- Resource tags
- Version
Management bool - Version management enabled. When true, version management is turned on for the table site.
- Instance
Id string - The ID of the associated package instance.
- Site
Name string - The website name.
- Access
Type string - The DNS setup. Valid values:
NS
CNAME
- Add
Client stringGeolocation Header - Add visitor geolocation header. Value range:
- Add
Real stringClient Ip Header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- Cache
Architecture stringMode - Multi-level cache architecture mode. Possible values:
- Cache
Reserve stringEnable - Site cache hold switch. Value:
- Cache
Reserve stringInstance Id - The ID of the cache instance.
- Case
Insensitive string - Whether the custom CacheTag name ignores case. Value range:
- Coverage string
- The service location. Valid values:
- Cross
Border stringOptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- Development
Mode string - Development mode configuration function switch. Value range:
- Flatten
Mode string - CNAME flattening mode. Possible values:
- Ipv6Enable string
- Specifies whether to enable IPv6. Valid values:
- Ipv6Region string
- The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- Resource
Group stringId - The ID of the resource group
- Seo
Bypass string - Release the search engine crawler configuration. Value:
- Site
Name stringExclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- Site
Version int - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- Tag
Name string - Custom CacheTag name.
- map[string]string
- Resource tags
- Version
Management bool - Version management enabled. When true, version management is turned on for the table site.
- instance
Id String - The ID of the associated package instance.
- site
Name String - The website name.
- access
Type String - The DNS setup. Valid values:
NS
CNAME
- add
Client StringGeolocation Header - Add visitor geolocation header. Value range:
- add
Real StringClient Ip Header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- cache
Architecture StringMode - Multi-level cache architecture mode. Possible values:
- cache
Reserve StringEnable - Site cache hold switch. Value:
- cache
Reserve StringInstance Id - The ID of the cache instance.
- case
Insensitive String - Whether the custom CacheTag name ignores case. Value range:
- coverage String
- The service location. Valid values:
- cross
Border StringOptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- development
Mode String - Development mode configuration function switch. Value range:
- flatten
Mode String - CNAME flattening mode. Possible values:
- ipv6Enable String
- Specifies whether to enable IPv6. Valid values:
- ipv6Region String
- The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- resource
Group StringId - The ID of the resource group
- seo
Bypass String - Release the search engine crawler configuration. Value:
- site
Name StringExclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- site
Version Integer - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- tag
Name String - Custom CacheTag name.
- Map<String,String>
- Resource tags
- version
Management Boolean - Version management enabled. When true, version management is turned on for the table site.
- instance
Id string - The ID of the associated package instance.
- site
Name string - The website name.
- access
Type string - The DNS setup. Valid values:
NS
CNAME
- add
Client stringGeolocation Header - Add visitor geolocation header. Value range:
- add
Real stringClient Ip Header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- cache
Architecture stringMode - Multi-level cache architecture mode. Possible values:
- cache
Reserve stringEnable - Site cache hold switch. Value:
- cache
Reserve stringInstance Id - The ID of the cache instance.
- case
Insensitive string - Whether the custom CacheTag name ignores case. Value range:
- coverage string
- The service location. Valid values:
- cross
Border stringOptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- development
Mode string - Development mode configuration function switch. Value range:
- flatten
Mode string - CNAME flattening mode. Possible values:
- ipv6Enable string
- Specifies whether to enable IPv6. Valid values:
- ipv6Region string
- The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- resource
Group stringId - The ID of the resource group
- seo
Bypass string - Release the search engine crawler configuration. Value:
- site
Name stringExclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- site
Version number - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- tag
Name string - Custom CacheTag name.
- {[key: string]: string}
- Resource tags
- version
Management boolean - Version management enabled. When true, version management is turned on for the table site.
- instance_
id str - The ID of the associated package instance.
- site_
name str - The website name.
- access_
type str - The DNS setup. Valid values:
NS
CNAME
- add_
client_ strgeolocation_ header - Add visitor geolocation header. Value range:
- add_
real_ strclient_ ip_ header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- cache_
architecture_ strmode - Multi-level cache architecture mode. Possible values:
- cache_
reserve_ strenable - Site cache hold switch. Value:
- cache_
reserve_ strinstance_ id - The ID of the cache instance.
- case_
insensitive str - Whether the custom CacheTag name ignores case. Value range:
- coverage str
- The service location. Valid values:
- cross_
border_ stroptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- development_
mode str - Development mode configuration function switch. Value range:
- flatten_
mode str - CNAME flattening mode. Possible values:
- ipv6_
enable str - Specifies whether to enable IPv6. Valid values:
- ipv6_
region str - The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- resource_
group_ strid - The ID of the resource group
- seo_
bypass str - Release the search engine crawler configuration. Value:
- site_
name_ strexclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- site_
version int - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- tag_
name str - Custom CacheTag name.
- Mapping[str, str]
- Resource tags
- version_
management bool - Version management enabled. When true, version management is turned on for the table site.
- instance
Id String - The ID of the associated package instance.
- site
Name String - The website name.
- access
Type String - The DNS setup. Valid values:
NS
CNAME
- add
Client StringGeolocation Header - Add visitor geolocation header. Value range:
- add
Real StringClient Ip Header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- cache
Architecture StringMode - Multi-level cache architecture mode. Possible values:
- cache
Reserve StringEnable - Site cache hold switch. Value:
- cache
Reserve StringInstance Id - The ID of the cache instance.
- case
Insensitive String - Whether the custom CacheTag name ignores case. Value range:
- coverage String
- The service location. Valid values:
- cross
Border StringOptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- development
Mode String - Development mode configuration function switch. Value range:
- flatten
Mode String - CNAME flattening mode. Possible values:
- ipv6Enable String
- Specifies whether to enable IPv6. Valid values:
- ipv6Region String
- The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- resource
Group StringId - The ID of the resource group
- seo
Bypass String - Release the search engine crawler configuration. Value:
- site
Name StringExclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- site
Version Number - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- tag
Name String - Custom CacheTag name.
- Map<String>
- Resource tags
- version
Management Boolean - Version management enabled. When true, version management is turned on for the table site.
Outputs
All input properties are implicitly available as output properties. Additionally, the Site resource produces the following output properties:
- Create
Time string - The time when the website was added. 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.
- Status string
- The status of the resource
- Create
Time string - The time when the website was added. 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.
- Status string
- The status of the resource
- create
Time String - The time when the website was added. 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.
- status String
- The status of the resource
- create
Time string - The time when the website was added. 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.
- status string
- The status of the resource
- create_
time str - The time when the website was added. 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.
- status str
- The status of the resource
- create
Time String - The time when the website was added. 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.
- status String
- The status of the resource
Look up Existing Site Resource
Get an existing Site 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?: SiteState, opts?: CustomResourceOptions): Site
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_type: Optional[str] = None,
add_client_geolocation_header: Optional[str] = None,
add_real_client_ip_header: Optional[str] = None,
cache_architecture_mode: Optional[str] = None,
cache_reserve_enable: Optional[str] = None,
cache_reserve_instance_id: Optional[str] = None,
case_insensitive: Optional[str] = None,
coverage: Optional[str] = None,
create_time: Optional[str] = None,
cross_border_optimization: Optional[str] = None,
development_mode: Optional[str] = None,
flatten_mode: Optional[str] = None,
instance_id: Optional[str] = None,
ipv6_enable: Optional[str] = None,
ipv6_region: Optional[str] = None,
resource_group_id: Optional[str] = None,
seo_bypass: Optional[str] = None,
site_name: Optional[str] = None,
site_name_exclusive: Optional[str] = None,
site_version: Optional[int] = None,
status: Optional[str] = None,
tag_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
version_management: Optional[bool] = None) -> Site
func GetSite(ctx *Context, name string, id IDInput, state *SiteState, opts ...ResourceOption) (*Site, error)
public static Site Get(string name, Input<string> id, SiteState? state, CustomResourceOptions? opts = null)
public static Site get(String name, Output<String> id, SiteState state, CustomResourceOptions options)
resources: _: type: alicloud:esa:Site get: id: ${id}
- 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.
- Access
Type string - The DNS setup. Valid values:
NS
CNAME
- Add
Client stringGeolocation Header - Add visitor geolocation header. Value range:
- Add
Real stringClient Ip Header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- Cache
Architecture stringMode - Multi-level cache architecture mode. Possible values:
- Cache
Reserve stringEnable - Site cache hold switch. Value:
- Cache
Reserve stringInstance Id - The ID of the cache instance.
- Case
Insensitive string - Whether the custom CacheTag name ignores case. Value range:
- Coverage string
- The service location. Valid values:
- Create
Time string - The time when the website was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
- Cross
Border stringOptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- Development
Mode string - Development mode configuration function switch. Value range:
- Flatten
Mode string - CNAME flattening mode. Possible values:
- Instance
Id string - The ID of the associated package instance.
- Ipv6Enable string
- Specifies whether to enable IPv6. Valid values:
- Ipv6Region string
- The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- Resource
Group stringId - The ID of the resource group
- Seo
Bypass string - Release the search engine crawler configuration. Value:
- Site
Name string - The website name.
- Site
Name stringExclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- Site
Version int - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- Status string
- The status of the resource
- Tag
Name string - Custom CacheTag name.
- Dictionary<string, string>
- Resource tags
- Version
Management bool - Version management enabled. When true, version management is turned on for the table site.
- Access
Type string - The DNS setup. Valid values:
NS
CNAME
- Add
Client stringGeolocation Header - Add visitor geolocation header. Value range:
- Add
Real stringClient Ip Header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- Cache
Architecture stringMode - Multi-level cache architecture mode. Possible values:
- Cache
Reserve stringEnable - Site cache hold switch. Value:
- Cache
Reserve stringInstance Id - The ID of the cache instance.
- Case
Insensitive string - Whether the custom CacheTag name ignores case. Value range:
- Coverage string
- The service location. Valid values:
- Create
Time string - The time when the website was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
- Cross
Border stringOptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- Development
Mode string - Development mode configuration function switch. Value range:
- Flatten
Mode string - CNAME flattening mode. Possible values:
- Instance
Id string - The ID of the associated package instance.
- Ipv6Enable string
- Specifies whether to enable IPv6. Valid values:
- Ipv6Region string
- The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- Resource
Group stringId - The ID of the resource group
- Seo
Bypass string - Release the search engine crawler configuration. Value:
- Site
Name string - The website name.
- Site
Name stringExclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- Site
Version int - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- Status string
- The status of the resource
- Tag
Name string - Custom CacheTag name.
- map[string]string
- Resource tags
- Version
Management bool - Version management enabled. When true, version management is turned on for the table site.
- access
Type String - The DNS setup. Valid values:
NS
CNAME
- add
Client StringGeolocation Header - Add visitor geolocation header. Value range:
- add
Real StringClient Ip Header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- cache
Architecture StringMode - Multi-level cache architecture mode. Possible values:
- cache
Reserve StringEnable - Site cache hold switch. Value:
- cache
Reserve StringInstance Id - The ID of the cache instance.
- case
Insensitive String - Whether the custom CacheTag name ignores case. Value range:
- coverage String
- The service location. Valid values:
- create
Time String - The time when the website was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
- cross
Border StringOptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- development
Mode String - Development mode configuration function switch. Value range:
- flatten
Mode String - CNAME flattening mode. Possible values:
- instance
Id String - The ID of the associated package instance.
- ipv6Enable String
- Specifies whether to enable IPv6. Valid values:
- ipv6Region String
- The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- resource
Group StringId - The ID of the resource group
- seo
Bypass String - Release the search engine crawler configuration. Value:
- site
Name String - The website name.
- site
Name StringExclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- site
Version Integer - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- status String
- The status of the resource
- tag
Name String - Custom CacheTag name.
- Map<String,String>
- Resource tags
- version
Management Boolean - Version management enabled. When true, version management is turned on for the table site.
- access
Type string - The DNS setup. Valid values:
NS
CNAME
- add
Client stringGeolocation Header - Add visitor geolocation header. Value range:
- add
Real stringClient Ip Header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- cache
Architecture stringMode - Multi-level cache architecture mode. Possible values:
- cache
Reserve stringEnable - Site cache hold switch. Value:
- cache
Reserve stringInstance Id - The ID of the cache instance.
- case
Insensitive string - Whether the custom CacheTag name ignores case. Value range:
- coverage string
- The service location. Valid values:
- create
Time string - The time when the website was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
- cross
Border stringOptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- development
Mode string - Development mode configuration function switch. Value range:
- flatten
Mode string - CNAME flattening mode. Possible values:
- instance
Id string - The ID of the associated package instance.
- ipv6Enable string
- Specifies whether to enable IPv6. Valid values:
- ipv6Region string
- The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- resource
Group stringId - The ID of the resource group
- seo
Bypass string - Release the search engine crawler configuration. Value:
- site
Name string - The website name.
- site
Name stringExclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- site
Version number - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- status string
- The status of the resource
- tag
Name string - Custom CacheTag name.
- {[key: string]: string}
- Resource tags
- version
Management boolean - Version management enabled. When true, version management is turned on for the table site.
- access_
type str - The DNS setup. Valid values:
NS
CNAME
- add_
client_ strgeolocation_ header - Add visitor geolocation header. Value range:
- add_
real_ strclient_ ip_ header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- cache_
architecture_ strmode - Multi-level cache architecture mode. Possible values:
- cache_
reserve_ strenable - Site cache hold switch. Value:
- cache_
reserve_ strinstance_ id - The ID of the cache instance.
- case_
insensitive str - Whether the custom CacheTag name ignores case. Value range:
- coverage str
- The service location. Valid values:
- create_
time str - The time when the website was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
- cross_
border_ stroptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- development_
mode str - Development mode configuration function switch. Value range:
- flatten_
mode str - CNAME flattening mode. Possible values:
- instance_
id str - The ID of the associated package instance.
- ipv6_
enable str - Specifies whether to enable IPv6. Valid values:
- ipv6_
region str - The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- resource_
group_ strid - The ID of the resource group
- seo_
bypass str - Release the search engine crawler configuration. Value:
- site_
name str - The website name.
- site_
name_ strexclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- site_
version int - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- status str
- The status of the resource
- tag_
name str - Custom CacheTag name.
- Mapping[str, str]
- Resource tags
- version_
management bool - Version management enabled. When true, version management is turned on for the table site.
- access
Type String - The DNS setup. Valid values:
NS
CNAME
- add
Client StringGeolocation Header - Add visitor geolocation header. Value range:
- add
Real StringClient Ip Header - Add the "ali-real-client-ip" header containing the real client IP. Value range:
- cache
Architecture StringMode - Multi-level cache architecture mode. Possible values:
- cache
Reserve StringEnable - Site cache hold switch. Value:
- cache
Reserve StringInstance Id - The ID of the cache instance.
- case
Insensitive String - Whether the custom CacheTag name ignores case. Value range:
- coverage String
- The service location. Valid values:
- create
Time String - The time when the website was added. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
- cross
Border StringOptimization - Whether to enable mainland China network access optimization, the default is off. Value range:
- development
Mode String - Development mode configuration function switch. Value range:
- flatten
Mode String - CNAME flattening mode. Possible values:
- instance
Id String - The ID of the associated package instance.
- ipv6Enable String
- Specifies whether to enable IPv6. Valid values:
- ipv6Region String
- The region in which Ipv6 is enabled. The default value is x.x:
- 'x.x': Global.
- 'Cn.cn ': Mainland China.
- resource
Group StringId - The ID of the resource group
- seo
Bypass String - Release the search engine crawler configuration. Value:
- site
Name String - The website name.
- site
Name StringExclusive - Specifies whether to enable site hold.After you enable site hold, other accounts cannot add your website domain or its subdomains to ESA. Valid values:
- site
Version Number - The version number of the site. For sites with version management enabled, you can use this parameter to specify the site version for which the configuration will take effect, defaulting to version 0.
- status String
- The status of the resource
- tag
Name String - Custom CacheTag name.
- Map<String>
- Resource tags
- version
Management Boolean - Version management enabled. When true, version management is turned on for the table site.
Import
ESA Site can be imported using the id, e.g.
$ pulumi import alicloud:esa/site:Site example <id>
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.