1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. pvtz
  5. Endpoint
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.pvtz.Endpoint

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a Private Zone Endpoint resource.

    For information about Private Zone Endpoint and how to use it, see What is Endpoint.

    NOTE: Available since v1.143.0.

    Create Endpoint Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Endpoint(name: string, args: EndpointArgs, opts?: CustomResourceOptions);
    @overload
    def Endpoint(resource_name: str,
                 args: EndpointArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Endpoint(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 endpoint_name: Optional[str] = None,
                 ip_configs: Optional[Sequence[EndpointIpConfigArgs]] = None,
                 security_group_id: Optional[str] = None,
                 vpc_id: Optional[str] = None,
                 vpc_region_id: Optional[str] = None)
    func NewEndpoint(ctx *Context, name string, args EndpointArgs, opts ...ResourceOption) (*Endpoint, error)
    public Endpoint(string name, EndpointArgs args, CustomResourceOptions? opts = null)
    public Endpoint(String name, EndpointArgs args)
    public Endpoint(String name, EndpointArgs args, CustomResourceOptions options)
    
    type: alicloud:pvtz:Endpoint
    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 EndpointArgs
    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 EndpointArgs
    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 EndpointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EndpointArgs
    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 alicloudEndpointResource = new AliCloud.Pvtz.Endpoint("alicloudEndpointResource", new()
    {
        EndpointName = "string",
        IpConfigs = new[]
        {
            new AliCloud.Pvtz.Inputs.EndpointIpConfigArgs
            {
                CidrBlock = "string",
                VswitchId = "string",
                ZoneId = "string",
                Ip = "string",
            },
        },
        SecurityGroupId = "string",
        VpcId = "string",
        VpcRegionId = "string",
    });
    
    example, err := pvtz.NewEndpoint(ctx, "alicloudEndpointResource", &pvtz.EndpointArgs{
    	EndpointName: pulumi.String("string"),
    	IpConfigs: pvtz.EndpointIpConfigArray{
    		&pvtz.EndpointIpConfigArgs{
    			CidrBlock: pulumi.String("string"),
    			VswitchId: pulumi.String("string"),
    			ZoneId:    pulumi.String("string"),
    			Ip:        pulumi.String("string"),
    		},
    	},
    	SecurityGroupId: pulumi.String("string"),
    	VpcId:           pulumi.String("string"),
    	VpcRegionId:     pulumi.String("string"),
    })
    
    var alicloudEndpointResource = new Endpoint("alicloudEndpointResource", EndpointArgs.builder()
        .endpointName("string")
        .ipConfigs(EndpointIpConfigArgs.builder()
            .cidrBlock("string")
            .vswitchId("string")
            .zoneId("string")
            .ip("string")
            .build())
        .securityGroupId("string")
        .vpcId("string")
        .vpcRegionId("string")
        .build());
    
    alicloud_endpoint_resource = alicloud.pvtz.Endpoint("alicloudEndpointResource",
        endpoint_name="string",
        ip_configs=[{
            "cidr_block": "string",
            "vswitch_id": "string",
            "zone_id": "string",
            "ip": "string",
        }],
        security_group_id="string",
        vpc_id="string",
        vpc_region_id="string")
    
    const alicloudEndpointResource = new alicloud.pvtz.Endpoint("alicloudEndpointResource", {
        endpointName: "string",
        ipConfigs: [{
            cidrBlock: "string",
            vswitchId: "string",
            zoneId: "string",
            ip: "string",
        }],
        securityGroupId: "string",
        vpcId: "string",
        vpcRegionId: "string",
    });
    
    type: alicloud:pvtz:Endpoint
    properties:
        endpointName: string
        ipConfigs:
            - cidrBlock: string
              ip: string
              vswitchId: string
              zoneId: string
        securityGroupId: string
        vpcId: string
        vpcRegionId: string
    

    Endpoint 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 Endpoint resource accepts the following input properties:

    EndpointName string
    The name of the resource.
    IpConfigs List<Pulumi.AliCloud.Pvtz.Inputs.EndpointIpConfig>
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    SecurityGroupId string
    The ID of the Security Group.
    VpcId string
    The VPC ID.
    VpcRegionId string
    The Region of the VPC.
    EndpointName string
    The name of the resource.
    IpConfigs []EndpointIpConfigArgs
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    SecurityGroupId string
    The ID of the Security Group.
    VpcId string
    The VPC ID.
    VpcRegionId string
    The Region of the VPC.
    endpointName String
    The name of the resource.
    ipConfigs List<EndpointIpConfig>
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    securityGroupId String
    The ID of the Security Group.
    vpcId String
    The VPC ID.
    vpcRegionId String
    The Region of the VPC.
    endpointName string
    The name of the resource.
    ipConfigs EndpointIpConfig[]
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    securityGroupId string
    The ID of the Security Group.
    vpcId string
    The VPC ID.
    vpcRegionId string
    The Region of the VPC.
    endpoint_name str
    The name of the resource.
    ip_configs Sequence[EndpointIpConfigArgs]
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    security_group_id str
    The ID of the Security Group.
    vpc_id str
    The VPC ID.
    vpc_region_id str
    The Region of the VPC.
    endpointName String
    The name of the resource.
    ipConfigs List<Property Map>
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    securityGroupId String
    The ID of the Security Group.
    vpcId String
    The VPC ID.
    vpcRegionId String
    The Region of the VPC.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Endpoint resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.

    Look up Existing Endpoint Resource

    Get an existing Endpoint 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?: EndpointState, opts?: CustomResourceOptions): Endpoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            endpoint_name: Optional[str] = None,
            ip_configs: Optional[Sequence[EndpointIpConfigArgs]] = None,
            security_group_id: Optional[str] = None,
            status: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vpc_region_id: Optional[str] = None) -> Endpoint
    func GetEndpoint(ctx *Context, name string, id IDInput, state *EndpointState, opts ...ResourceOption) (*Endpoint, error)
    public static Endpoint Get(string name, Input<string> id, EndpointState? state, CustomResourceOptions? opts = null)
    public static Endpoint get(String name, Output<String> id, EndpointState 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:
    EndpointName string
    The name of the resource.
    IpConfigs List<Pulumi.AliCloud.Pvtz.Inputs.EndpointIpConfig>
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    SecurityGroupId string
    The ID of the Security Group.
    Status string
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.
    VpcId string
    The VPC ID.
    VpcRegionId string
    The Region of the VPC.
    EndpointName string
    The name of the resource.
    IpConfigs []EndpointIpConfigArgs
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    SecurityGroupId string
    The ID of the Security Group.
    Status string
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.
    VpcId string
    The VPC ID.
    VpcRegionId string
    The Region of the VPC.
    endpointName String
    The name of the resource.
    ipConfigs List<EndpointIpConfig>
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    securityGroupId String
    The ID of the Security Group.
    status String
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.
    vpcId String
    The VPC ID.
    vpcRegionId String
    The Region of the VPC.
    endpointName string
    The name of the resource.
    ipConfigs EndpointIpConfig[]
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    securityGroupId string
    The ID of the Security Group.
    status string
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.
    vpcId string
    The VPC ID.
    vpcRegionId string
    The Region of the VPC.
    endpoint_name str
    The name of the resource.
    ip_configs Sequence[EndpointIpConfigArgs]
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    security_group_id str
    The ID of the Security Group.
    status str
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.
    vpc_id str
    The VPC ID.
    vpc_region_id str
    The Region of the VPC.
    endpointName String
    The name of the resource.
    ipConfigs List<Property Map>
    The Ip Configs. See ip_configs below. NOTE: In order to ensure high availability, add at least 2 and up to 6.
    securityGroupId String
    The ID of the Security Group.
    status String
    The status of the resource. Valid values: CHANGE_FAILED, CHANGE_INIT, EXCEPTION, FAILED, INIT, SUCCESS.
    vpcId String
    The VPC ID.
    vpcRegionId String
    The Region of the VPC.

    Supporting Types

    EndpointIpConfig, EndpointIpConfigArgs

    CidrBlock string
    The Subnet mask.
    VswitchId string
    The Vswitch id.
    ZoneId string
    The Zone ID.
    Ip string
    The IP address within the parameter range of the subnet mask. It is recommended to use the IP address assigned by the system.
    CidrBlock string
    The Subnet mask.
    VswitchId string
    The Vswitch id.
    ZoneId string
    The Zone ID.
    Ip string
    The IP address within the parameter range of the subnet mask. It is recommended to use the IP address assigned by the system.
    cidrBlock String
    The Subnet mask.
    vswitchId String
    The Vswitch id.
    zoneId String
    The Zone ID.
    ip String
    The IP address within the parameter range of the subnet mask. It is recommended to use the IP address assigned by the system.
    cidrBlock string
    The Subnet mask.
    vswitchId string
    The Vswitch id.
    zoneId string
    The Zone ID.
    ip string
    The IP address within the parameter range of the subnet mask. It is recommended to use the IP address assigned by the system.
    cidr_block str
    The Subnet mask.
    vswitch_id str
    The Vswitch id.
    zone_id str
    The Zone ID.
    ip str
    The IP address within the parameter range of the subnet mask. It is recommended to use the IP address assigned by the system.
    cidrBlock String
    The Subnet mask.
    vswitchId String
    The Vswitch id.
    zoneId String
    The Zone ID.
    ip String
    The IP address within the parameter range of the subnet mask. It is recommended to use the IP address assigned by the system.

    Import

    Private Zone Endpoint can be imported using the id, e.g.

    $ pulumi import alicloud:pvtz/endpoint:Endpoint example <id>
    

    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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi