published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi
Provides a APIG Gateway resource.
Gateway instance .
For information about APIG Gateway and how to use it, see What is Gateway.
NOTE: Available since v1.240.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = alicloud.resourcemanager.getResourceGroups({});
const defaultGetNetworks = alicloud.vpc.getNetworks({
nameRegex: "^default-NODELETING$",
});
const defaultGetSwitches = defaultGetNetworks.then(defaultGetNetworks => alicloud.vpc.getSwitches({
vpcId: defaultGetNetworks.ids?.[0],
}));
const defaultGateway = new alicloud.apig.Gateway("default", {
networkAccessConfig: {
type: "Intranet",
},
logConfig: {
sls: {
enable: false,
},
},
resourceGroupId: _default.then(_default => _default.ids?.[1]),
spec: "apigw.small.x1",
vpc: {
vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
},
zoneConfig: {
selectOption: "Auto",
},
vswitch: {
vswitchId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0]),
},
paymentType: "PayAsYouGo",
gatewayName: name,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.resourcemanager.get_resource_groups()
default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0])
default_gateway = alicloud.apig.Gateway("default",
network_access_config={
"type": "Intranet",
},
log_config={
"sls": {
"enable": False,
},
},
resource_group_id=default.ids[1],
spec="apigw.small.x1",
vpc={
"vpc_id": default_get_networks.ids[0],
},
zone_config={
"select_option": "Auto",
},
vswitch={
"vswitch_id": default_get_switches.ids[0],
},
payment_type="PayAsYouGo",
gateway_name=name)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apig"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
if err != nil {
return err
}
defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
NameRegex: pulumi.StringRef("^default-NODELETING$"),
}, nil)
if err != nil {
return err
}
defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
VpcId: pulumi.StringRef(defaultGetNetworks.Ids[0]),
}, nil)
if err != nil {
return err
}
_, err = apig.NewGateway(ctx, "default", &apig.GatewayArgs{
NetworkAccessConfig: &apig.GatewayNetworkAccessConfigArgs{
Type: pulumi.String("Intranet"),
},
LogConfig: &apig.GatewayLogConfigArgs{
Sls: &apig.GatewayLogConfigSlsArgs{
Enable: pulumi.Bool(false),
},
},
ResourceGroupId: pulumi.String(_default.Ids[1]),
Spec: pulumi.String("apigw.small.x1"),
Vpc: &apig.GatewayVpcArgs{
VpcId: pulumi.String(defaultGetNetworks.Ids[0]),
},
ZoneConfig: &apig.GatewayZoneConfigArgs{
SelectOption: pulumi.String("Auto"),
},
Vswitch: &apig.GatewayVswitchArgs{
VswitchId: pulumi.String(defaultGetSwitches.Ids[0]),
},
PaymentType: pulumi.String("PayAsYouGo"),
GatewayName: pulumi.String(name),
})
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 name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "^default-NODELETING$",
});
var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
{
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
});
var defaultGateway = new AliCloud.Apig.Gateway("default", new()
{
NetworkAccessConfig = new AliCloud.Apig.Inputs.GatewayNetworkAccessConfigArgs
{
Type = "Intranet",
},
LogConfig = new AliCloud.Apig.Inputs.GatewayLogConfigArgs
{
Sls = new AliCloud.Apig.Inputs.GatewayLogConfigSlsArgs
{
Enable = false,
},
},
ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[1])),
Spec = "apigw.small.x1",
Vpc = new AliCloud.Apig.Inputs.GatewayVpcArgs
{
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
},
ZoneConfig = new AliCloud.Apig.Inputs.GatewayZoneConfigArgs
{
SelectOption = "Auto",
},
Vswitch = new AliCloud.Apig.Inputs.GatewayVswitchArgs
{
VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
},
PaymentType = "PayAsYouGo",
GatewayName = name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.apig.Gateway;
import com.pulumi.alicloud.apig.GatewayArgs;
import com.pulumi.alicloud.apig.inputs.GatewayNetworkAccessConfigArgs;
import com.pulumi.alicloud.apig.inputs.GatewayLogConfigArgs;
import com.pulumi.alicloud.apig.inputs.GatewayLogConfigSlsArgs;
import com.pulumi.alicloud.apig.inputs.GatewayVpcArgs;
import com.pulumi.alicloud.apig.inputs.GatewayZoneConfigArgs;
import com.pulumi.alicloud.apig.inputs.GatewayVswitchArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 name = config.get("name").orElse("terraform-example");
final var default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.build());
final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("^default-NODELETING$")
.build());
final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultGetNetworks.ids()[0])
.build());
var defaultGateway = new Gateway("defaultGateway", GatewayArgs.builder()
.networkAccessConfig(GatewayNetworkAccessConfigArgs.builder()
.type("Intranet")
.build())
.logConfig(GatewayLogConfigArgs.builder()
.sls(GatewayLogConfigSlsArgs.builder()
.enable(false)
.build())
.build())
.resourceGroupId(default_.ids()[1])
.spec("apigw.small.x1")
.vpc(GatewayVpcArgs.builder()
.vpcId(defaultGetNetworks.ids()[0])
.build())
.zoneConfig(GatewayZoneConfigArgs.builder()
.selectOption("Auto")
.build())
.vswitch(GatewayVswitchArgs.builder()
.vswitchId(defaultGetSwitches.ids()[0])
.build())
.paymentType("PayAsYouGo")
.gatewayName(name)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultGateway:
type: alicloud:apig:Gateway
name: default
properties:
networkAccessConfig:
type: Intranet
logConfig:
sls:
enable: 'false'
resourceGroupId: ${default.ids[1]}
spec: apigw.small.x1
vpc:
vpcId: ${defaultGetNetworks.ids[0]}
zoneConfig:
selectOption: Auto
vswitch:
vswitchId: ${defaultGetSwitches.ids[0]}
paymentType: PayAsYouGo
gatewayName: ${name}
variables:
default:
fn::invoke:
function: alicloud:resourcemanager:getResourceGroups
arguments: {}
defaultGetNetworks:
fn::invoke:
function: alicloud:vpc:getNetworks
arguments:
nameRegex: ^default-NODELETING$
defaultGetSwitches:
fn::invoke:
function: alicloud:vpc:getSwitches
arguments:
vpcId: ${defaultGetNetworks.ids[0]}
terraform {
required_providers {
alicloud = {
source = "pulumi/alicloud"
}
}
}
data "alicloud_resourcemanager_resource_groups" "default" {
}
data "alicloud_vpc_networks" "defaultGetNetworks" {
name_regex = "^default-NODELETING$"
}
data "alicloud_vpc_switches" "defaultGetSwitches" {
vpc_id = data.alicloud_vpc_networks.defaultGetNetworks.ids[0]
}
resource "alicloud_apig_gateway" "default" {
lifecycle {
create_before_destroy = true
}
network_access_config = {
type = "Intranet"
}
log_config = {
sls = {
enable = "false"
}
}
resource_group_id = data.alicloud_resourcemanager_resource_groups.default.ids[1]
spec = "apigw.small.x1"
vpc = {
vpc_id = data.alicloud_vpc_networks.defaultGetNetworks.ids[0]
}
zone_config = {
select_option = "Auto"
}
vswitch = {
vswitch_id = data.alicloud_vpc_switches.defaultGetSwitches.ids[0]
}
payment_type = "PayAsYouGo"
gateway_name = var.name
}
variable "name" {
type = string
default = "terraform-example"
}
Deleting alicloud.apig.Gateway or removing it from your configuration
The alicloud.apig.Gateway resource allows you to manage paymentType = "Subscription" instance, but Terraform cannot destroy it.
Deleting the subscription resource or removing it from your configuration will remove it from your state file and management, but will not destroy the Instance.
You can resume managing the subscription instance via the AlibabaCloud Console.
📚 Need more examples? VIEW MORE EXAMPLES
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,
payment_type: Optional[str] = None,
zone_config: Optional[GatewayZoneConfigArgs] = None,
resource_group_id: Optional[str] = None,
log_config: Optional[GatewayLogConfigArgs] = None,
network_access_config: Optional[GatewayNetworkAccessConfigArgs] = None,
gateway_type: Optional[str] = None,
gateway_edition: Optional[str] = None,
spec: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc: Optional[GatewayVpcArgs] = None,
vswitch: Optional[GatewayVswitchArgs] = None,
gateway_name: Optional[str] = None,
zones: Optional[Sequence[GatewayZoneArgs]] = 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:apig:Gateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "alicloud_apig_gateway" "name" {
# resource properties
}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 gatewayResource = new AliCloud.Apig.Gateway("gatewayResource", new()
{
PaymentType = "string",
ZoneConfig = new AliCloud.Apig.Inputs.GatewayZoneConfigArgs
{
SelectOption = "string",
},
ResourceGroupId = "string",
LogConfig = new AliCloud.Apig.Inputs.GatewayLogConfigArgs
{
Sls = new AliCloud.Apig.Inputs.GatewayLogConfigSlsArgs
{
Enable = false,
},
},
NetworkAccessConfig = new AliCloud.Apig.Inputs.GatewayNetworkAccessConfigArgs
{
Type = "string",
},
GatewayType = "string",
GatewayEdition = "string",
Spec = "string",
Tags =
{
{ "string", "string" },
},
Vpc = new AliCloud.Apig.Inputs.GatewayVpcArgs
{
VpcId = "string",
Name = "string",
},
Vswitch = new AliCloud.Apig.Inputs.GatewayVswitchArgs
{
Name = "string",
VswitchId = "string",
},
GatewayName = "string",
Zones = new[]
{
new AliCloud.Apig.Inputs.GatewayZoneArgs
{
Name = "string",
VswitchId = "string",
ZoneId = "string",
},
},
});
example, err := apig.NewGateway(ctx, "gatewayResource", &apig.GatewayArgs{
PaymentType: pulumi.String("string"),
ZoneConfig: &apig.GatewayZoneConfigArgs{
SelectOption: pulumi.String("string"),
},
ResourceGroupId: pulumi.String("string"),
LogConfig: &apig.GatewayLogConfigArgs{
Sls: &apig.GatewayLogConfigSlsArgs{
Enable: pulumi.Bool(false),
},
},
NetworkAccessConfig: &apig.GatewayNetworkAccessConfigArgs{
Type: pulumi.String("string"),
},
GatewayType: pulumi.String("string"),
GatewayEdition: pulumi.String("string"),
Spec: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Vpc: &apig.GatewayVpcArgs{
VpcId: pulumi.String("string"),
Name: pulumi.String("string"),
},
Vswitch: &apig.GatewayVswitchArgs{
Name: pulumi.String("string"),
VswitchId: pulumi.String("string"),
},
GatewayName: pulumi.String("string"),
Zones: apig.GatewayZoneArray{
&apig.GatewayZoneArgs{
Name: pulumi.String("string"),
VswitchId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
},
},
})
resource "alicloud_apig_gateway" "gatewayResource" {
lifecycle {
create_before_destroy = true
}
payment_type = "string"
zone_config = {
select_option = "string"
}
resource_group_id = "string"
log_config = {
sls = {
enable = false
}
}
network_access_config = {
type = "string"
}
gateway_type = "string"
gateway_edition = "string"
spec = "string"
tags = {
"string" = "string"
}
vpc = {
vpc_id = "string"
name = "string"
}
vswitch = {
name = "string"
vswitch_id = "string"
}
gateway_name = "string"
zones {
name = "string"
vswitch_id = "string"
zone_id = "string"
}
}
var gatewayResource = new com.pulumi.alicloud.apig.Gateway("gatewayResource", com.pulumi.alicloud.apig.GatewayArgs.builder()
.paymentType("string")
.zoneConfig(GatewayZoneConfigArgs.builder()
.selectOption("string")
.build())
.resourceGroupId("string")
.logConfig(GatewayLogConfigArgs.builder()
.sls(GatewayLogConfigSlsArgs.builder()
.enable(false)
.build())
.build())
.networkAccessConfig(GatewayNetworkAccessConfigArgs.builder()
.type("string")
.build())
.gatewayType("string")
.gatewayEdition("string")
.spec("string")
.tags(Map.of("string", "string"))
.vpc(GatewayVpcArgs.builder()
.vpcId("string")
.name("string")
.build())
.vswitch(GatewayVswitchArgs.builder()
.name("string")
.vswitchId("string")
.build())
.gatewayName("string")
.zones(GatewayZoneArgs.builder()
.name("string")
.vswitchId("string")
.zoneId("string")
.build())
.build());
gateway_resource = alicloud.apig.Gateway("gatewayResource",
payment_type="string",
zone_config={
"select_option": "string",
},
resource_group_id="string",
log_config={
"sls": {
"enable": False,
},
},
network_access_config={
"type": "string",
},
gateway_type="string",
gateway_edition="string",
spec="string",
tags={
"string": "string",
},
vpc={
"vpc_id": "string",
"name": "string",
},
vswitch={
"name": "string",
"vswitch_id": "string",
},
gateway_name="string",
zones=[{
"name": "string",
"vswitch_id": "string",
"zone_id": "string",
}])
const gatewayResource = new alicloud.apig.Gateway("gatewayResource", {
paymentType: "string",
zoneConfig: {
selectOption: "string",
},
resourceGroupId: "string",
logConfig: {
sls: {
enable: false,
},
},
networkAccessConfig: {
type: "string",
},
gatewayType: "string",
gatewayEdition: "string",
spec: "string",
tags: {
string: "string",
},
vpc: {
vpcId: "string",
name: "string",
},
vswitch: {
name: "string",
vswitchId: "string",
},
gatewayName: "string",
zones: [{
name: "string",
vswitchId: "string",
zoneId: "string",
}],
});
type: alicloud:apig:Gateway
properties:
gatewayEdition: string
gatewayName: string
gatewayType: string
logConfig:
sls:
enable: false
networkAccessConfig:
type: string
paymentType: string
resourceGroupId: string
spec: string
tags:
string: string
vpc:
name: string
vpcId: string
vswitch:
name: string
vswitchId: string
zoneConfig:
selectOption: string
zones:
- name: string
vswitchId: string
zoneId: 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:
- Payment
Type string - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- Zone
Config Pulumi.Ali Cloud. Apig. Inputs. Gateway Zone Config - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - Gateway
Edition string - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- Gateway
Name string - Query by exact match of the gateway name.
- Gateway
Type string - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- Log
Config Pulumi.Ali Cloud. Apig. Inputs. Gateway Log Config - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - Network
Access Pulumi.Config Ali Cloud. Apig. Inputs. Gateway Network Access Config - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - Resource
Group stringId - The ID of the destination resource group.
- Spec string
- Gateway specification:
- apigw.small.x1: Small specification.
- Dictionary<string, string>
- The tag of the resource
- Vpc
Pulumi.
Ali Cloud. Apig. Inputs. Gateway Vpc - The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - Vswitch
Pulumi.
Ali Cloud. Apig. Inputs. Gateway Vswitch - The vSwitch associated with the gateway. See
vswitchbelow. - Zones
List<Pulumi.
Ali Cloud. Apig. Inputs. Gateway Zone> - The list of zones associated with the gateway. See
zonesbelow.
- Payment
Type string - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- Zone
Config GatewayZone Config Args - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - Gateway
Edition string - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- Gateway
Name string - Query by exact match of the gateway name.
- Gateway
Type string - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- Log
Config GatewayLog Config Args - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - Network
Access GatewayConfig Network Access Config Args - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - Resource
Group stringId - The ID of the destination resource group.
- Spec string
- Gateway specification:
- apigw.small.x1: Small specification.
- map[string]string
- The tag of the resource
- Vpc
Gateway
Vpc Args - The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - Vswitch
Gateway
Vswitch Args - The vSwitch associated with the gateway. See
vswitchbelow. - Zones
[]Gateway
Zone Args - The list of zones associated with the gateway. See
zonesbelow.
- payment_
type string - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- zone_
config object - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - gateway_
edition string - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- gateway_
name string - Query by exact match of the gateway name.
- gateway_
type string - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- log_
config object - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - network_
access_ objectconfig - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - resource_
group_ stringid - The ID of the destination resource group.
- spec string
- Gateway specification:
- apigw.small.x1: Small specification.
- map(string)
- The tag of the resource
- vpc object
- The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - vswitch object
- The vSwitch associated with the gateway. See
vswitchbelow. - zones list(object)
- The list of zones associated with the gateway. See
zonesbelow.
- payment
Type String - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- zone
Config GatewayZone Config - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - gateway
Edition String - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- gateway
Name String - Query by exact match of the gateway name.
- gateway
Type String - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- log
Config GatewayLog Config - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - network
Access GatewayConfig Network Access Config - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - resource
Group StringId - The ID of the destination resource group.
- spec String
- Gateway specification:
- apigw.small.x1: Small specification.
- Map<String,String>
- The tag of the resource
- vpc
Gateway
Vpc - The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - vswitch
Gateway
Vswitch - The vSwitch associated with the gateway. See
vswitchbelow. - zones
List<Gateway
Zone> - The list of zones associated with the gateway. See
zonesbelow.
- payment
Type string - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- zone
Config GatewayZone Config - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - gateway
Edition string - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- gateway
Name string - Query by exact match of the gateway name.
- gateway
Type string - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- log
Config GatewayLog Config - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - network
Access GatewayConfig Network Access Config - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - resource
Group stringId - The ID of the destination resource group.
- spec string
- Gateway specification:
- apigw.small.x1: Small specification.
- {[key: string]: string}
- The tag of the resource
- vpc
Gateway
Vpc - The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - vswitch
Gateway
Vswitch - The vSwitch associated with the gateway. See
vswitchbelow. - zones
Gateway
Zone[] - The list of zones associated with the gateway. See
zonesbelow.
- payment_
type str - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- zone_
config GatewayZone Config Args - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - gateway_
edition str - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- gateway_
name str - Query by exact match of the gateway name.
- gateway_
type str - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- log_
config GatewayLog Config Args - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - network_
access_ Gatewayconfig Network Access Config Args - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - resource_
group_ strid - The ID of the destination resource group.
- spec str
- Gateway specification:
- apigw.small.x1: Small specification.
- Mapping[str, str]
- The tag of the resource
- vpc
Gateway
Vpc Args - The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - vswitch
Gateway
Vswitch Args - The vSwitch associated with the gateway. See
vswitchbelow. - zones
Sequence[Gateway
Zone Args] - The list of zones associated with the gateway. See
zonesbelow.
- payment
Type String - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- zone
Config Property Map - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - gateway
Edition String - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- gateway
Name String - Query by exact match of the gateway name.
- gateway
Type String - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- log
Config Property Map - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - network
Access Property MapConfig - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - resource
Group StringId - The ID of the destination resource group.
- spec String
- Gateway specification:
- apigw.small.x1: Small specification.
- Map<String>
- The tag of the resource
- vpc Property Map
- The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - vswitch Property Map
- The vSwitch associated with the gateway. See
vswitchbelow. - zones List<Property Map>
- The list of zones associated with the gateway. See
zonesbelow.
Outputs
All input properties are implicitly available as output properties. Additionally, the Gateway resource produces the following output properties:
- Create
From string - The source from which the gateway was created.
- Create
Time int - The creation timestamp. Unit: milliseconds.
- Environments
List<Pulumi.
Ali Cloud. Apig. Outputs. Gateway Environment> - The list of environments associated with the gateway.
- Expire
Time int - Timestamp indicating when the subscription expires. Unit: milliseconds.
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balancers List<Pulumi.Ali Cloud. Apig. Outputs. Gateway Load Balancer> - The list of Gateway ingress addresses.
- Security
Groups List<Pulumi.Ali Cloud. Apig. Outputs. Gateway Security Group> - The security group of the gateway.
- Status string
- The status of the gateway.
- Target
Version string - The target version of the gateway instance.
- Update
Time int - The timestamp when the gateway was last updated. Unit: milliseconds.
- Version string
- The current running version of the gateway instance.
- Create
From string - The source from which the gateway was created.
- Create
Time int - The creation timestamp. Unit: milliseconds.
- Environments
[]Gateway
Environment - The list of environments associated with the gateway.
- Expire
Time int - Timestamp indicating when the subscription expires. Unit: milliseconds.
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balancers []GatewayLoad Balancer - The list of Gateway ingress addresses.
- Security
Groups []GatewaySecurity Group - The security group of the gateway.
- Status string
- The status of the gateway.
- Target
Version string - The target version of the gateway instance.
- Update
Time int - The timestamp when the gateway was last updated. Unit: milliseconds.
- Version string
- The current running version of the gateway instance.
- create_
from string - The source from which the gateway was created.
- create_
time number - The creation timestamp. Unit: milliseconds.
- environments list(object)
- The list of environments associated with the gateway.
- expire_
time number - Timestamp indicating when the subscription expires. Unit: milliseconds.
- id string
- The provider-assigned unique ID for this managed resource.
- load_
balancers list(object) - The list of Gateway ingress addresses.
- security_
groups list(object) - The security group of the gateway.
- status string
- The status of the gateway.
- target_
version string - The target version of the gateway instance.
- update_
time number - The timestamp when the gateway was last updated. Unit: milliseconds.
- version string
- The current running version of the gateway instance.
- create
From String - The source from which the gateway was created.
- create
Time Integer - The creation timestamp. Unit: milliseconds.
- environments
List<Gateway
Environment> - The list of environments associated with the gateway.
- expire
Time Integer - Timestamp indicating when the subscription expires. Unit: milliseconds.
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balancers List<GatewayLoad Balancer> - The list of Gateway ingress addresses.
- security
Groups List<GatewaySecurity Group> - The security group of the gateway.
- status String
- The status of the gateway.
- target
Version String - The target version of the gateway instance.
- update
Time Integer - The timestamp when the gateway was last updated. Unit: milliseconds.
- version String
- The current running version of the gateway instance.
- create
From string - The source from which the gateway was created.
- create
Time number - The creation timestamp. Unit: milliseconds.
- environments
Gateway
Environment[] - The list of environments associated with the gateway.
- expire
Time number - Timestamp indicating when the subscription expires. Unit: milliseconds.
- id string
- The provider-assigned unique ID for this managed resource.
- load
Balancers GatewayLoad Balancer[] - The list of Gateway ingress addresses.
- security
Groups GatewaySecurity Group[] - The security group of the gateway.
- status string
- The status of the gateway.
- target
Version string - The target version of the gateway instance.
- update
Time number - The timestamp when the gateway was last updated. Unit: milliseconds.
- version string
- The current running version of the gateway instance.
- create_
from str - The source from which the gateway was created.
- create_
time int - The creation timestamp. Unit: milliseconds.
- environments
Sequence[Gateway
Environment] - The list of environments associated with the gateway.
- expire_
time int - Timestamp indicating when the subscription expires. Unit: milliseconds.
- id str
- The provider-assigned unique ID for this managed resource.
- load_
balancers Sequence[GatewayLoad Balancer] - The list of Gateway ingress addresses.
- security_
groups Sequence[GatewaySecurity Group] - The security group of the gateway.
- status str
- The status of the gateway.
- target_
version str - The target version of the gateway instance.
- update_
time int - The timestamp when the gateway was last updated. Unit: milliseconds.
- version str
- The current running version of the gateway instance.
- create
From String - The source from which the gateway was created.
- create
Time Number - The creation timestamp. Unit: milliseconds.
- environments List<Property Map>
- The list of environments associated with the gateway.
- expire
Time Number - Timestamp indicating when the subscription expires. Unit: milliseconds.
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balancers List<Property Map> - The list of Gateway ingress addresses.
- security
Groups List<Property Map> - The security group of the gateway.
- status String
- The status of the gateway.
- target
Version String - The target version of the gateway instance.
- update
Time Number - The timestamp when the gateway was last updated. Unit: milliseconds.
- version String
- The current running version of the gateway instance.
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,
create_from: Optional[str] = None,
create_time: Optional[int] = None,
environments: Optional[Sequence[GatewayEnvironmentArgs]] = None,
expire_time: Optional[int] = None,
gateway_edition: Optional[str] = None,
gateway_name: Optional[str] = None,
gateway_type: Optional[str] = None,
load_balancers: Optional[Sequence[GatewayLoadBalancerArgs]] = None,
log_config: Optional[GatewayLogConfigArgs] = None,
network_access_config: Optional[GatewayNetworkAccessConfigArgs] = None,
payment_type: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_groups: Optional[Sequence[GatewaySecurityGroupArgs]] = None,
spec: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
target_version: Optional[str] = None,
update_time: Optional[int] = None,
version: Optional[str] = None,
vpc: Optional[GatewayVpcArgs] = None,
vswitch: Optional[GatewayVswitchArgs] = None,
zone_config: Optional[GatewayZoneConfigArgs] = None,
zones: Optional[Sequence[GatewayZoneArgs]] = None) -> Gatewayfunc 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)resources: _: type: alicloud:apig:Gateway get: id: ${id}import {
to = alicloud_apig_gateway.example
id = "${id}"
}
- 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.
- Create
From string - The source from which the gateway was created.
- Create
Time int - The creation timestamp. Unit: milliseconds.
- Environments
List<Pulumi.
Ali Cloud. Apig. Inputs. Gateway Environment> - The list of environments associated with the gateway.
- Expire
Time int - Timestamp indicating when the subscription expires. Unit: milliseconds.
- Gateway
Edition string - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- Gateway
Name string - Query by exact match of the gateway name.
- Gateway
Type string - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- Load
Balancers List<Pulumi.Ali Cloud. Apig. Inputs. Gateway Load Balancer> - The list of Gateway ingress addresses.
- Log
Config Pulumi.Ali Cloud. Apig. Inputs. Gateway Log Config - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - Network
Access Pulumi.Config Ali Cloud. Apig. Inputs. Gateway Network Access Config - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - Payment
Type string - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- Resource
Group stringId - The ID of the destination resource group.
- Security
Groups List<Pulumi.Ali Cloud. Apig. Inputs. Gateway Security Group> - The security group of the gateway.
- Spec string
- Gateway specification:
- apigw.small.x1: Small specification.
- Status string
- The status of the gateway.
- Dictionary<string, string>
- The tag of the resource
- Target
Version string - The target version of the gateway instance.
- Update
Time int - The timestamp when the gateway was last updated. Unit: milliseconds.
- Version string
- The current running version of the gateway instance.
- Vpc
Pulumi.
Ali Cloud. Apig. Inputs. Gateway Vpc - The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - Vswitch
Pulumi.
Ali Cloud. Apig. Inputs. Gateway Vswitch - The vSwitch associated with the gateway. See
vswitchbelow. - Zone
Config Pulumi.Ali Cloud. Apig. Inputs. Gateway Zone Config - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - Zones
List<Pulumi.
Ali Cloud. Apig. Inputs. Gateway Zone> - The list of zones associated with the gateway. See
zonesbelow.
- Create
From string - The source from which the gateway was created.
- Create
Time int - The creation timestamp. Unit: milliseconds.
- Environments
[]Gateway
Environment Args - The list of environments associated with the gateway.
- Expire
Time int - Timestamp indicating when the subscription expires. Unit: milliseconds.
- Gateway
Edition string - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- Gateway
Name string - Query by exact match of the gateway name.
- Gateway
Type string - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- Load
Balancers []GatewayLoad Balancer Args - The list of Gateway ingress addresses.
- Log
Config GatewayLog Config Args - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - Network
Access GatewayConfig Network Access Config Args - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - Payment
Type string - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- Resource
Group stringId - The ID of the destination resource group.
- Security
Groups []GatewaySecurity Group Args - The security group of the gateway.
- Spec string
- Gateway specification:
- apigw.small.x1: Small specification.
- Status string
- The status of the gateway.
- map[string]string
- The tag of the resource
- Target
Version string - The target version of the gateway instance.
- Update
Time int - The timestamp when the gateway was last updated. Unit: milliseconds.
- Version string
- The current running version of the gateway instance.
- Vpc
Gateway
Vpc Args - The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - Vswitch
Gateway
Vswitch Args - The vSwitch associated with the gateway. See
vswitchbelow. - Zone
Config GatewayZone Config Args - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - Zones
[]Gateway
Zone Args - The list of zones associated with the gateway. See
zonesbelow.
- create_
from string - The source from which the gateway was created.
- create_
time number - The creation timestamp. Unit: milliseconds.
- environments list(object)
- The list of environments associated with the gateway.
- expire_
time number - Timestamp indicating when the subscription expires. Unit: milliseconds.
- gateway_
edition string - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- gateway_
name string - Query by exact match of the gateway name.
- gateway_
type string - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- load_
balancers list(object) - The list of Gateway ingress addresses.
- log_
config object - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - network_
access_ objectconfig - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - payment_
type string - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- resource_
group_ stringid - The ID of the destination resource group.
- security_
groups list(object) - The security group of the gateway.
- spec string
- Gateway specification:
- apigw.small.x1: Small specification.
- status string
- The status of the gateway.
- map(string)
- The tag of the resource
- target_
version string - The target version of the gateway instance.
- update_
time number - The timestamp when the gateway was last updated. Unit: milliseconds.
- version string
- The current running version of the gateway instance.
- vpc object
- The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - vswitch object
- The vSwitch associated with the gateway. See
vswitchbelow. - zone_
config object - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - zones list(object)
- The list of zones associated with the gateway. See
zonesbelow.
- create
From String - The source from which the gateway was created.
- create
Time Integer - The creation timestamp. Unit: milliseconds.
- environments
List<Gateway
Environment> - The list of environments associated with the gateway.
- expire
Time Integer - Timestamp indicating when the subscription expires. Unit: milliseconds.
- gateway
Edition String - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- gateway
Name String - Query by exact match of the gateway name.
- gateway
Type String - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- load
Balancers List<GatewayLoad Balancer> - The list of Gateway ingress addresses.
- log
Config GatewayLog Config - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - network
Access GatewayConfig Network Access Config - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - payment
Type String - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- resource
Group StringId - The ID of the destination resource group.
- security
Groups List<GatewaySecurity Group> - The security group of the gateway.
- spec String
- Gateway specification:
- apigw.small.x1: Small specification.
- status String
- The status of the gateway.
- Map<String,String>
- The tag of the resource
- target
Version String - The target version of the gateway instance.
- update
Time Integer - The timestamp when the gateway was last updated. Unit: milliseconds.
- version String
- The current running version of the gateway instance.
- vpc
Gateway
Vpc - The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - vswitch
Gateway
Vswitch - The vSwitch associated with the gateway. See
vswitchbelow. - zone
Config GatewayZone Config - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - zones
List<Gateway
Zone> - The list of zones associated with the gateway. See
zonesbelow.
- create
From string - The source from which the gateway was created.
- create
Time number - The creation timestamp. Unit: milliseconds.
- environments
Gateway
Environment[] - The list of environments associated with the gateway.
- expire
Time number - Timestamp indicating when the subscription expires. Unit: milliseconds.
- gateway
Edition string - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- gateway
Name string - Query by exact match of the gateway name.
- gateway
Type string - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- load
Balancers GatewayLoad Balancer[] - The list of Gateway ingress addresses.
- log
Config GatewayLog Config - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - network
Access GatewayConfig Network Access Config - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - payment
Type string - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- resource
Group stringId - The ID of the destination resource group.
- security
Groups GatewaySecurity Group[] - The security group of the gateway.
- spec string
- Gateway specification:
- apigw.small.x1: Small specification.
- status string
- The status of the gateway.
- {[key: string]: string}
- The tag of the resource
- target
Version string - The target version of the gateway instance.
- update
Time number - The timestamp when the gateway was last updated. Unit: milliseconds.
- version string
- The current running version of the gateway instance.
- vpc
Gateway
Vpc - The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - vswitch
Gateway
Vswitch - The vSwitch associated with the gateway. See
vswitchbelow. - zone
Config GatewayZone Config - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - zones
Gateway
Zone[] - The list of zones associated with the gateway. See
zonesbelow.
- create_
from str - The source from which the gateway was created.
- create_
time int - The creation timestamp. Unit: milliseconds.
- environments
Sequence[Gateway
Environment Args] - The list of environments associated with the gateway.
- expire_
time int - Timestamp indicating when the subscription expires. Unit: milliseconds.
- gateway_
edition str - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- gateway_
name str - Query by exact match of the gateway name.
- gateway_
type str - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- load_
balancers Sequence[GatewayLoad Balancer Args] - The list of Gateway ingress addresses.
- log_
config GatewayLog Config Args - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - network_
access_ Gatewayconfig Network Access Config Args - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - payment_
type str - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- resource_
group_ strid - The ID of the destination resource group.
- security_
groups Sequence[GatewaySecurity Group Args] - The security group of the gateway.
- spec str
- Gateway specification:
- apigw.small.x1: Small specification.
- status str
- The status of the gateway.
- Mapping[str, str]
- The tag of the resource
- target_
version str - The target version of the gateway instance.
- update_
time int - The timestamp when the gateway was last updated. Unit: milliseconds.
- version str
- The current running version of the gateway instance.
- vpc
Gateway
Vpc Args - The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - vswitch
Gateway
Vswitch Args - The vSwitch associated with the gateway. See
vswitchbelow. - zone_
config GatewayZone Config Args - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - zones
Sequence[Gateway
Zone Args] - The list of zones associated with the gateway. See
zonesbelow.
- create
From String - The source from which the gateway was created.
- create
Time Number - The creation timestamp. Unit: milliseconds.
- environments List<Property Map>
- The list of environments associated with the gateway.
- expire
Time Number - Timestamp indicating when the subscription expires. Unit: milliseconds.
- gateway
Edition String - Gateway instance edition. Valid values:
- Professional: Standard instance.
- Serverless: Serverless instance.
- MultiTenantServerless: Multi-tenant Serverless instance.
- gateway
Name String - Query by exact match of the gateway name.
- gateway
Type String - The gateway type. Valid values:
- API: API Gateway
- AI: AI Gateway
- load
Balancers List<Property Map> - The list of Gateway ingress addresses.
- log
Config Property Map - The log configuration for the gateway instance. See
logConfigbelow. Note: The parameter is immutable after resource creation. - network
Access Property MapConfig - The network access type of the gateway instance. See
networkAccessConfigbelow. Note: The parameter is immutable after resource creation. - payment
Type String - Payment type. Valid values:
- PayAsYouGo: Pay-as-you-go.
- Subscription: Subscription.
- resource
Group StringId - The ID of the destination resource group.
- security
Groups List<Property Map> - The security group of the gateway.
- spec String
- Gateway specification:
- apigw.small.x1: Small specification.
- status String
- The status of the gateway.
- Map<String>
- The tag of the resource
- target
Version String - The target version of the gateway instance.
- update
Time Number - The timestamp when the gateway was last updated. Unit: milliseconds.
- version String
- The current running version of the gateway instance.
- vpc Property Map
- The Virtual Private Cloud (VPC) associated with the gateway. See
vpcbelow. - vswitch Property Map
- The vSwitch associated with the gateway. See
vswitchbelow. - zone
Config Property Map - The availability zone selection option for the gateway. See
zoneConfigbelow. Note: The parameter is immutable after resource creation. - zones List<Property Map>
- The list of zones associated with the gateway. See
zonesbelow.
Supporting Types
GatewayEnvironment, GatewayEnvironmentArgs
- Alias string
- The alias of the environment.
- Environment
Id string - The ID of the environment.
- Name string
- The name of the availability zone for the gateway.
- Alias string
- The alias of the environment.
- Environment
Id string - The ID of the environment.
- Name string
- The name of the availability zone for the gateway.
- alias string
- The alias of the environment.
- environment_
id string - The ID of the environment.
- name string
- The name of the availability zone for the gateway.
- alias String
- The alias of the environment.
- environment
Id String - The ID of the environment.
- name String
- The name of the availability zone for the gateway.
- alias string
- The alias of the environment.
- environment
Id string - The ID of the environment.
- name string
- The name of the availability zone for the gateway.
- alias str
- The alias of the environment.
- environment_
id str - The ID of the environment.
- name str
- The name of the availability zone for the gateway.
- alias String
- The alias of the environment.
- environment
Id String - The ID of the environment.
- name String
- The name of the availability zone for the gateway.
GatewayLoadBalancer, GatewayLoadBalancerArgs
- Address string
- The address of the load balancer for the gateway.
- Address
Ip stringVersion - The IP version of the load balancer.
- Address
Type string - The load balancer address type.
- Gateway
Default bool - Indicates whether this is the default ingress address of the gateway.
- Ipv4Addresses List<string>
- The list of IPv4 addresses.
- Ipv6Addresses List<string>
- The list of IPv6 addresses.
- Load
Balancer stringId - The ID of the load balancer associated with the gateway.
- Mode string
- The load balancing provisioning mode for the gateway.
- Ports
List<Pulumi.
Ali Cloud. Apig. Inputs. Gateway Load Balancer Port> - The list of listening ports.
- Status string
- The status of the gateway.
- Type string
- The type of the load balancer.
- Address string
- The address of the load balancer for the gateway.
- Address
Ip stringVersion - The IP version of the load balancer.
- Address
Type string - The load balancer address type.
- Gateway
Default bool - Indicates whether this is the default ingress address of the gateway.
- Ipv4Addresses []string
- The list of IPv4 addresses.
- Ipv6Addresses []string
- The list of IPv6 addresses.
- Load
Balancer stringId - The ID of the load balancer associated with the gateway.
- Mode string
- The load balancing provisioning mode for the gateway.
- Ports
[]Gateway
Load Balancer Port - The list of listening ports.
- Status string
- The status of the gateway.
- Type string
- The type of the load balancer.
- address string
- The address of the load balancer for the gateway.
- address_
ip_ stringversion - The IP version of the load balancer.
- address_
type string - The load balancer address type.
- gateway_
default bool - Indicates whether this is the default ingress address of the gateway.
- ipv4_
addresses list(string) - The list of IPv4 addresses.
- ipv6_
addresses list(string) - The list of IPv6 addresses.
- load_
balancer_ stringid - The ID of the load balancer associated with the gateway.
- mode string
- The load balancing provisioning mode for the gateway.
- ports list(object)
- The list of listening ports.
- status string
- The status of the gateway.
- type string
- The type of the load balancer.
- address String
- The address of the load balancer for the gateway.
- address
Ip StringVersion - The IP version of the load balancer.
- address
Type String - The load balancer address type.
- gateway
Default Boolean - Indicates whether this is the default ingress address of the gateway.
- ipv4Addresses List<String>
- The list of IPv4 addresses.
- ipv6Addresses List<String>
- The list of IPv6 addresses.
- load
Balancer StringId - The ID of the load balancer associated with the gateway.
- mode String
- The load balancing provisioning mode for the gateway.
- ports
List<Gateway
Load Balancer Port> - The list of listening ports.
- status String
- The status of the gateway.
- type String
- The type of the load balancer.
- address string
- The address of the load balancer for the gateway.
- address
Ip stringVersion - The IP version of the load balancer.
- address
Type string - The load balancer address type.
- gateway
Default boolean - Indicates whether this is the default ingress address of the gateway.
- ipv4Addresses string[]
- The list of IPv4 addresses.
- ipv6Addresses string[]
- The list of IPv6 addresses.
- load
Balancer stringId - The ID of the load balancer associated with the gateway.
- mode string
- The load balancing provisioning mode for the gateway.
- ports
Gateway
Load Balancer Port[] - The list of listening ports.
- status string
- The status of the gateway.
- type string
- The type of the load balancer.
- address str
- The address of the load balancer for the gateway.
- address_
ip_ strversion - The IP version of the load balancer.
- address_
type str - The load balancer address type.
- gateway_
default bool - Indicates whether this is the default ingress address of the gateway.
- ipv4_
addresses Sequence[str] - The list of IPv4 addresses.
- ipv6_
addresses Sequence[str] - The list of IPv6 addresses.
- load_
balancer_ strid - The ID of the load balancer associated with the gateway.
- mode str
- The load balancing provisioning mode for the gateway.
- ports
Sequence[Gateway
Load Balancer Port] - The list of listening ports.
- status str
- The status of the gateway.
- type str
- The type of the load balancer.
- address String
- The address of the load balancer for the gateway.
- address
Ip StringVersion - The IP version of the load balancer.
- address
Type String - The load balancer address type.
- gateway
Default Boolean - Indicates whether this is the default ingress address of the gateway.
- ipv4Addresses List<String>
- The list of IPv4 addresses.
- ipv6Addresses List<String>
- The list of IPv6 addresses.
- load
Balancer StringId - The ID of the load balancer associated with the gateway.
- mode String
- The load balancing provisioning mode for the gateway.
- ports List<Property Map>
- The list of listening ports.
- status String
- The status of the gateway.
- type String
- The type of the load balancer.
GatewayLoadBalancerPort, GatewayLoadBalancerPortArgs
GatewayLogConfig, GatewayLogConfigArgs
- Sls
Pulumi.
Ali Cloud. Apig. Inputs. Gateway Log Config Sls - The Simple Log Service configuration for the gateway. See
slsbelow.
- Sls
Gateway
Log Config Sls - The Simple Log Service configuration for the gateway. See
slsbelow.
- sls
Gateway
Log Config Sls - The Simple Log Service configuration for the gateway. See
slsbelow.
- sls
Gateway
Log Config Sls - The Simple Log Service configuration for the gateway. See
slsbelow.
- sls
Gateway
Log Config Sls - The Simple Log Service configuration for the gateway. See
slsbelow.
- sls Property Map
- The Simple Log Service configuration for the gateway. See
slsbelow.
GatewayLogConfigSls, GatewayLogConfigSlsArgs
- Enable bool
- The Simple Log Service configuration for the gateway.
- Enable bool
- The Simple Log Service configuration for the gateway.
- enable bool
- The Simple Log Service configuration for the gateway.
- enable Boolean
- The Simple Log Service configuration for the gateway.
- enable boolean
- The Simple Log Service configuration for the gateway.
- enable bool
- The Simple Log Service configuration for the gateway.
- enable Boolean
- The Simple Log Service configuration for the gateway.
GatewayNetworkAccessConfig, GatewayNetworkAccessConfigArgs
- Type string
- The network access type of the gateway instance.
- Type string
- The network access type of the gateway instance.
- type string
- The network access type of the gateway instance.
- type String
- The network access type of the gateway instance.
- type string
- The network access type of the gateway instance.
- type str
- The network access type of the gateway instance.
- type String
- The network access type of the gateway instance.
GatewaySecurityGroup, GatewaySecurityGroupArgs
- Name string
- The name of the availability zone for the gateway.
- Security
Group stringId - The ID of the security group.
- Name string
- The name of the availability zone for the gateway.
- Security
Group stringId - The ID of the security group.
- name string
- The name of the availability zone for the gateway.
- security_
group_ stringid - The ID of the security group.
- name String
- The name of the availability zone for the gateway.
- security
Group StringId - The ID of the security group.
- name string
- The name of the availability zone for the gateway.
- security
Group stringId - The ID of the security group.
- name str
- The name of the availability zone for the gateway.
- security_
group_ strid - The ID of the security group.
- name String
- The name of the availability zone for the gateway.
- security
Group StringId - The ID of the security group.
GatewayVpc, GatewayVpcArgs
GatewayVswitch, GatewayVswitchArgs
- name string
- The name of the availability zone for the gateway.
- vswitch_
id string - The ID of the virtual switch.
- name str
- The name of the availability zone for the gateway.
- vswitch_
id str - The ID of the virtual switch.
GatewayZone, GatewayZoneArgs
- name string
- The name of the availability zone for the gateway.
- vswitch_
id string - The ID of the virtual switch in the availability zone.
- zone_
id string - The ID of the availability zone for the gateway.
- name str
- The name of the availability zone for the gateway.
- vswitch_
id str - The ID of the virtual switch in the availability zone.
- zone_
id str - The ID of the availability zone for the gateway.
GatewayZoneConfig, GatewayZoneConfigArgs
- Select
Option string - Zone selection option.
- Select
Option string - Zone selection option.
- select_
option string - Zone selection option.
- select
Option String - Zone selection option.
- select
Option string - Zone selection option.
- select_
option str - Zone selection option.
- select
Option String - Zone selection option.
Import
APIG Gateway can be imported using the id, e.g.
$ pulumi import alicloud:apig/gateway:Gateway example <gateway_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
alicloudTerraform Provider.
published on Tuesday, Oct 13, 2026 by Pulumi