alicloud.pvtz.Zone
Explore with Pulumi AI
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const foo = new alicloud.pvtz.Zone("foo", {zoneName: "foo.example.com"});
import pulumi
import pulumi_alicloud as alicloud
foo = alicloud.pvtz.Zone("foo", zone_name="foo.example.com")
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/pvtz"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := pvtz.NewZone(ctx, "foo", &pvtz.ZoneArgs{
			ZoneName: pulumi.String("foo.example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var foo = new AliCloud.Pvtz.Zone("foo", new()
    {
        ZoneName = "foo.example.com",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.pvtz.Zone;
import com.pulumi.alicloud.pvtz.ZoneArgs;
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) {
        var foo = new Zone("foo", ZoneArgs.builder()
            .zoneName("foo.example.com")
            .build());
    }
}
resources:
  foo:
    type: alicloud:pvtz:Zone
    properties:
      zoneName: foo.example.com
Create Zone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Zone(name: string, args?: ZoneArgs, opts?: CustomResourceOptions);@overload
def Zone(resource_name: str,
         args: Optional[ZoneArgs] = None,
         opts: Optional[ResourceOptions] = None)
@overload
def Zone(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         lang: Optional[str] = None,
         name: Optional[str] = None,
         proxy_pattern: Optional[str] = None,
         remark: Optional[str] = None,
         resource_group_id: Optional[str] = None,
         sync_status: Optional[str] = None,
         tags: Optional[Mapping[str, str]] = None,
         user_client_ip: Optional[str] = None,
         user_infos: Optional[Sequence[ZoneUserInfoArgs]] = None,
         zone_name: Optional[str] = None)func NewZone(ctx *Context, name string, args *ZoneArgs, opts ...ResourceOption) (*Zone, error)public Zone(string name, ZoneArgs? args = null, CustomResourceOptions? opts = null)type: alicloud:pvtz:Zone
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 ZoneArgs
- 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 ZoneArgs
- 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 ZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZoneArgs
- 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 zoneResource = new AliCloud.Pvtz.Zone("zoneResource", new()
{
    Lang = "string",
    ProxyPattern = "string",
    Remark = "string",
    ResourceGroupId = "string",
    SyncStatus = "string",
    Tags = 
    {
        { "string", "string" },
    },
    UserClientIp = "string",
    UserInfos = new[]
    {
        new AliCloud.Pvtz.Inputs.ZoneUserInfoArgs
        {
            RegionIds = new[]
            {
                "string",
            },
            UserId = "string",
        },
    },
    ZoneName = "string",
});
example, err := pvtz.NewZone(ctx, "zoneResource", &pvtz.ZoneArgs{
	Lang:            pulumi.String("string"),
	ProxyPattern:    pulumi.String("string"),
	Remark:          pulumi.String("string"),
	ResourceGroupId: pulumi.String("string"),
	SyncStatus:      pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	UserClientIp: pulumi.String("string"),
	UserInfos: pvtz.ZoneUserInfoArray{
		&pvtz.ZoneUserInfoArgs{
			RegionIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			UserId: pulumi.String("string"),
		},
	},
	ZoneName: pulumi.String("string"),
})
var zoneResource = new Zone("zoneResource", ZoneArgs.builder()
    .lang("string")
    .proxyPattern("string")
    .remark("string")
    .resourceGroupId("string")
    .syncStatus("string")
    .tags(Map.of("string", "string"))
    .userClientIp("string")
    .userInfos(ZoneUserInfoArgs.builder()
        .regionIds("string")
        .userId("string")
        .build())
    .zoneName("string")
    .build());
zone_resource = alicloud.pvtz.Zone("zoneResource",
    lang="string",
    proxy_pattern="string",
    remark="string",
    resource_group_id="string",
    sync_status="string",
    tags={
        "string": "string",
    },
    user_client_ip="string",
    user_infos=[{
        "region_ids": ["string"],
        "user_id": "string",
    }],
    zone_name="string")
const zoneResource = new alicloud.pvtz.Zone("zoneResource", {
    lang: "string",
    proxyPattern: "string",
    remark: "string",
    resourceGroupId: "string",
    syncStatus: "string",
    tags: {
        string: "string",
    },
    userClientIp: "string",
    userInfos: [{
        regionIds: ["string"],
        userId: "string",
    }],
    zoneName: "string",
});
type: alicloud:pvtz:Zone
properties:
    lang: string
    proxyPattern: string
    remark: string
    resourceGroupId: string
    syncStatus: string
    tags:
        string: string
    userClientIp: string
    userInfos:
        - regionIds:
            - string
          userId: string
    zoneName: string
