PrivateZone
This topic describes how to configure PrivateZone access. PrivateZone is a VPC-based resolution and management service for private domain names. After you set a PrivateZone access, the Cloud Connect Network (CCN) and Virtual Border Router (VBR) attached to a CEN instance can access the PrivateZone service through CEN.
For information about CEN Private Zone and how to use it, see Manage CEN Private Zone.
NOTE: Available in 1.83.0+
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var defaultInstance = new AliCloud.Cen.Instance("defaultInstance", new AliCloud.Cen.InstanceArgs
{
});
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new AliCloud.Vpc.NetworkArgs
{
CidrBlock = "172.16.0.0/12",
});
var defaultInstanceAttachment = new AliCloud.Cen.InstanceAttachment("defaultInstanceAttachment", new AliCloud.Cen.InstanceAttachmentArgs
{
ChildInstanceId = defaultNetwork.Id,
ChildInstanceRegionId = "cn-hangzhou",
InstanceId = defaultInstance.Id,
});
var defaultPrivateZone = new AliCloud.Cen.PrivateZone("defaultPrivateZone", new AliCloud.Cen.PrivateZoneArgs
{
AccessRegionId = "cn-hangzhou",
CenId = defaultInstance.Id,
HostRegionId = "cn-hangzhou",
HostVpcId = defaultNetwork.Id,
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
default_instance = alicloud.cen.Instance("defaultInstance")
default_network = alicloud.vpc.Network("defaultNetwork", cidr_block="172.16.0.0/12")
default_instance_attachment = alicloud.cen.InstanceAttachment("defaultInstanceAttachment",
child_instance_id=default_network.id,
child_instance_region_id="cn-hangzhou",
instance_id=default_instance.id)
default_private_zone = alicloud.cen.PrivateZone("defaultPrivateZone",
access_region_id="cn-hangzhou",
cen_id=default_instance.id,
host_region_id="cn-hangzhou",
host_vpc_id=default_network.id)import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultInstance = new alicloud.cen.Instance("default", {});
const defaultNetwork = new alicloud.vpc.Network("default", {
cidrBlock: "172.16.0.0/12",
});
const defaultInstanceAttachment = new alicloud.cen.InstanceAttachment("default", {
childInstanceId: defaultNetwork.id,
childInstanceRegionId: "cn-hangzhou",
instanceId: defaultInstance.id,
}, { dependsOn: [defaultInstance, defaultNetwork] });
const defaultPrivateZone = new alicloud.cen.PrivateZone("default", {
accessRegionId: "cn-hangzhou",
cenId: defaultInstance.id,
hostRegionId: "cn-hangzhou",
hostVpcId: defaultNetwork.id,
}, { dependsOn: [defaultInstanceAttachment] });Create a PrivateZone Resource
new PrivateZone(name: string, args: PrivateZoneArgs, opts?: CustomResourceOptions);def PrivateZone(resource_name, opts=None, access_region_id=None, cen_id=None, host_region_id=None, host_vpc_id=None, __props__=None);func NewPrivateZone(ctx *Context, name string, args PrivateZoneArgs, opts ...ResourceOption) (*PrivateZone, error)public PrivateZone(string name, PrivateZoneArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args PrivateZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PrivateZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
PrivateZone Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The PrivateZone resource accepts the following input properties:
- Access
Region stringId The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- Cen
Id string The ID of the CEN instance.
- Host
Region stringId The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
- Host
Vpc stringId The VPC that belongs to the service region.
- Access
Region stringId The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- Cen
Id string The ID of the CEN instance.
- Host
Region stringId The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
- Host
Vpc stringId The VPC that belongs to the service region.
- access
Region stringId The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- cen
Id string The ID of the CEN instance.
- host
Region stringId The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
- host
Vpc stringId The VPC that belongs to the service region.
- access_
region_ strid The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- cen_
id str The ID of the CEN instance.
- host_
region_ strid The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
- host_
vpc_ strid The VPC that belongs to the service region.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateZone resource produces the following output properties:
Look up an Existing PrivateZone Resource
Get an existing PrivateZone 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?: PrivateZoneState, opts?: CustomResourceOptions): PrivateZonestatic get(resource_name, id, opts=None, access_region_id=None, cen_id=None, host_region_id=None, host_vpc_id=None, status=None, __props__=None);func GetPrivateZone(ctx *Context, name string, id IDInput, state *PrivateZoneState, opts ...ResourceOption) (*PrivateZone, error)public static PrivateZone Get(string name, Input<string> id, PrivateZoneState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Access
Region stringId The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- Cen
Id string The ID of the CEN instance.
- Host
Region stringId The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
- Host
Vpc stringId The VPC that belongs to the service region.
- Status string
The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].
- Access
Region stringId The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- Cen
Id string The ID of the CEN instance.
- Host
Region stringId The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
- Host
Vpc stringId The VPC that belongs to the service region.
- Status string
The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].
- access
Region stringId The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- cen
Id string The ID of the CEN instance.
- host
Region stringId The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
- host
Vpc stringId The VPC that belongs to the service region.
- status string
The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].
- access_
region_ strid The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- cen_
id str The ID of the CEN instance.
- host_
region_ strid The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
- host_
vpc_ strid The VPC that belongs to the service region.
- status str
The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.