Show / Hide Table of Contents

Class 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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
PrivateZone
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Cen
Assembly: Pulumi.AliCloud.dll
Syntax
public class PrivateZone : CustomResource

Constructors

View Source

PrivateZone(String, PrivateZoneArgs, CustomResourceOptions)

Create a PrivateZone resource with the given unique name, arguments, and options.

Declaration
public PrivateZone(string name, PrivateZoneArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

PrivateZoneArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AccessRegionId

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

Declaration
public Output<string> AccessRegionId { get; }
Property Value
Type Description
Output<System.String>
View Source

CenId

The ID of the CEN instance.

Declaration
public Output<string> CenId { get; }
Property Value
Type Description
Output<System.String>
View Source

HostRegionId

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

Declaration
public Output<string> HostRegionId { get; }
Property Value
Type Description
Output<System.String>
View Source

HostVpcId

The VPC that belongs to the service region.

Declaration
public Output<string> HostVpcId { get; }
Property Value
Type Description
Output<System.String>
View Source

Status

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

Declaration
public Output<string> Status { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, PrivateZoneState, CustomResourceOptions)

Get an existing PrivateZone resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static PrivateZone Get(string name, Input<string> id, PrivateZoneState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

PrivateZoneState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
PrivateZone
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.