Zone 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 Zone resource accepts the following input properties:
- Lang string
- The language. Valid values: "zh", "en", "jp".
- Name string
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- ProxyPattern string
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- Remark string
- The remark of the Private Zone.
- ResourceGroup stringId 
- The Id of resource group which the Private Zone belongs.
- SyncStatus string
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- Dictionary<string, string>
- The tags of the Private Zone.
- UserClient stringIp 
- The IP address of the client.
- UserInfos List<Pulumi.Ali Cloud. Pvtz. Inputs. Zone User Info> 
- The user information of the host synchronization task. See user_infobelow.
- ZoneName string
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
- Lang string
- The language. Valid values: "zh", "en", "jp".
- Name string
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- ProxyPattern string
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- Remark string
- The remark of the Private Zone.
- ResourceGroup stringId 
- The Id of resource group which the Private Zone belongs.
- SyncStatus string
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- map[string]string
- The tags of the Private Zone.
- UserClient stringIp 
- The IP address of the client.
- UserInfos []ZoneUser Info Args 
- The user information of the host synchronization task. See user_infobelow.
- ZoneName string
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
- lang String
- The language. Valid values: "zh", "en", "jp".
- name String
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- proxyPattern String
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- remark String
- The remark of the Private Zone.
- resourceGroup StringId 
- The Id of resource group which the Private Zone belongs.
- syncStatus String
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- Map<String,String>
- The tags of the Private Zone.
- userClient StringIp 
- The IP address of the client.
- userInfos List<ZoneUser Info> 
- The user information of the host synchronization task. See user_infobelow.
- zoneName String
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
- lang string
- The language. Valid values: "zh", "en", "jp".
- name string
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- proxyPattern string
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- remark string
- The remark of the Private Zone.
- resourceGroup stringId 
- The Id of resource group which the Private Zone belongs.
- syncStatus string
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- {[key: string]: string}
- The tags of the Private Zone.
- userClient stringIp 
- The IP address of the client.
- userInfos ZoneUser Info[] 
- The user information of the host synchronization task. See user_infobelow.
- zoneName string
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
- lang str
- The language. Valid values: "zh", "en", "jp".
- name str
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- proxy_pattern str
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- remark str
- The remark of the Private Zone.
- resource_group_ strid 
- The Id of resource group which the Private Zone belongs.
- sync_status str
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- Mapping[str, str]
- The tags of the Private Zone.
- user_client_ strip 
- The IP address of the client.
- user_infos Sequence[ZoneUser Info Args] 
- The user information of the host synchronization task. See user_infobelow.
- zone_name str
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
- lang String
- The language. Valid values: "zh", "en", "jp".
- name String
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- proxyPattern String
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- remark String
- The remark of the Private Zone.
- resourceGroup StringId 
- The Id of resource group which the Private Zone belongs.
- syncStatus String
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- Map<String>
- The tags of the Private Zone.
- userClient StringIp 
- The IP address of the client.
- userInfos List<Property Map>
- The user information of the host synchronization task. See user_infobelow.
- zoneName String
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
Outputs
All input properties are implicitly available as output properties. Additionally, the Zone resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- IsPtr bool
- Whether the Private Zone is ptr.
- RecordCount int
- The count of the Private Zone Record.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsPtr bool
- Whether the Private Zone is ptr.
- RecordCount int
- The count of the Private Zone Record.
- id String
- The provider-assigned unique ID for this managed resource.
- isPtr Boolean
- Whether the Private Zone is ptr.
- recordCount Integer
- The count of the Private Zone Record.
- id string
- The provider-assigned unique ID for this managed resource.
- isPtr boolean
- Whether the Private Zone is ptr.
- recordCount number
- The count of the Private Zone Record.
- id str
- The provider-assigned unique ID for this managed resource.
- is_ptr bool
- Whether the Private Zone is ptr.
- record_count int
- The count of the Private Zone Record.
- id String
- The provider-assigned unique ID for this managed resource.
- isPtr Boolean
- Whether the Private Zone is ptr.
- recordCount Number
- The count of the Private Zone Record.
Look up Existing Zone Resource
Get an existing Zone 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?: ZoneState, opts?: CustomResourceOptions): Zone@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        is_ptr: Optional[bool] = None,
        lang: Optional[str] = None,
        name: Optional[str] = None,
        proxy_pattern: Optional[str] = None,
        record_count: Optional[int] = None,
        remark: Optional[str] = None,
        resource_group_id: Optional[str] = None,
        sync_status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        user_client_ip: Optional[str] = None,
        user_infos: Optional[Sequence[ZoneUserInfoArgs]] = None,
        zone_name: Optional[str] = None) -> Zonefunc GetZone(ctx *Context, name string, id IDInput, state *ZoneState, opts ...ResourceOption) (*Zone, error)public static Zone Get(string name, Input<string> id, ZoneState? state, CustomResourceOptions? opts = null)public static Zone get(String name, Output<String> id, ZoneState state, CustomResourceOptions options)resources:  _:    type: alicloud:pvtz:Zone    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.
