1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. pvtz
  5. Zone
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.pvtz.Zone

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    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

    new Zone(name: string, args?: ZoneArgs, opts?: CustomResourceOptions);
    @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, Any]] = None,
             user_client_ip: Optional[str] = None,
             user_infos: Optional[Sequence[ZoneUserInfoArgs]] = None,
             zone_name: Optional[str] = None)
    @overload
    def Zone(resource_name: str,
             args: Optional[ZoneArgs] = None,
             opts: Optional[ResourceOptions] = None)
    func NewZone(ctx *Context, name string, args *ZoneArgs, opts ...ResourceOption) (*Zone, error)
    public Zone(string name, ZoneArgs? args = null, CustomResourceOptions? opts = null)
    public Zone(String name, ZoneArgs args)
    public Zone(String name, ZoneArgs args, CustomResourceOptions options)
    
    type: alicloud:pvtz:Zone
    properties: # The arguments to resource properties.
    options: # 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.
    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.

    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

    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 name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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.
    ResourceGroupId string
    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 the sync_status to enable/disable the host synchronization task.
    Tags Dictionary<string, object>
    The tags of the Private Zone.
    UserClientIp string
    The IP address of the client.
    UserInfos List<Pulumi.AliCloud.Pvtz.Inputs.ZoneUserInfo>
    The user information of the host synchronization task. See user_info below.
    ZoneName string
    The zone_name of the Private Zone. The zone_name is required when the value of the name is Empty.
    Lang string
    The language. Valid values: "zh", "en", "jp".
    Name string
    The name of the Private Zone. The name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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.
    ResourceGroupId string
    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 the sync_status to enable/disable the host synchronization task.
    Tags map[string]interface{}
    The tags of the Private Zone.
    UserClientIp string
    The IP address of the client.
    UserInfos []ZoneUserInfoArgs
    The user information of the host synchronization task. See user_info below.
    ZoneName string
    The zone_name of the Private Zone. The zone_name is required when the value of the name is Empty.
    lang String
    The language. Valid values: "zh", "en", "jp".
    name String
    The name of the Private Zone. The name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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.
    resourceGroupId String
    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 the sync_status to enable/disable the host synchronization task.
    tags Map<String,Object>
    The tags of the Private Zone.
    userClientIp String
    The IP address of the client.
    userInfos List<ZoneUserInfo>
    The user information of the host synchronization task. See user_info below.
    zoneName String
    The zone_name of the Private Zone. The zone_name is required when the value of the name is Empty.
    lang string
    The language. Valid values: "zh", "en", "jp".
    name string
    The name of the Private Zone. The name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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.
    resourceGroupId string
    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 the sync_status to enable/disable the host synchronization task.
    tags {[key: string]: any}
    The tags of the Private Zone.
    userClientIp string
    The IP address of the client.
    userInfos ZoneUserInfo[]
    The user information of the host synchronization task. See user_info below.
    zoneName string
    The zone_name of the Private Zone. The zone_name is required when the value of the name is Empty.
    lang str
    The language. Valid values: "zh", "en", "jp".
    name str
    The name of the Private Zone. The name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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_id str
    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 the sync_status to enable/disable the host synchronization task.
    tags Mapping[str, Any]
    The tags of the Private Zone.
    user_client_ip str
    The IP address of the client.
    user_infos Sequence[ZoneUserInfoArgs]
    The user information of the host synchronization task. See user_info below.
    zone_name str
    The zone_name of the Private Zone. The zone_name is required when the value of the name is Empty.
    lang String
    The language. Valid values: "zh", "en", "jp".
    name String
    The name of the Private Zone. The name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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.
    resourceGroupId String
    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 the sync_status to enable/disable the host synchronization task.
    tags Map<Any>
    The tags of the Private Zone.
    userClientIp String
    The IP address of the client.
    userInfos List<Property Map>
    The user information of the host synchronization task. See user_info below.
    zoneName String
    The zone_name of the Private Zone. The zone_name is required when the value of the name is 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, Any]] = None,
            user_client_ip: Optional[str] = None,
            user_infos: Optional[Sequence[ZoneUserInfoArgs]] = None,
            zone_name: Optional[str] = None) -> Zone
    func 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)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    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 name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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.
    ResourceGroupId string
    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 the sync_status to enable/disable the host synchronization task.
    Tags Dictionary<string, object>
    The tags of the Private Zone.
    UserClientIp string
    The IP address of the client.
    UserInfos List<Pulumi.AliCloud.Pvtz.Inputs.ZoneUserInfo>
    The user information of the host synchronization task. See user_info below.
    ZoneName string
    The zone_name of the Private Zone. The zone_name is required when the value of the name is 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 name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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.
    ResourceGroupId string
    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 the sync_status to enable/disable the host synchronization task.
    Tags map[string]interface{}
    The tags of the Private Zone.
    UserClientIp string
    The IP address of the client.
    UserInfos []ZoneUserInfoArgs
    The user information of the host synchronization task. See user_info below.
    ZoneName string
    The zone_name of the Private Zone. The zone_name is required when the value of the name is 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 name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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.
    resourceGroupId String
    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 the sync_status to enable/disable the host synchronization task.
    tags Map<String,Object>
    The tags of the Private Zone.
    userClientIp String
    The IP address of the client.
    userInfos List<ZoneUserInfo>
    The user information of the host synchronization task. See user_info below.
    zoneName String
    The zone_name of the Private Zone. The zone_name is required when the value of the name is 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 name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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.
    resourceGroupId string
    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 the sync_status to enable/disable the host synchronization task.
    tags {[key: string]: any}
    The tags of the Private Zone.
    userClientIp string
    The IP address of the client.
    userInfos ZoneUserInfo[]
    The user information of the host synchronization task. See user_info below.
    zoneName string
    The zone_name of the Private Zone. The zone_name is required when the value of the name is 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 name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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_id str
    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 the sync_status to enable/disable the host synchronization task.
    tags Mapping[str, Any]
    The tags of the Private Zone.
    user_client_ip str
    The IP address of the client.
    user_infos Sequence[ZoneUserInfoArgs]
    The user information of the host synchronization task. See user_info below.
    zone_name str
    The zone_name of the Private Zone. The zone_name is required when the value of the name is 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 name has been deprecated from provider version 1.107.0. Please use 'zone_name' instead.

    Deprecated:Field 'name' has been deprecated from version 1.107.0. 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.
    resourceGroupId String
    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 the sync_status to enable/disable the host synchronization task.
    tags Map<Any>
    The tags of the Private Zone.
    userClientIp String
    The IP address of the client.
    userInfos List<Property Map>
    The user information of the host synchronization task. See user_info below.
    zoneName String
    The zone_name of the Private Zone. The zone_name is required when the value of the name is Empty.

    Supporting Types

    ZoneUserInfo, ZoneUserInfoArgs

    RegionIds List<string>
    The list of the region IDs.
    UserId string
    The user ID belonging to the region is used for cross-account synchronization scenarios.
    RegionIds []string
    The list of the region IDs.
    UserId string
    The user ID belonging to the region is used for cross-account synchronization scenarios.
    regionIds List<String>
    The list of the region IDs.
    userId String
    The user ID belonging to the region is used for cross-account synchronization scenarios.
    regionIds string[]
    The list of the region IDs.
    userId string
    The user ID belonging to the region is used for cross-account synchronization scenarios.
    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.
    regionIds List<String>
    The list of the region IDs.
    userId String
    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
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi