Alibaba Cloud v3.38.0, Jun 2 23
Alibaba Cloud v3.38.0, Jun 2 23
alicloud.ga.BasicEndpoint
Explore with Pulumi AI
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 in v1.194.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var sz = new AliCloud.Provider("sz", new()
{
Region = "cn-shenzhen",
});
var hz = new AliCloud.Provider("hz", new()
{
Region = "cn-hangzhou",
});
var defaultEcsNetworkInterface = new AliCloud.Ecs.EcsNetworkInterface("defaultEcsNetworkInterface", new()
{
VswitchId = "your_vswitch_id",
SecurityGroupIds = new[]
{
"your_security_group_id",
},
}, new CustomResourceOptions
{
Provider = "alicloud.sz",
});
var defaultBasicEndpoint = new AliCloud.Ga.BasicEndpoint("defaultBasicEndpoint", new()
{
AcceleratorId = "your_accelerator_id",
EndpointGroupId = "your_endpoint_group_id",
EndpointType = "ENI",
EndpointAddress = defaultEcsNetworkInterface.Id,
EndpointSubAddressType = "secondary",
EndpointSubAddress = "192.168.0.1",
BasicEndpointName = "example_value",
}, new CustomResourceOptions
{
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/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alicloud.NewProvider(ctx, "sz", &alicloud.ProviderArgs{
Region: pulumi.String("cn-shenzhen"),
})
if err != nil {
return err
}
_, err = alicloud.NewProvider(ctx, "hz", &alicloud.ProviderArgs{
Region: pulumi.String("cn-hangzhou"),
})
if err != nil {
return err
}
defaultEcsNetworkInterface, err := ecs.NewEcsNetworkInterface(ctx, "defaultEcsNetworkInterface", &ecs.EcsNetworkInterfaceArgs{
VswitchId: pulumi.String("your_vswitch_id"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("your_security_group_id"),
},
}, pulumi.Provider("alicloud.sz"))
if err != nil {
return err
}
_, err = ga.NewBasicEndpoint(ctx, "defaultBasicEndpoint", &ga.BasicEndpointArgs{
AcceleratorId: pulumi.String("your_accelerator_id"),
EndpointGroupId: pulumi.String("your_endpoint_group_id"),
EndpointType: pulumi.String("ENI"),
EndpointAddress: defaultEcsNetworkInterface.ID(),
EndpointSubAddressType: pulumi.String("secondary"),
EndpointSubAddress: pulumi.String("192.168.0.1"),
BasicEndpointName: pulumi.String("example_value"),
}, pulumi.Provider("alicloud.hz"))
if err != nil {
return err
}
return nil
})
}
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.ecs.EcsNetworkInterface;
import com.pulumi.alicloud.ecs.EcsNetworkInterfaceArgs;
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) {
var sz = new Provider("sz", ProviderArgs.builder()
.region("cn-shenzhen")
.build());
var hz = new Provider("hz", ProviderArgs.builder()
.region("cn-hangzhou")
.build());
var defaultEcsNetworkInterface = new EcsNetworkInterface("defaultEcsNetworkInterface", EcsNetworkInterfaceArgs.builder()
.vswitchId("your_vswitch_id")
.securityGroupIds("your_security_group_id")
.build(), CustomResourceOptions.builder()
.provider("alicloud.sz")
.build());
var defaultBasicEndpoint = new BasicEndpoint("defaultBasicEndpoint", BasicEndpointArgs.builder()
.acceleratorId("your_accelerator_id")
.endpointGroupId("your_endpoint_group_id")
.endpointType("ENI")
.endpointAddress(defaultEcsNetworkInterface.id())
.endpointSubAddressType("secondary")
.endpointSubAddress("192.168.0.1")
.basicEndpointName("example_value")
.build(), CustomResourceOptions.builder()
.provider("alicloud.hz")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
sz = alicloud.Provider("sz", region="cn-shenzhen")
hz = alicloud.Provider("hz", region="cn-hangzhou")
default_ecs_network_interface = alicloud.ecs.EcsNetworkInterface("defaultEcsNetworkInterface",
vswitch_id="your_vswitch_id",
security_group_ids=["your_security_group_id"],
opts=pulumi.ResourceOptions(provider="alicloud.sz"))
default_basic_endpoint = alicloud.ga.BasicEndpoint("defaultBasicEndpoint",
accelerator_id="your_accelerator_id",
endpoint_group_id="your_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="example_value",
opts=pulumi.ResourceOptions(provider="alicloud.hz"))
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const sz = new alicloud.Provider("sz", {region: "cn-shenzhen"});
const hz = new alicloud.Provider("hz", {region: "cn-hangzhou"});
const defaultEcsNetworkInterface = new alicloud.ecs.EcsNetworkInterface("defaultEcsNetworkInterface", {
vswitchId: "your_vswitch_id",
securityGroupIds: ["your_security_group_id"],
}, {
provider: "alicloud.sz",
});
const defaultBasicEndpoint = new alicloud.ga.BasicEndpoint("defaultBasicEndpoint", {
acceleratorId: "your_accelerator_id",
endpointGroupId: "your_endpoint_group_id",
endpointType: "ENI",
endpointAddress: defaultEcsNetworkInterface.id,
endpointSubAddressType: "secondary",
endpointSubAddress: "192.168.0.1",
basicEndpointName: "example_value",
}, {
provider: "alicloud.hz",
});
resources:
sz:
type: pulumi:providers:alicloud
properties:
region: cn-shenzhen
hz:
type: pulumi:providers:alicloud
properties:
region: cn-hangzhou
defaultEcsNetworkInterface:
type: alicloud:ecs:EcsNetworkInterface
properties:
vswitchId: your_vswitch_id
securityGroupIds:
- your_security_group_id
options:
provider: alicloud.sz
defaultBasicEndpoint:
type: alicloud:ga:BasicEndpoint
properties:
acceleratorId: your_accelerator_id
endpointGroupId: your_endpoint_group_id
endpointType: ENI
endpointAddress: ${defaultEcsNetworkInterface.id}
endpointSubAddressType: secondary
endpointSubAddress: 192.168.0.1
basicEndpointName: example_value
options:
provider: alicloud.hz
Create BasicEndpoint Resource
new BasicEndpoint(name: string, args: BasicEndpointArgs, opts?: CustomResourceOptions);
@overload
def BasicEndpoint(resource_name: 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_sub_address: Optional[str] = None,
endpoint_sub_address_type: Optional[str] = None,
endpoint_type: Optional[str] = None,
endpoint_zone_id: Optional[str] = None)
@overload
def BasicEndpoint(resource_name: str,
args: BasicEndpointArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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:
- Accelerator
Id string The ID of the Basic GA instance.
- Endpoint
Address string The address of the Basic Endpoint.
- Endpoint
Group stringId The ID of the Basic Endpoint Group.
- Endpoint
Type string The type of the Basic Endpoint. Valid values:
ENI
,SLB
,ECS
andNLB
.- Basic
Endpoint stringName The name of the Basic Endpoint.
- Endpoint
Sub stringAddress The sub address of the Basic Endpoint.
- Endpoint
Sub stringAddress Type The sub address type of the Basic Endpoint. Valid values:
primary
,secondary
.- Endpoint
Zone stringId The zone id of the Basic Endpoint.
- Accelerator
Id string The ID of the Basic GA instance.
- Endpoint
Address string The address of the Basic Endpoint.
- Endpoint
Group stringId The ID of the Basic Endpoint Group.
- Endpoint
Type string The type of the Basic Endpoint. Valid values:
ENI
,SLB
,ECS
andNLB
.- Basic
Endpoint stringName The name of the Basic Endpoint.
- Endpoint
Sub stringAddress The sub address of the Basic Endpoint.
- Endpoint
Sub stringAddress Type The sub address type of the Basic Endpoint. Valid values:
primary
,secondary
.- Endpoint
Zone stringId The zone id of the Basic Endpoint.
- accelerator
Id String The ID of the Basic GA instance.
- endpoint
Address String The address of the Basic Endpoint.
- endpoint
Group StringId The ID of the Basic Endpoint Group.
- endpoint
Type String The type of the Basic Endpoint. Valid values:
ENI
,SLB
,ECS
andNLB
.- basic
Endpoint StringName The name of the Basic Endpoint.
- endpoint
Sub StringAddress The sub address of the Basic Endpoint.
- endpoint
Sub StringAddress Type The sub address type of the Basic Endpoint. Valid values:
primary
,secondary
.- endpoint
Zone StringId The zone id of the Basic Endpoint.
- accelerator
Id string The ID of the Basic GA instance.
- endpoint
Address string The address of the Basic Endpoint.
- endpoint
Group stringId The ID of the Basic Endpoint Group.
- endpoint
Type string The type of the Basic Endpoint. Valid values:
ENI
,SLB
,ECS
andNLB
.- basic
Endpoint stringName The name of the Basic Endpoint.
- endpoint
Sub stringAddress The sub address of the Basic Endpoint.
- endpoint
Sub stringAddress Type The sub address type of the Basic Endpoint. Valid values:
primary
,secondary
.- endpoint
Zone stringId 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_ strid The ID of the Basic Endpoint Group.
- endpoint_
type str The type of the Basic Endpoint. Valid values:
ENI
,SLB
,ECS
andNLB
.- basic_
endpoint_ strname The name of the Basic Endpoint.
- endpoint_
sub_ straddress The sub address of the Basic Endpoint.
- endpoint_
sub_ straddress_ type The sub address type of the Basic Endpoint. Valid values:
primary
,secondary
.- endpoint_
zone_ strid The zone id of the Basic Endpoint.
- accelerator
Id String The ID of the Basic GA instance.
- endpoint
Address String The address of the Basic Endpoint.
- endpoint
Group StringId The ID of the Basic Endpoint Group.
- endpoint
Type String The type of the Basic Endpoint. Valid values:
ENI
,SLB
,ECS
andNLB
.- basic
Endpoint StringName The name of the Basic Endpoint.
- endpoint
Sub StringAddress The sub address of the Basic Endpoint.
- endpoint
Sub StringAddress Type The sub address type of the Basic Endpoint. Valid values:
primary
,secondary
.- endpoint
Zone StringId 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:
- Endpoint
Id 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 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 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 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.
- endpoint
Id 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.
- Accelerator
Id string The ID of the Basic GA instance.
- Basic
Endpoint stringName The name of the Basic Endpoint.
- Endpoint
Address string The address of the Basic Endpoint.
- Endpoint
Group stringId The ID of the Basic Endpoint Group.
- Endpoint
Id string The ID of the Basic Endpoint.
- Endpoint
Sub stringAddress The sub address of the Basic Endpoint.
- Endpoint
Sub stringAddress Type The sub address type of the Basic Endpoint. Valid values:
primary
,secondary
.- Endpoint
Type string The type of the Basic Endpoint. Valid values:
ENI
,SLB
,ECS
andNLB
.- Endpoint
Zone stringId The zone id of the Basic Endpoint.
- Status string
The status of the Basic Endpoint.
- Accelerator
Id string The ID of the Basic GA instance.
- Basic
Endpoint stringName The name of the Basic Endpoint.
- Endpoint
Address string The address of the Basic Endpoint.
- Endpoint
Group stringId The ID of the Basic Endpoint Group.
- Endpoint
Id string The ID of the Basic Endpoint.
- Endpoint
Sub stringAddress The sub address of the Basic Endpoint.
- Endpoint
Sub stringAddress Type The sub address type of the Basic Endpoint. Valid values:
primary
,secondary
.- Endpoint
Type string The type of the Basic Endpoint. Valid values:
ENI
,SLB
,ECS
andNLB
.- Endpoint
Zone stringId The zone id of the Basic Endpoint.
- Status string
The status of the Basic Endpoint.
- accelerator
Id String The ID of the Basic GA instance.
- basic
Endpoint StringName The name of the Basic Endpoint.
- endpoint
Address String The address of the Basic Endpoint.
- endpoint
Group StringId The ID of the Basic Endpoint Group.
- endpoint
Id String The ID of the Basic Endpoint.
- endpoint
Sub StringAddress The sub address of the Basic Endpoint.
- endpoint
Sub StringAddress Type The sub address type of the Basic Endpoint. Valid values:
primary
,secondary
.- endpoint
Type String The type of the Basic Endpoint. Valid values:
ENI
,SLB
,ECS
andNLB
.- endpoint
Zone StringId The zone id of the Basic Endpoint.
- status String
The status of the Basic Endpoint.
- accelerator
Id string The ID of the Basic GA instance.
- basic
Endpoint stringName The name of the Basic Endpoint.
- endpoint
Address string The address of the Basic Endpoint.
- endpoint
Group stringId The ID of the Basic Endpoint Group.
- endpoint
Id string The ID of the Basic Endpoint.
- endpoint
Sub stringAddress The sub address of the Basic Endpoint.
- endpoint
Sub stringAddress Type The sub address type of the Basic Endpoint. Valid values:
primary
,secondary
.- endpoint
Type string The type of the Basic Endpoint. Valid values:
ENI
,SLB
,ECS
andNLB
.- endpoint
Zone stringId 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_ strname The name of the Basic Endpoint.
- endpoint_
address str The address of the Basic Endpoint.
- endpoint_
group_ strid The ID of the Basic Endpoint Group.
- endpoint_
id str The ID of the Basic Endpoint.
- endpoint_
sub_ straddress The sub address of the Basic Endpoint.
- endpoint_
sub_ straddress_ type 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
andNLB
.- endpoint_
zone_ strid The zone id of the Basic Endpoint.
- status str
The status of the Basic Endpoint.
- accelerator
Id String The ID of the Basic GA instance.
- basic
Endpoint StringName The name of the Basic Endpoint.
- endpoint
Address String The address of the Basic Endpoint.
- endpoint
Group StringId The ID of the Basic Endpoint Group.
- endpoint
Id String The ID of the Basic Endpoint.
- endpoint
Sub StringAddress The sub address of the Basic Endpoint.
- endpoint
Sub StringAddress Type The sub address type of the Basic Endpoint. Valid values:
primary
,secondary
.- endpoint
Type String The type of the Basic Endpoint. Valid values:
ENI
,SLB
,ECS
andNLB
.- endpoint
Zone StringId 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>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.