- IsPtr bool
- Whether the Private Zone is ptr.
- Lang string
- The language. Valid values: "zh", "en", "jp".
- Name string
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- ProxyPattern string
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- RecordCount int
- The count of the Private Zone Record.
- Remark string
- The remark of the Private Zone.
- ResourceGroup stringId 
- The Id of resource group which the Private Zone belongs.
- SyncStatus string
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- Dictionary<string, string>
- The tags of the Private Zone.
- UserClient stringIp 
- The IP address of the client.
- UserInfos List<Pulumi.Ali Cloud. Pvtz. Inputs. Zone User Info> 
- The user information of the host synchronization task. See user_infobelow.
- ZoneName string
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
- IsPtr bool
- Whether the Private Zone is ptr.
- Lang string
- The language. Valid values: "zh", "en", "jp".
- Name string
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- ProxyPattern string
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- RecordCount int
- The count of the Private Zone Record.
- Remark string
- The remark of the Private Zone.
- ResourceGroup stringId 
- The Id of resource group which the Private Zone belongs.
- SyncStatus string
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- map[string]string
- The tags of the Private Zone.
- UserClient stringIp 
- The IP address of the client.
- UserInfos []ZoneUser Info Args 
- The user information of the host synchronization task. See user_infobelow.
- ZoneName string
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
- isPtr Boolean
- Whether the Private Zone is ptr.
- lang String
- The language. Valid values: "zh", "en", "jp".
- name String
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- proxyPattern String
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- recordCount Integer
- The count of the Private Zone Record.
- remark String
- The remark of the Private Zone.
- resourceGroup StringId 
- The Id of resource group which the Private Zone belongs.
- syncStatus String
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- Map<String,String>
- The tags of the Private Zone.
- userClient StringIp 
- The IP address of the client.
- userInfos List<ZoneUser Info> 
- The user information of the host synchronization task. See user_infobelow.
- zoneName String
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
- isPtr boolean
- Whether the Private Zone is ptr.
- lang string
- The language. Valid values: "zh", "en", "jp".
- name string
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- proxyPattern string
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- recordCount number
- The count of the Private Zone Record.
- remark string
- The remark of the Private Zone.
- resourceGroup stringId 
- The Id of resource group which the Private Zone belongs.
- syncStatus string
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- {[key: string]: string}
- The tags of the Private Zone.
- userClient stringIp 
- The IP address of the client.
- userInfos ZoneUser Info[] 
- The user information of the host synchronization task. See user_infobelow.
- zoneName string
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
- is_ptr bool
- Whether the Private Zone is ptr.
- lang str
- The language. Valid values: "zh", "en", "jp".
- name str
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- proxy_pattern str
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- record_count int
- The count of the Private Zone Record.
- remark str
- The remark of the Private Zone.
- resource_group_ strid 
- The Id of resource group which the Private Zone belongs.
- sync_status str
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- Mapping[str, str]
- The tags of the Private Zone.
- user_client_ strip 
- The IP address of the client.
- user_infos Sequence[ZoneUser Info Args] 
- The user information of the host synchronization task. See user_infobelow.
- zone_name str
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
- isPtr Boolean
- Whether the Private Zone is ptr.
- lang String
- The language. Valid values: "zh", "en", "jp".
- name String
- The name of the Private Zone. The namehas been deprecated from provider version 1.107.0. Please use 'zone_name' instead.
- proxyPattern String
- The recursive DNS proxy. Valid values:- ZONE: indicates that the recursive DNS proxy is disabled.
- RECORD: indicates that the recursive DNS proxy is enabled. Default to "ZONE".
 
- recordCount Number
- The count of the Private Zone Record.
- remark String
- The remark of the Private Zone.
- resourceGroup StringId 
- The Id of resource group which the Private Zone belongs.
- syncStatus String
- The status of the host synchronization task. Valid values: ON,OFF. NOTE: You can update thesync_statusto enable/disable the host synchronization task.
- Map<String>
- The tags of the Private Zone.
- userClient StringIp 
- The IP address of the client.
- userInfos List<Property Map>
- The user information of the host synchronization task. See user_infobelow.
- zoneName String
- The zone_name of the Private Zone. The zone_nameis required when the value of thenameis Empty.
Supporting Types
ZoneUserInfo, ZoneUserInfoArgs      
- region_ids Sequence[str]
- The list of the region IDs.
- user_id str
- The user ID belonging to the region is used for cross-account synchronization scenarios.
Import
Private Zone can be imported using the id, e.g.
$ pulumi import alicloud:pvtz/zone:Zone example abc123456
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 alicloudTerraform Provider.