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

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:

AccessRegionId string

The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.

CenId string

The ID of the CEN instance.

HostRegionId string

The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.

HostVpcId string

The VPC that belongs to the service region.

AccessRegionId string

The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.

CenId string

The ID of the CEN instance.

HostRegionId string

The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.

HostVpcId string

The VPC that belongs to the service region.

accessRegionId string

The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.

cenId string

The ID of the CEN instance.

hostRegionId string

The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.

hostVpcId string

The VPC that belongs to the service region.

access_region_id str

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_id str

The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.

host_vpc_id str

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:

Id string
The provider-assigned unique ID for this managed resource.
Status string

The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].

Id string
The provider-assigned unique ID for this managed resource.
Status string

The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].

id string
The provider-assigned unique ID for this managed resource.
status string

The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].

id str
The provider-assigned unique ID for this managed resource.
status str

The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].

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): PrivateZone
static 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:

AccessRegionId string

The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.

CenId string

The ID of the CEN instance.

HostRegionId string

The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.

HostVpcId string

The VPC that belongs to the service region.

Status string

The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].

AccessRegionId string

The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.

CenId string

The ID of the CEN instance.

HostRegionId string

The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.

HostVpcId string

The VPC that belongs to the service region.

Status string

The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].

accessRegionId string

The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.

cenId string

The ID of the CEN instance.

hostRegionId string

The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.

hostVpcId string

The VPC that belongs to the service region.

status string

The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].

access_region_id str

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_id str

The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.

host_vpc_id str

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 alicloud Terraform Provider.