alicloud.mse.Gateway
Explore with Pulumi AI
Provides a Microservice Engine (MSE) Gateway resource.
For information about Microservice Engine (MSE) Gateway and how to use it, see What is Gateway.
NOTE: Available in v1.157.0+.
Create Gateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Gateway(name: string, args: GatewayArgs, opts?: CustomResourceOptions);
@overload
def Gateway(resource_name: str,
args: GatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Gateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
replica: Optional[int] = None,
spec: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
backup_vswitch_id: Optional[str] = None,
delete_slb: Optional[bool] = None,
enterprise_security_group: Optional[bool] = None,
gateway_name: Optional[str] = None,
internet_slb_spec: Optional[str] = None,
slb_spec: Optional[str] = None)
func NewGateway(ctx *Context, name string, args GatewayArgs, opts ...ResourceOption) (*Gateway, error)
public Gateway(string name, GatewayArgs args, CustomResourceOptions? opts = null)
public Gateway(String name, GatewayArgs args)
public Gateway(String name, GatewayArgs args, CustomResourceOptions options)
type: alicloud:mse:Gateway
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 GatewayArgs
- 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 GatewayArgs
- 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 GatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayArgs
- 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 examplegatewayResourceResourceFromMsegateway = new AliCloud.Mse.Gateway("examplegatewayResourceResourceFromMsegateway", new()
{
Replica = 0,
Spec = "string",
VpcId = "string",
VswitchId = "string",
BackupVswitchId = "string",
DeleteSlb = false,
EnterpriseSecurityGroup = false,
GatewayName = "string",
InternetSlbSpec = "string",
SlbSpec = "string",
});
example, err := mse.NewGateway(ctx, "examplegatewayResourceResourceFromMsegateway", &mse.GatewayArgs{
Replica: pulumi.Int(0),
Spec: pulumi.String("string"),
VpcId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
BackupVswitchId: pulumi.String("string"),
DeleteSlb: pulumi.Bool(false),
EnterpriseSecurityGroup: pulumi.Bool(false),
GatewayName: pulumi.String("string"),
InternetSlbSpec: pulumi.String("string"),
SlbSpec: pulumi.String("string"),
})
var examplegatewayResourceResourceFromMsegateway = new Gateway("examplegatewayResourceResourceFromMsegateway", GatewayArgs.builder()
.replica(0)
.spec("string")
.vpcId("string")
.vswitchId("string")
.backupVswitchId("string")
.deleteSlb(false)
.enterpriseSecurityGroup(false)
.gatewayName("string")
.internetSlbSpec("string")
.slbSpec("string")
.build());
examplegateway_resource_resource_from_msegateway = alicloud.mse.Gateway("examplegatewayResourceResourceFromMsegateway",
replica=0,
spec="string",
vpc_id="string",
vswitch_id="string",
backup_vswitch_id="string",
delete_slb=False,
enterprise_security_group=False,
gateway_name="string",
internet_slb_spec="string",
slb_spec="string")
const examplegatewayResourceResourceFromMsegateway = new alicloud.mse.Gateway("examplegatewayResourceResourceFromMsegateway", {
replica: 0,
spec: "string",
vpcId: "string",
vswitchId: "string",
backupVswitchId: "string",
deleteSlb: false,
enterpriseSecurityGroup: false,
gatewayName: "string",
internetSlbSpec: "string",
slbSpec: "string",
});
type: alicloud:mse:Gateway
properties:
backupVswitchId: string
deleteSlb: false
enterpriseSecurityGroup: false
gatewayName: string
internetSlbSpec: string
replica: 0
slbSpec: string
spec: string
vpcId: string
vswitchId: string
Gateway 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 Gateway resource accepts the following input properties:
- Replica int
- Number of Gateway Nodes.
- Spec string
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - Vpc
Id string - The ID of the vpc.
- Vswitch
Id string - The ID of the vswitch.
- Backup
Vswitch stringId - The backup vswitch id.
- Delete
Slb bool - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- Enterprise
Security boolGroup - Whether the enterprise security group type.
- Gateway
Name string - The name of the Gateway .
- Internet
Slb stringSpec - Public network SLB specifications.
- Slb
Spec string - Private network SLB specifications.
- Replica int
- Number of Gateway Nodes.
- Spec string
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - Vpc
Id string - The ID of the vpc.
- Vswitch
Id string - The ID of the vswitch.
- Backup
Vswitch stringId - The backup vswitch id.
- Delete
Slb bool - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- Enterprise
Security boolGroup - Whether the enterprise security group type.
- Gateway
Name string - The name of the Gateway .
- Internet
Slb stringSpec - Public network SLB specifications.
- Slb
Spec string - Private network SLB specifications.
- replica Integer
- Number of Gateway Nodes.
- spec String
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - vpc
Id String - The ID of the vpc.
- vswitch
Id String - The ID of the vswitch.
- backup
Vswitch StringId - The backup vswitch id.
- delete
Slb Boolean - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- enterprise
Security BooleanGroup - Whether the enterprise security group type.
- gateway
Name String - The name of the Gateway .
- internet
Slb StringSpec - Public network SLB specifications.
- slb
Spec String - Private network SLB specifications.
- replica number
- Number of Gateway Nodes.
- spec string
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - vpc
Id string - The ID of the vpc.
- vswitch
Id string - The ID of the vswitch.
- backup
Vswitch stringId - The backup vswitch id.
- delete
Slb boolean - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- enterprise
Security booleanGroup - Whether the enterprise security group type.
- gateway
Name string - The name of the Gateway .
- internet
Slb stringSpec - Public network SLB specifications.
- slb
Spec string - Private network SLB specifications.
- replica int
- Number of Gateway Nodes.
- spec str
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - vpc_
id str - The ID of the vpc.
- vswitch_
id str - The ID of the vswitch.
- backup_
vswitch_ strid - The backup vswitch id.
- delete_
slb bool - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- enterprise_
security_ boolgroup - Whether the enterprise security group type.
- gateway_
name str - The name of the Gateway .
- internet_
slb_ strspec - Public network SLB specifications.
- slb_
spec str - Private network SLB specifications.
- replica Number
- Number of Gateway Nodes.
- spec String
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - vpc
Id String - The ID of the vpc.
- vswitch
Id String - The ID of the vswitch.
- backup
Vswitch StringId - The backup vswitch id.
- delete
Slb Boolean - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- enterprise
Security BooleanGroup - Whether the enterprise security group type.
- gateway
Name String - The name of the Gateway .
- internet
Slb StringSpec - Public network SLB specifications.
- slb
Spec String - Private network SLB specifications.
Outputs
All input properties are implicitly available as output properties. Additionally, the Gateway resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Slb
Lists List<Pulumi.Ali Cloud. Mse. Outputs. Gateway Slb List> - A list of gateway Slb.
- Status string
- The status of the gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Slb
Lists []GatewaySlb List - A list of gateway Slb.
- Status string
- The status of the gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- slb
Lists List<GatewaySlb List> - A list of gateway Slb.
- status String
- The status of the gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- slb
Lists GatewaySlb List[] - A list of gateway Slb.
- status string
- The status of the gateway.
- id str
- The provider-assigned unique ID for this managed resource.
- slb_
lists Sequence[GatewaySlb List] - A list of gateway Slb.
- status str
- The status of the gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- slb
Lists List<Property Map> - A list of gateway Slb.
- status String
- The status of the gateway.
Look up Existing Gateway Resource
Get an existing Gateway 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?: GatewayState, opts?: CustomResourceOptions): Gateway
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_vswitch_id: Optional[str] = None,
delete_slb: Optional[bool] = None,
enterprise_security_group: Optional[bool] = None,
gateway_name: Optional[str] = None,
internet_slb_spec: Optional[str] = None,
replica: Optional[int] = None,
slb_lists: Optional[Sequence[GatewaySlbListArgs]] = None,
slb_spec: Optional[str] = None,
spec: Optional[str] = None,
status: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None) -> Gateway
func GetGateway(ctx *Context, name string, id IDInput, state *GatewayState, opts ...ResourceOption) (*Gateway, error)
public static Gateway Get(string name, Input<string> id, GatewayState? state, CustomResourceOptions? opts = null)
public static Gateway get(String name, Output<String> id, GatewayState 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.
- Backup
Vswitch stringId - The backup vswitch id.
- Delete
Slb bool - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- Enterprise
Security boolGroup - Whether the enterprise security group type.
- Gateway
Name string - The name of the Gateway .
- Internet
Slb stringSpec - Public network SLB specifications.
- Replica int
- Number of Gateway Nodes.
- Slb
Lists List<Pulumi.Ali Cloud. Mse. Inputs. Gateway Slb List> - A list of gateway Slb.
- Slb
Spec string - Private network SLB specifications.
- Spec string
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - Status string
- The status of the gateway.
- Vpc
Id string - The ID of the vpc.
- Vswitch
Id string - The ID of the vswitch.
- Backup
Vswitch stringId - The backup vswitch id.
- Delete
Slb bool - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- Enterprise
Security boolGroup - Whether the enterprise security group type.
- Gateway
Name string - The name of the Gateway .
- Internet
Slb stringSpec - Public network SLB specifications.
- Replica int
- Number of Gateway Nodes.
- Slb
Lists []GatewaySlb List Args - A list of gateway Slb.
- Slb
Spec string - Private network SLB specifications.
- Spec string
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - Status string
- The status of the gateway.
- Vpc
Id string - The ID of the vpc.
- Vswitch
Id string - The ID of the vswitch.
- backup
Vswitch StringId - The backup vswitch id.
- delete
Slb Boolean - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- enterprise
Security BooleanGroup - Whether the enterprise security group type.
- gateway
Name String - The name of the Gateway .
- internet
Slb StringSpec - Public network SLB specifications.
- replica Integer
- Number of Gateway Nodes.
- slb
Lists List<GatewaySlb List> - A list of gateway Slb.
- slb
Spec String - Private network SLB specifications.
- spec String
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - status String
- The status of the gateway.
- vpc
Id String - The ID of the vpc.
- vswitch
Id String - The ID of the vswitch.
- backup
Vswitch stringId - The backup vswitch id.
- delete
Slb boolean - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- enterprise
Security booleanGroup - Whether the enterprise security group type.
- gateway
Name string - The name of the Gateway .
- internet
Slb stringSpec - Public network SLB specifications.
- replica number
- Number of Gateway Nodes.
- slb
Lists GatewaySlb List[] - A list of gateway Slb.
- slb
Spec string - Private network SLB specifications.
- spec string
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - status string
- The status of the gateway.
- vpc
Id string - The ID of the vpc.
- vswitch
Id string - The ID of the vswitch.
- backup_
vswitch_ strid - The backup vswitch id.
- delete_
slb bool - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- enterprise_
security_ boolgroup - Whether the enterprise security group type.
- gateway_
name str - The name of the Gateway .
- internet_
slb_ strspec - Public network SLB specifications.
- replica int
- Number of Gateway Nodes.
- slb_
lists Sequence[GatewaySlb List Args] - A list of gateway Slb.
- slb_
spec str - Private network SLB specifications.
- spec str
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - status str
- The status of the gateway.
- vpc_
id str - The ID of the vpc.
- vswitch_
id str - The ID of the vswitch.
- backup
Vswitch StringId - The backup vswitch id.
- delete
Slb Boolean - Whether to delete the SLB purchased on behalf of the gateway at the same time.
- enterprise
Security BooleanGroup - Whether the enterprise security group type.
- gateway
Name String - The name of the Gateway .
- internet
Slb StringSpec - Public network SLB specifications.
- replica Number
- Number of Gateway Nodes.
- slb
Lists List<Property Map> - A list of gateway Slb.
- slb
Spec String - Private network SLB specifications.
- spec String
- Gateway Node Specifications. Valid values:
MSE_GTW_2_4_200_c
,MSE_GTW_4_8_200_c
,MSE_GTW_8_16_200_c
,MSE_GTW_16_32_200_c
. - status String
- The status of the gateway.
- vpc
Id String - The ID of the vpc.
- vswitch
Id String - The ID of the vswitch.
Supporting Types
GatewaySlbList, GatewaySlbListArgs
- Associate
Id string - The associate id.
- Gateway
Slb stringMode - The Mode of the gateway slb.
- Gateway
Slb stringStatus - The Status of the gateway slb.
- Gmt
Create string - The creation time of the gateway slb.
- Slb
Id string - The ID of the gateway slb.
- Slb
Ip string - The ip of the gateway slb.
- Slb
Port string - The port of the gateway slb.
- Type string
- The type of the gateway slb.
- Associate
Id string - The associate id.
- Gateway
Slb stringMode - The Mode of the gateway slb.
- Gateway
Slb stringStatus - The Status of the gateway slb.
- Gmt
Create string - The creation time of the gateway slb.
- Slb
Id string - The ID of the gateway slb.
- Slb
Ip string - The ip of the gateway slb.
- Slb
Port string - The port of the gateway slb.
- Type string
- The type of the gateway slb.
- associate
Id String - The associate id.
- gateway
Slb StringMode - The Mode of the gateway slb.
- gateway
Slb StringStatus - The Status of the gateway slb.
- gmt
Create String - The creation time of the gateway slb.
- slb
Id String - The ID of the gateway slb.
- slb
Ip String - The ip of the gateway slb.
- slb
Port String - The port of the gateway slb.
- type String
- The type of the gateway slb.
- associate
Id string - The associate id.
- gateway
Slb stringMode - The Mode of the gateway slb.
- gateway
Slb stringStatus - The Status of the gateway slb.
- gmt
Create string - The creation time of the gateway slb.
- slb
Id string - The ID of the gateway slb.
- slb
Ip string - The ip of the gateway slb.
- slb
Port string - The port of the gateway slb.
- type string
- The type of the gateway slb.
- associate_
id str - The associate id.
- gateway_
slb_ strmode - The Mode of the gateway slb.
- gateway_
slb_ strstatus - The Status of the gateway slb.
- gmt_
create str - The creation time of the gateway slb.
- slb_
id str - The ID of the gateway slb.
- slb_
ip str - The ip of the gateway slb.
- slb_
port str - The port of the gateway slb.
- type str
- The type of the gateway slb.
- associate
Id String - The associate id.
- gateway
Slb StringMode - The Mode of the gateway slb.
- gateway
Slb StringStatus - The Status of the gateway slb.
- gmt
Create String - The creation time of the gateway slb.
- slb
Id String - The ID of the gateway slb.
- slb
Ip String - The ip of the gateway slb.
- slb
Port String - The port of the gateway slb.
- type String
- The type of the gateway slb.
Import
Microservice Engine (MSE) Gateway can be imported using the id, e.g.
$ pulumi import alicloud:mse/gateway:Gateway 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.