1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. BasicEndpoint
Alibaba Cloud v3.52.1 published on Thursday, Apr 4, 2024 by Pulumi

alicloud.ga.BasicEndpoint

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.52.1 published on Thursday, Apr 4, 2024 by Pulumi

    Provides a Global Accelerator (GA) Basic Endpoint resource.

    For information about Global Accelerator (GA) Basic Endpoint and how to use it, see What is Basic Endpoint.

    NOTE: Available since v1.194.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const region = config.get("region") || "cn-shenzhen";
    const endpointRegion = config.get("endpointRegion") || "cn-hangzhou";
    const sz = new alicloud.Provider("sz", {region: region});
    const hz = new alicloud.Provider("hz", {region: endpointRegion});
    const defaultZones = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: "terraform-example",
        cidrBlock: "172.17.3.0/24",
    }, {
        provider: alicloud.sz,
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vswitchName: "terraform-example",
        cidrBlock: "172.17.3.0/24",
        vpcId: defaultNetwork.id,
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
    }, {
        provider: alicloud.sz,
    });
    const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetwork.id}, {
        provider: alicloud.sz,
    });
    const defaultEcsNetworkInterface = new alicloud.ecs.EcsNetworkInterface("defaultEcsNetworkInterface", {
        vswitchId: defaultSwitch.id,
        securityGroupIds: [defaultSecurityGroup.id],
    }, {
        provider: alicloud.sz,
    });
    const defaultBasicAccelerator = new alicloud.ga.BasicAccelerator("defaultBasicAccelerator", {
        duration: 1,
        basicAcceleratorName: "terraform-example",
        description: "terraform-example",
        bandwidthBillingType: "CDT",
        autoUseCoupon: "true",
        autoPay: true,
    });
    const defaultBasicEndpointGroup = new alicloud.ga.BasicEndpointGroup("defaultBasicEndpointGroup", {
        acceleratorId: defaultBasicAccelerator.id,
        endpointGroupRegion: region,
        basicEndpointGroupName: "terraform-example",
        description: "terraform-example",
    });
    const defaultBasicEndpoint = new alicloud.ga.BasicEndpoint("defaultBasicEndpoint", {
        acceleratorId: defaultBasicAccelerator.id,
        endpointGroupId: defaultBasicEndpointGroup.id,
        endpointType: "ENI",
        endpointAddress: defaultEcsNetworkInterface.id,
        endpointSubAddressType: "secondary",
        endpointSubAddress: "192.168.0.1",
        basicEndpointName: "terraform-example",
    }, {
        provider: alicloud.hz,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    region = config.get("region")
    if region is None:
        region = "cn-shenzhen"
    endpoint_region = config.get("endpointRegion")
    if endpoint_region is None:
        endpoint_region = "cn-hangzhou"
    sz = alicloud.Provider("sz", region=region)
    hz = alicloud.Provider("hz", region=endpoint_region)
    default_zones = alicloud.get_zones(available_resource_creation="VSwitch")
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name="terraform-example",
        cidr_block="172.17.3.0/24",
        opts=pulumi.ResourceOptions(provider=alicloud["sz"]))
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vswitch_name="terraform-example",
        cidr_block="172.17.3.0/24",
        vpc_id=default_network.id,
        zone_id=default_zones.zones[0].id,
        opts=pulumi.ResourceOptions(provider=alicloud["sz"]))
    default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_network.id,
    opts=pulumi.ResourceOptions(provider=alicloud["sz"]))
    default_ecs_network_interface = alicloud.ecs.EcsNetworkInterface("defaultEcsNetworkInterface",
        vswitch_id=default_switch.id,
        security_group_ids=[default_security_group.id],
        opts=pulumi.ResourceOptions(provider=alicloud["sz"]))
    default_basic_accelerator = alicloud.ga.BasicAccelerator("defaultBasicAccelerator",
        duration=1,
        basic_accelerator_name="terraform-example",
        description="terraform-example",
        bandwidth_billing_type="CDT",
        auto_use_coupon="true",
        auto_pay=True)
    default_basic_endpoint_group = alicloud.ga.BasicEndpointGroup("defaultBasicEndpointGroup",
        accelerator_id=default_basic_accelerator.id,
        endpoint_group_region=region,
        basic_endpoint_group_name="terraform-example",
        description="terraform-example")
    default_basic_endpoint = alicloud.ga.BasicEndpoint("defaultBasicEndpoint",
        accelerator_id=default_basic_accelerator.id,
        endpoint_group_id=default_basic_endpoint_group.id,
        endpoint_type="ENI",
        endpoint_address=default_ecs_network_interface.id,
        endpoint_sub_address_type="secondary",
        endpoint_sub_address="192.168.0.1",
        basic_endpoint_name="terraform-example",
        opts=pulumi.ResourceOptions(provider=alicloud["hz"]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		region := "cn-shenzhen"
    		if param := cfg.Get("region"); param != "" {
    			region = param
    		}
    		endpointRegion := "cn-hangzhou"
    		if param := cfg.Get("endpointRegion"); param != "" {
    			endpointRegion = param
    		}
    		_, err := alicloud.NewProvider(ctx, "sz", &alicloud.ProviderArgs{
    			Region: pulumi.String(region),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = alicloud.NewProvider(ctx, "hz", &alicloud.ProviderArgs{
    			Region: pulumi.String(endpointRegion),
    		})
    		if err != nil {
    			return err
    		}
    		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String("terraform-example"),
    			CidrBlock: pulumi.String("172.17.3.0/24"),
    		}, pulumi.Provider(alicloud.Sz))
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VswitchName: pulumi.String("terraform-example"),
    			CidrBlock:   pulumi.String("172.17.3.0/24"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
    		}, pulumi.Provider(alicloud.Sz))
    		if err != nil {
    			return err
    		}
    		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
    			VpcId: defaultNetwork.ID(),
    		}, pulumi.Provider(alicloud.Sz))
    		if err != nil {
    			return err
    		}
    		defaultEcsNetworkInterface, err := ecs.NewEcsNetworkInterface(ctx, "defaultEcsNetworkInterface", &ecs.EcsNetworkInterfaceArgs{
    			VswitchId: defaultSwitch.ID(),
    			SecurityGroupIds: pulumi.StringArray{
    				defaultSecurityGroup.ID(),
    			},
    		}, pulumi.Provider(alicloud.Sz))
    		if err != nil {
    			return err
    		}
    		defaultBasicAccelerator, err := ga.NewBasicAccelerator(ctx, "defaultBasicAccelerator", &ga.BasicAcceleratorArgs{
    			Duration:             pulumi.Int(1),
    			BasicAcceleratorName: pulumi.String("terraform-example"),
    			Description:          pulumi.String("terraform-example"),
    			BandwidthBillingType: pulumi.String("CDT"),
    			AutoUseCoupon:        pulumi.String("true"),
    			AutoPay:              pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		defaultBasicEndpointGroup, err := ga.NewBasicEndpointGroup(ctx, "defaultBasicEndpointGroup", &ga.BasicEndpointGroupArgs{
    			AcceleratorId:          defaultBasicAccelerator.ID(),
    			EndpointGroupRegion:    pulumi.String(region),
    			BasicEndpointGroupName: pulumi.String("terraform-example"),
    			Description:            pulumi.String("terraform-example"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ga.NewBasicEndpoint(ctx, "defaultBasicEndpoint", &ga.BasicEndpointArgs{
    			AcceleratorId:          defaultBasicAccelerator.ID(),
    			EndpointGroupId:        defaultBasicEndpointGroup.ID(),
    			EndpointType:           pulumi.String("ENI"),
    			EndpointAddress:        defaultEcsNetworkInterface.ID(),
    			EndpointSubAddressType: pulumi.String("secondary"),
    			EndpointSubAddress:     pulumi.String("192.168.0.1"),
    			BasicEndpointName:      pulumi.String("terraform-example"),
    		}, pulumi.Provider(alicloud.Hz))
    		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 config = new Config();
        var region = config.Get("region") ?? "cn-shenzhen";
        var endpointRegion = config.Get("endpointRegion") ?? "cn-hangzhou";
        var sz = new AliCloud.Provider("sz", new()
        {
            Region = region,
        });
    
        var hz = new AliCloud.Provider("hz", new()
        {
            Region = endpointRegion,
        });
    
        var defaultZones = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = "terraform-example",
            CidrBlock = "172.17.3.0/24",
        }, new CustomResourceOptions
        {
            Provider = alicloud.Sz,
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VswitchName = "terraform-example",
            CidrBlock = "172.17.3.0/24",
            VpcId = defaultNetwork.Id,
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        }, new CustomResourceOptions
        {
            Provider = alicloud.Sz,
        });
    
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new()
        {
            VpcId = defaultNetwork.Id,
        }, new CustomResourceOptions
        {
            Provider = alicloud.Sz,
        });
    
        var defaultEcsNetworkInterface = new AliCloud.Ecs.EcsNetworkInterface("defaultEcsNetworkInterface", new()
        {
            VswitchId = defaultSwitch.Id,
            SecurityGroupIds = new[]
            {
                defaultSecurityGroup.Id,
            },
        }, new CustomResourceOptions
        {
            Provider = alicloud.Sz,
        });
    
        var defaultBasicAccelerator = new AliCloud.Ga.BasicAccelerator("defaultBasicAccelerator", new()
        {
            Duration = 1,
            BasicAcceleratorName = "terraform-example",
            Description = "terraform-example",
            BandwidthBillingType = "CDT",
            AutoUseCoupon = "true",
            AutoPay = true,
        });
    
        var defaultBasicEndpointGroup = new AliCloud.Ga.BasicEndpointGroup("defaultBasicEndpointGroup", new()
        {
            AcceleratorId = defaultBasicAccelerator.Id,
            EndpointGroupRegion = region,
            BasicEndpointGroupName = "terraform-example",
            Description = "terraform-example",
        });
    
        var defaultBasicEndpoint = new AliCloud.Ga.BasicEndpoint("defaultBasicEndpoint", new()
        {
            AcceleratorId = defaultBasicAccelerator.Id,
            EndpointGroupId = defaultBasicEndpointGroup.Id,
            EndpointType = "ENI",
            EndpointAddress = defaultEcsNetworkInterface.Id,
            EndpointSubAddressType = "secondary",
            EndpointSubAddress = "192.168.0.1",
            BasicEndpointName = "terraform-example",
        }, new CustomResourceOptions
        {
            Provider = alicloud.Hz,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.Provider;
    import com.pulumi.alicloud.ProviderArgs;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.ecs.SecurityGroup;
    import com.pulumi.alicloud.ecs.SecurityGroupArgs;
    import com.pulumi.alicloud.ecs.EcsNetworkInterface;
    import com.pulumi.alicloud.ecs.EcsNetworkInterfaceArgs;
    import com.pulumi.alicloud.ga.BasicAccelerator;
    import com.pulumi.alicloud.ga.BasicAcceleratorArgs;
    import com.pulumi.alicloud.ga.BasicEndpointGroup;
    import com.pulumi.alicloud.ga.BasicEndpointGroupArgs;
    import com.pulumi.alicloud.ga.BasicEndpoint;
    import com.pulumi.alicloud.ga.BasicEndpointArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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) {
            final var config = ctx.config();
            final var region = config.get("region").orElse("cn-shenzhen");
            final var endpointRegion = config.get("endpointRegion").orElse("cn-hangzhou");
            var sz = new Provider("sz", ProviderArgs.builder()        
                .region(region)
                .build());
    
            var hz = new Provider("hz", ProviderArgs.builder()        
                .region(endpointRegion)
                .build());
    
            final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
                .vpcName("terraform-example")
                .cidrBlock("172.17.3.0/24")
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.sz())
                    .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
                .vswitchName("terraform-example")
                .cidrBlock("172.17.3.0/24")
                .vpcId(defaultNetwork.id())
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.sz())
                    .build());
    
            var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()        
                .vpcId(defaultNetwork.id())
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.sz())
                    .build());
    
            var defaultEcsNetworkInterface = new EcsNetworkInterface("defaultEcsNetworkInterface", EcsNetworkInterfaceArgs.builder()        
                .vswitchId(defaultSwitch.id())
                .securityGroupIds(defaultSecurityGroup.id())
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.sz())
                    .build());
    
            var defaultBasicAccelerator = new BasicAccelerator("defaultBasicAccelerator", BasicAcceleratorArgs.builder()        
                .duration(1)
                .basicAcceleratorName("terraform-example")
                .description("terraform-example")
                .bandwidthBillingType("CDT")
                .autoUseCoupon("true")
                .autoPay(true)
                .build());
    
            var defaultBasicEndpointGroup = new BasicEndpointGroup("defaultBasicEndpointGroup", BasicEndpointGroupArgs.builder()        
                .acceleratorId(defaultBasicAccelerator.id())
                .endpointGroupRegion(region)
                .basicEndpointGroupName("terraform-example")
                .description("terraform-example")
                .build());
    
            var defaultBasicEndpoint = new BasicEndpoint("defaultBasicEndpoint", BasicEndpointArgs.builder()        
                .acceleratorId(defaultBasicAccelerator.id())
                .endpointGroupId(defaultBasicEndpointGroup.id())
                .endpointType("ENI")
                .endpointAddress(defaultEcsNetworkInterface.id())
                .endpointSubAddressType("secondary")
                .endpointSubAddress("192.168.0.1")
                .basicEndpointName("terraform-example")
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.hz())
                    .build());
    
        }
    }
    
    configuration:
      region:
        type: string
        default: cn-shenzhen
      endpointRegion:
        type: string
        default: cn-hangzhou
    resources:
      sz:
        type: pulumi:providers:alicloud
        properties:
          region: ${region}
      hz:
        type: pulumi:providers:alicloud
        properties:
          region: ${endpointRegion}
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: terraform-example
          cidrBlock: 172.17.3.0/24
        options:
          provider: ${alicloud.sz}
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: terraform-example
          cidrBlock: 172.17.3.0/24
          vpcId: ${defaultNetwork.id}
          zoneId: ${defaultZones.zones[0].id}
        options:
          provider: ${alicloud.sz}
      defaultSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        properties:
          vpcId: ${defaultNetwork.id}
        options:
          provider: ${alicloud.sz}
      defaultEcsNetworkInterface:
        type: alicloud:ecs:EcsNetworkInterface
        properties:
          vswitchId: ${defaultSwitch.id}
          securityGroupIds:
            - ${defaultSecurityGroup.id}
        options:
          provider: ${alicloud.sz}
      defaultBasicAccelerator:
        type: alicloud:ga:BasicAccelerator
        properties:
          duration: 1
          basicAcceleratorName: terraform-example
          description: terraform-example
          bandwidthBillingType: CDT
          autoUseCoupon: 'true'
          autoPay: true
      defaultBasicEndpointGroup:
        type: alicloud:ga:BasicEndpointGroup
        properties:
          acceleratorId: ${defaultBasicAccelerator.id}
          endpointGroupRegion: ${region}
          basicEndpointGroupName: terraform-example
          description: terraform-example
      defaultBasicEndpoint:
        type: alicloud:ga:BasicEndpoint
        properties:
          acceleratorId: ${defaultBasicAccelerator.id}
          endpointGroupId: ${defaultBasicEndpointGroup.id}
          endpointType: ENI
          endpointAddress: ${defaultEcsNetworkInterface.id}
          endpointSubAddressType: secondary
          endpointSubAddress: 192.168.0.1
          basicEndpointName: terraform-example
        options:
          provider: ${alicloud.hz}
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create BasicEndpoint Resource

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

    Constructor syntax

    new BasicEndpoint(name: string, args: BasicEndpointArgs, opts?: CustomResourceOptions);
    @overload
    def BasicEndpoint(resource_name: str,
                      args: BasicEndpointArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def BasicEndpoint(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      accelerator_id: Optional[str] = None,
                      endpoint_address: Optional[str] = None,
                      endpoint_group_id: Optional[str] = None,
                      endpoint_type: Optional[str] = None,
                      basic_endpoint_name: Optional[str] = None,
                      endpoint_sub_address: Optional[str] = None,
                      endpoint_sub_address_type: Optional[str] = None,
                      endpoint_zone_id: Optional[str] = None)
    func NewBasicEndpoint(ctx *Context, name string, args BasicEndpointArgs, opts ...ResourceOption) (*BasicEndpoint, error)
    public BasicEndpoint(string name, BasicEndpointArgs args, CustomResourceOptions? opts = null)
    public BasicEndpoint(String name, BasicEndpointArgs args)
    public BasicEndpoint(String name, BasicEndpointArgs args, CustomResourceOptions options)
    
    type: alicloud:ga:BasicEndpoint
    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 BasicEndpointArgs
    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 BasicEndpointArgs
    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 BasicEndpointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BasicEndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BasicEndpointArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var basicEndpointResource = new AliCloud.Ga.BasicEndpoint("basicEndpointResource", new()
    {
        AcceleratorId = "string",
        EndpointAddress = "string",
        EndpointGroupId = "string",
        EndpointType = "string",
        BasicEndpointName = "string",
        EndpointSubAddress = "string",
        EndpointSubAddressType = "string",
        EndpointZoneId = "string",
    });
    
    example, err := ga.NewBasicEndpoint(ctx, "basicEndpointResource", &ga.BasicEndpointArgs{
    	AcceleratorId:          pulumi.String("string"),
    	EndpointAddress:        pulumi.String("string"),
    	EndpointGroupId:        pulumi.String("string"),
    	EndpointType:           pulumi.String("string"),
    	BasicEndpointName:      pulumi.String("string"),
    	EndpointSubAddress:     pulumi.String("string"),
    	EndpointSubAddressType: pulumi.String("string"),
    	EndpointZoneId:         pulumi.String("string"),
    })
    
    var basicEndpointResource = new BasicEndpoint("basicEndpointResource", BasicEndpointArgs.builder()        
        .acceleratorId("string")
        .endpointAddress("string")
        .endpointGroupId("string")
        .endpointType("string")
        .basicEndpointName("string")
        .endpointSubAddress("string")
        .endpointSubAddressType("string")
        .endpointZoneId("string")
        .build());
    
    basic_endpoint_resource = alicloud.ga.BasicEndpoint("basicEndpointResource",
        accelerator_id="string",
        endpoint_address="string",
        endpoint_group_id="string",
        endpoint_type="string",
        basic_endpoint_name="string",
        endpoint_sub_address="string",
        endpoint_sub_address_type="string",
        endpoint_zone_id="string")
    
    const basicEndpointResource = new alicloud.ga.BasicEndpoint("basicEndpointResource", {
        acceleratorId: "string",
        endpointAddress: "string",
        endpointGroupId: "string",
        endpointType: "string",
        basicEndpointName: "string",
        endpointSubAddress: "string",
        endpointSubAddressType: "string",
        endpointZoneId: "string",
    });
    
    type: alicloud:ga:BasicEndpoint
    properties:
        acceleratorId: string
        basicEndpointName: string
        endpointAddress: string
        endpointGroupId: string
        endpointSubAddress: string
        endpointSubAddressType: string
        endpointType: string
        endpointZoneId: string
    

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

    AcceleratorId string
    The ID of the Basic GA instance.
    EndpointAddress string
    The address of the Basic Endpoint.
    EndpointGroupId string
    The ID of the Basic Endpoint Group.
    EndpointType string
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    BasicEndpointName string
    The name of the Basic Endpoint.
    EndpointSubAddress string
    The sub address of the Basic Endpoint.
    EndpointSubAddressType string
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    EndpointZoneId string
    The zone id of the Basic Endpoint.
    AcceleratorId string
    The ID of the Basic GA instance.
    EndpointAddress string
    The address of the Basic Endpoint.
    EndpointGroupId string
    The ID of the Basic Endpoint Group.
    EndpointType string
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    BasicEndpointName string
    The name of the Basic Endpoint.
    EndpointSubAddress string
    The sub address of the Basic Endpoint.
    EndpointSubAddressType string
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    EndpointZoneId string
    The zone id of the Basic Endpoint.
    acceleratorId String
    The ID of the Basic GA instance.
    endpointAddress String
    The address of the Basic Endpoint.
    endpointGroupId String
    The ID of the Basic Endpoint Group.
    endpointType String
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    basicEndpointName String
    The name of the Basic Endpoint.
    endpointSubAddress String
    The sub address of the Basic Endpoint.
    endpointSubAddressType String
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    endpointZoneId String
    The zone id of the Basic Endpoint.
    acceleratorId string
    The ID of the Basic GA instance.
    endpointAddress string
    The address of the Basic Endpoint.
    endpointGroupId string
    The ID of the Basic Endpoint Group.
    endpointType string
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    basicEndpointName string
    The name of the Basic Endpoint.
    endpointSubAddress string
    The sub address of the Basic Endpoint.
    endpointSubAddressType string
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    endpointZoneId string
    The zone id of the Basic Endpoint.
    accelerator_id str
    The ID of the Basic GA instance.
    endpoint_address str
    The address of the Basic Endpoint.
    endpoint_group_id str
    The ID of the Basic Endpoint Group.
    endpoint_type str
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    basic_endpoint_name str
    The name of the Basic Endpoint.
    endpoint_sub_address str
    The sub address of the Basic Endpoint.
    endpoint_sub_address_type str
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    endpoint_zone_id str
    The zone id of the Basic Endpoint.
    acceleratorId String
    The ID of the Basic GA instance.
    endpointAddress String
    The address of the Basic Endpoint.
    endpointGroupId String
    The ID of the Basic Endpoint Group.
    endpointType String
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    basicEndpointName String
    The name of the Basic Endpoint.
    endpointSubAddress String
    The sub address of the Basic Endpoint.
    endpointSubAddressType String
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    endpointZoneId String
    The zone id of the Basic Endpoint.

    Outputs

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

    EndpointId string
    The ID of the Basic Endpoint.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Basic Endpoint.
    EndpointId string
    The ID of the Basic Endpoint.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Basic Endpoint.
    endpointId String
    The ID of the Basic Endpoint.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Basic Endpoint.
    endpointId string
    The ID of the Basic Endpoint.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the Basic Endpoint.
    endpoint_id str
    The ID of the Basic Endpoint.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the Basic Endpoint.
    endpointId String
    The ID of the Basic Endpoint.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Basic Endpoint.

    Look up Existing BasicEndpoint Resource

    Get an existing BasicEndpoint 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?: BasicEndpointState, opts?: CustomResourceOptions): BasicEndpoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accelerator_id: Optional[str] = None,
            basic_endpoint_name: Optional[str] = None,
            endpoint_address: Optional[str] = None,
            endpoint_group_id: Optional[str] = None,
            endpoint_id: Optional[str] = None,
            endpoint_sub_address: Optional[str] = None,
            endpoint_sub_address_type: Optional[str] = None,
            endpoint_type: Optional[str] = None,
            endpoint_zone_id: Optional[str] = None,
            status: Optional[str] = None) -> BasicEndpoint
    func GetBasicEndpoint(ctx *Context, name string, id IDInput, state *BasicEndpointState, opts ...ResourceOption) (*BasicEndpoint, error)
    public static BasicEndpoint Get(string name, Input<string> id, BasicEndpointState? state, CustomResourceOptions? opts = null)
    public static BasicEndpoint get(String name, Output<String> id, BasicEndpointState 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:
    AcceleratorId string
    The ID of the Basic GA instance.
    BasicEndpointName string
    The name of the Basic Endpoint.
    EndpointAddress string
    The address of the Basic Endpoint.
    EndpointGroupId string
    The ID of the Basic Endpoint Group.
    EndpointId string
    The ID of the Basic Endpoint.
    EndpointSubAddress string
    The sub address of the Basic Endpoint.
    EndpointSubAddressType string
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    EndpointType string
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    EndpointZoneId string
    The zone id of the Basic Endpoint.
    Status string
    The status of the Basic Endpoint.
    AcceleratorId string
    The ID of the Basic GA instance.
    BasicEndpointName string
    The name of the Basic Endpoint.
    EndpointAddress string
    The address of the Basic Endpoint.
    EndpointGroupId string
    The ID of the Basic Endpoint Group.
    EndpointId string
    The ID of the Basic Endpoint.
    EndpointSubAddress string
    The sub address of the Basic Endpoint.
    EndpointSubAddressType string
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    EndpointType string
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    EndpointZoneId string
    The zone id of the Basic Endpoint.
    Status string
    The status of the Basic Endpoint.
    acceleratorId String
    The ID of the Basic GA instance.
    basicEndpointName String
    The name of the Basic Endpoint.
    endpointAddress String
    The address of the Basic Endpoint.
    endpointGroupId String
    The ID of the Basic Endpoint Group.
    endpointId String
    The ID of the Basic Endpoint.
    endpointSubAddress String
    The sub address of the Basic Endpoint.
    endpointSubAddressType String
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    endpointType String
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    endpointZoneId String
    The zone id of the Basic Endpoint.
    status String
    The status of the Basic Endpoint.
    acceleratorId string
    The ID of the Basic GA instance.
    basicEndpointName string
    The name of the Basic Endpoint.
    endpointAddress string
    The address of the Basic Endpoint.
    endpointGroupId string
    The ID of the Basic Endpoint Group.
    endpointId string
    The ID of the Basic Endpoint.
    endpointSubAddress string
    The sub address of the Basic Endpoint.
    endpointSubAddressType string
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    endpointType string
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    endpointZoneId string
    The zone id of the Basic Endpoint.
    status string
    The status of the Basic Endpoint.
    accelerator_id str
    The ID of the Basic GA instance.
    basic_endpoint_name str
    The name of the Basic Endpoint.
    endpoint_address str
    The address of the Basic Endpoint.
    endpoint_group_id str
    The ID of the Basic Endpoint Group.
    endpoint_id str
    The ID of the Basic Endpoint.
    endpoint_sub_address str
    The sub address of the Basic Endpoint.
    endpoint_sub_address_type str
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    endpoint_type str
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    endpoint_zone_id str
    The zone id of the Basic Endpoint.
    status str
    The status of the Basic Endpoint.
    acceleratorId String
    The ID of the Basic GA instance.
    basicEndpointName String
    The name of the Basic Endpoint.
    endpointAddress String
    The address of the Basic Endpoint.
    endpointGroupId String
    The ID of the Basic Endpoint Group.
    endpointId String
    The ID of the Basic Endpoint.
    endpointSubAddress String
    The sub address of the Basic Endpoint.
    endpointSubAddressType String
    The sub address type of the Basic Endpoint. Valid values: primary, secondary.
    endpointType String
    The type of the Basic Endpoint. Valid values: ENI, SLB, ECS and NLB.
    endpointZoneId String
    The zone id of the Basic Endpoint.
    status String
    The status of the Basic Endpoint.

    Import

    Global Accelerator (GA) Basic Endpoint can be imported using the id, e.g.

    $ pulumi import alicloud:ga/basicEndpoint:BasicEndpoint example <endpoint_group_id>:<endpoint_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.52.1 published on Thursday, Apr 4, 2024 by Pulumi