opentelekomcloud.ApigwGatewayV2
Explore with Pulumi AI
Up-to-date reference of API arguments for API Gateway service you can get at documentation portal
API Gateway (APIG) is a high-performance, high-availability, and high-security API hosting service that helps you build, manage, and deploy APIs at any scale. With just a few clicks, you can integrate internal systems, and selectively expose capabilities with minimal costs and risks.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const gateway = new opentelekomcloud.ApigwGatewayV2("gateway", {
specId: "BASIC",
vpcId: _var.vpc_id,
subnetId: _var.network_id,
securityGroupId: _var.default_secgroup.id,
availabilityZones: [
"eu-de-01",
"eu-de-02",
],
description: "test gateway",
bandwidthSize: 5,
ingressBandwidthSize: 5,
ingressBandwidthChargingMode: "bandwidth",
maintainBegin: "22:00:00",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
gateway = opentelekomcloud.ApigwGatewayV2("gateway",
spec_id="BASIC",
vpc_id=var["vpc_id"],
subnet_id=var["network_id"],
security_group_id=var["default_secgroup"]["id"],
availability_zones=[
"eu-de-01",
"eu-de-02",
],
description="test gateway",
bandwidth_size=5,
ingress_bandwidth_size=5,
ingress_bandwidth_charging_mode="bandwidth",
maintain_begin="22:00:00")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewApigwGatewayV2(ctx, "gateway", &opentelekomcloud.ApigwGatewayV2Args{
SpecId: pulumi.String("BASIC"),
VpcId: pulumi.Any(_var.Vpc_id),
SubnetId: pulumi.Any(_var.Network_id),
SecurityGroupId: pulumi.Any(_var.Default_secgroup.Id),
AvailabilityZones: pulumi.StringArray{
pulumi.String("eu-de-01"),
pulumi.String("eu-de-02"),
},
Description: pulumi.String("test gateway"),
BandwidthSize: pulumi.Float64(5),
IngressBandwidthSize: pulumi.Float64(5),
IngressBandwidthChargingMode: pulumi.String("bandwidth"),
MaintainBegin: pulumi.String("22:00:00"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var gateway = new Opentelekomcloud.ApigwGatewayV2("gateway", new()
{
SpecId = "BASIC",
VpcId = @var.Vpc_id,
SubnetId = @var.Network_id,
SecurityGroupId = @var.Default_secgroup.Id,
AvailabilityZones = new[]
{
"eu-de-01",
"eu-de-02",
},
Description = "test gateway",
BandwidthSize = 5,
IngressBandwidthSize = 5,
IngressBandwidthChargingMode = "bandwidth",
MaintainBegin = "22:00:00",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ApigwGatewayV2;
import com.pulumi.opentelekomcloud.ApigwGatewayV2Args;
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 gateway = new ApigwGatewayV2("gateway", ApigwGatewayV2Args.builder()
.specId("BASIC")
.vpcId(var_.vpc_id())
.subnetId(var_.network_id())
.securityGroupId(var_.default_secgroup().id())
.availabilityZones(
"eu-de-01",
"eu-de-02")
.description("test gateway")
.bandwidthSize(5)
.ingressBandwidthSize(5)
.ingressBandwidthChargingMode("bandwidth")
.maintainBegin("22:00:00")
.build());
}
}
resources:
gateway:
type: opentelekomcloud:ApigwGatewayV2
properties:
specId: BASIC
vpcId: ${var.vpc_id}
subnetId: ${var.network_id}
securityGroupId: ${var.default_secgroup.id}
availabilityZones:
- eu-de-01
- eu-de-02
description: test gateway
bandwidthSize: 5
ingressBandwidthSize: 5
ingressBandwidthChargingMode: bandwidth
maintainBegin: 22:00:00
Create ApigwGatewayV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApigwGatewayV2(name: string, args: ApigwGatewayV2Args, opts?: CustomResourceOptions);
@overload
def ApigwGatewayV2(resource_name: str,
args: ApigwGatewayV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def ApigwGatewayV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
security_group_id: Optional[str] = None,
availability_zones: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None,
subnet_id: Optional[str] = None,
spec_id: Optional[str] = None,
ingress_bandwidth_size: Optional[float] = None,
apigw_gateway_v2_id: Optional[str] = None,
loadbalancer_provider: Optional[str] = None,
maintain_begin: Optional[str] = None,
name: Optional[str] = None,
ingress_bandwidth_charging_mode: Optional[str] = None,
description: Optional[str] = None,
bandwidth_size: Optional[float] = None,
timeouts: Optional[ApigwGatewayV2TimeoutsArgs] = None,
bandwidth_charging_mode: Optional[str] = None)
func NewApigwGatewayV2(ctx *Context, name string, args ApigwGatewayV2Args, opts ...ResourceOption) (*ApigwGatewayV2, error)
public ApigwGatewayV2(string name, ApigwGatewayV2Args args, CustomResourceOptions? opts = null)
public ApigwGatewayV2(String name, ApigwGatewayV2Args args)
public ApigwGatewayV2(String name, ApigwGatewayV2Args args, CustomResourceOptions options)
type: opentelekomcloud:ApigwGatewayV2
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 ApigwGatewayV2Args
- 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 ApigwGatewayV2Args
- 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 ApigwGatewayV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApigwGatewayV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApigwGatewayV2Args
- 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 apigwGatewayV2Resource = new Opentelekomcloud.ApigwGatewayV2("apigwGatewayV2Resource", new()
{
SecurityGroupId = "string",
AvailabilityZones = new[]
{
"string",
},
VpcId = "string",
SubnetId = "string",
SpecId = "string",
IngressBandwidthSize = 0,
ApigwGatewayV2Id = "string",
LoadbalancerProvider = "string",
MaintainBegin = "string",
Name = "string",
IngressBandwidthChargingMode = "string",
Description = "string",
BandwidthSize = 0,
Timeouts = new Opentelekomcloud.Inputs.ApigwGatewayV2TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
BandwidthChargingMode = "string",
});
example, err := opentelekomcloud.NewApigwGatewayV2(ctx, "apigwGatewayV2Resource", &opentelekomcloud.ApigwGatewayV2Args{
SecurityGroupId: pulumi.String("string"),
AvailabilityZones: pulumi.StringArray{
pulumi.String("string"),
},
VpcId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
SpecId: pulumi.String("string"),
IngressBandwidthSize: pulumi.Float64(0),
ApigwGatewayV2Id: pulumi.String("string"),
LoadbalancerProvider: pulumi.String("string"),
MaintainBegin: pulumi.String("string"),
Name: pulumi.String("string"),
IngressBandwidthChargingMode: pulumi.String("string"),
Description: pulumi.String("string"),
BandwidthSize: pulumi.Float64(0),
Timeouts: &opentelekomcloud.ApigwGatewayV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
BandwidthChargingMode: pulumi.String("string"),
})
var apigwGatewayV2Resource = new ApigwGatewayV2("apigwGatewayV2Resource", ApigwGatewayV2Args.builder()
.securityGroupId("string")
.availabilityZones("string")
.vpcId("string")
.subnetId("string")
.specId("string")
.ingressBandwidthSize(0)
.apigwGatewayV2Id("string")
.loadbalancerProvider("string")
.maintainBegin("string")
.name("string")
.ingressBandwidthChargingMode("string")
.description("string")
.bandwidthSize(0)
.timeouts(ApigwGatewayV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.bandwidthChargingMode("string")
.build());
apigw_gateway_v2_resource = opentelekomcloud.ApigwGatewayV2("apigwGatewayV2Resource",
security_group_id="string",
availability_zones=["string"],
vpc_id="string",
subnet_id="string",
spec_id="string",
ingress_bandwidth_size=0,
apigw_gateway_v2_id="string",
loadbalancer_provider="string",
maintain_begin="string",
name="string",
ingress_bandwidth_charging_mode="string",
description="string",
bandwidth_size=0,
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
bandwidth_charging_mode="string")
const apigwGatewayV2Resource = new opentelekomcloud.ApigwGatewayV2("apigwGatewayV2Resource", {
securityGroupId: "string",
availabilityZones: ["string"],
vpcId: "string",
subnetId: "string",
specId: "string",
ingressBandwidthSize: 0,
apigwGatewayV2Id: "string",
loadbalancerProvider: "string",
maintainBegin: "string",
name: "string",
ingressBandwidthChargingMode: "string",
description: "string",
bandwidthSize: 0,
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
bandwidthChargingMode: "string",
});
type: opentelekomcloud:ApigwGatewayV2
properties:
apigwGatewayV2Id: string
availabilityZones:
- string
bandwidthChargingMode: string
bandwidthSize: 0
description: string
ingressBandwidthChargingMode: string
ingressBandwidthSize: 0
loadbalancerProvider: string
maintainBegin: string
name: string
securityGroupId: string
specId: string
subnetId: string
timeouts:
create: string
delete: string
update: string
vpcId: string
ApigwGatewayV2 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 ApigwGatewayV2 resource accepts the following input properties:
- Availability
Zones List<string> - Specifies gateway description.
- Security
Group stringId - Specifies ID of the security group to which the gateway belongs.
- Spec
Id string - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- Subnet
Id string - Specifies network ID.
- Vpc
Id string - Specifies VPC ID.
- Apigw
Gateway stringV2Id - Bandwidth
Charging stringMode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- Bandwidth
Size double - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- Description string
- Specifies gateway description.
- Ingress
Bandwidth stringCharging Mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- Ingress
Bandwidth doubleSize - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- Loadbalancer
Provider string - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- Maintain
Begin string - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- Name string
- Specifies gateway name.
- Timeouts
Apigw
Gateway V2Timeouts
- Availability
Zones []string - Specifies gateway description.
- Security
Group stringId - Specifies ID of the security group to which the gateway belongs.
- Spec
Id string - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- Subnet
Id string - Specifies network ID.
- Vpc
Id string - Specifies VPC ID.
- Apigw
Gateway stringV2Id - Bandwidth
Charging stringMode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- Bandwidth
Size float64 - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- Description string
- Specifies gateway description.
- Ingress
Bandwidth stringCharging Mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- Ingress
Bandwidth float64Size - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- Loadbalancer
Provider string - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- Maintain
Begin string - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- Name string
- Specifies gateway name.
- Timeouts
Apigw
Gateway V2Timeouts Args
- availability
Zones List<String> - Specifies gateway description.
- security
Group StringId - Specifies ID of the security group to which the gateway belongs.
- spec
Id String - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- subnet
Id String - Specifies network ID.
- vpc
Id String - Specifies VPC ID.
- apigw
Gateway StringV2Id - bandwidth
Charging StringMode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- bandwidth
Size Double - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- description String
- Specifies gateway description.
- ingress
Bandwidth StringCharging Mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- ingress
Bandwidth DoubleSize - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- loadbalancer
Provider String - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- maintain
Begin String - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- name String
- Specifies gateway name.
- timeouts
Apigw
Gateway V2Timeouts
- availability
Zones string[] - Specifies gateway description.
- security
Group stringId - Specifies ID of the security group to which the gateway belongs.
- spec
Id string - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- subnet
Id string - Specifies network ID.
- vpc
Id string - Specifies VPC ID.
- apigw
Gateway stringV2Id - bandwidth
Charging stringMode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- bandwidth
Size number - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- description string
- Specifies gateway description.
- ingress
Bandwidth stringCharging Mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- ingress
Bandwidth numberSize - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- loadbalancer
Provider string - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- maintain
Begin string - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- name string
- Specifies gateway name.
- timeouts
Apigw
Gateway V2Timeouts
- availability_
zones Sequence[str] - Specifies gateway description.
- security_
group_ strid - Specifies ID of the security group to which the gateway belongs.
- spec_
id str - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- subnet_
id str - Specifies network ID.
- vpc_
id str - Specifies VPC ID.
- apigw_
gateway_ strv2_ id - bandwidth_
charging_ strmode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- bandwidth_
size float - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- description str
- Specifies gateway description.
- ingress_
bandwidth_ strcharging_ mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- ingress_
bandwidth_ floatsize - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- loadbalancer_
provider str - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- maintain_
begin str - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- name str
- Specifies gateway name.
- timeouts
Apigw
Gateway V2Timeouts Args
- availability
Zones List<String> - Specifies gateway description.
- security
Group StringId - Specifies ID of the security group to which the gateway belongs.
- spec
Id String - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- subnet
Id String - Specifies network ID.
- vpc
Id String - Specifies VPC ID.
- apigw
Gateway StringV2Id - bandwidth
Charging StringMode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- bandwidth
Size Number - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- description String
- Specifies gateway description.
- ingress
Bandwidth StringCharging Mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- ingress
Bandwidth NumberSize - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- loadbalancer
Provider String - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- maintain
Begin String - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- name String
- Specifies gateway name.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ApigwGatewayV2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Maintain
End string - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- Private
Egress List<string>Addresses - List of private egress addresses. *
- Project
Id string - Instance project id.
- Public
Egress stringAddress - IP address for public outbound access.
- Region string
- Instance region.
- Status string
- Instance status.
- Supported
Features List<string> - Supported features.
- Vpc
Ingress stringAddress - VPC ingress address.
- Vpcep
Service stringName - Name of a VPC endpoint service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Maintain
End string - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- Private
Egress []stringAddresses - List of private egress addresses. *
- Project
Id string - Instance project id.
- Public
Egress stringAddress - IP address for public outbound access.
- Region string
- Instance region.
- Status string
- Instance status.
- Supported
Features []string - Supported features.
- Vpc
Ingress stringAddress - VPC ingress address.
- Vpcep
Service stringName - Name of a VPC endpoint service.
- id String
- The provider-assigned unique ID for this managed resource.
- maintain
End String - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- private
Egress List<String>Addresses - List of private egress addresses. *
- project
Id String - Instance project id.
- public
Egress StringAddress - IP address for public outbound access.
- region String
- Instance region.
- status String
- Instance status.
- supported
Features List<String> - Supported features.
- vpc
Ingress StringAddress - VPC ingress address.
- vpcep
Service StringName - Name of a VPC endpoint service.
- id string
- The provider-assigned unique ID for this managed resource.
- maintain
End string - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- private
Egress string[]Addresses - List of private egress addresses. *
- project
Id string - Instance project id.
- public
Egress stringAddress - IP address for public outbound access.
- region string
- Instance region.
- status string
- Instance status.
- supported
Features string[] - Supported features.
- vpc
Ingress stringAddress - VPC ingress address.
- vpcep
Service stringName - Name of a VPC endpoint service.
- id str
- The provider-assigned unique ID for this managed resource.
- maintain_
end str - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- private_
egress_ Sequence[str]addresses - List of private egress addresses. *
- project_
id str - Instance project id.
- public_
egress_ straddress - IP address for public outbound access.
- region str
- Instance region.
- status str
- Instance status.
- supported_
features Sequence[str] - Supported features.
- vpc_
ingress_ straddress - VPC ingress address.
- vpcep_
service_ strname - Name of a VPC endpoint service.
- id String
- The provider-assigned unique ID for this managed resource.
- maintain
End String - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- private
Egress List<String>Addresses - List of private egress addresses. *
- project
Id String - Instance project id.
- public
Egress StringAddress - IP address for public outbound access.
- region String
- Instance region.
- status String
- Instance status.
- supported
Features List<String> - Supported features.
- vpc
Ingress StringAddress - VPC ingress address.
- vpcep
Service StringName - Name of a VPC endpoint service.
Look up Existing ApigwGatewayV2 Resource
Get an existing ApigwGatewayV2 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?: ApigwGatewayV2State, opts?: CustomResourceOptions): ApigwGatewayV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apigw_gateway_v2_id: Optional[str] = None,
availability_zones: Optional[Sequence[str]] = None,
bandwidth_charging_mode: Optional[str] = None,
bandwidth_size: Optional[float] = None,
description: Optional[str] = None,
ingress_bandwidth_charging_mode: Optional[str] = None,
ingress_bandwidth_size: Optional[float] = None,
loadbalancer_provider: Optional[str] = None,
maintain_begin: Optional[str] = None,
maintain_end: Optional[str] = None,
name: Optional[str] = None,
private_egress_addresses: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
public_egress_address: Optional[str] = None,
region: Optional[str] = None,
security_group_id: Optional[str] = None,
spec_id: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
supported_features: Optional[Sequence[str]] = None,
timeouts: Optional[ApigwGatewayV2TimeoutsArgs] = None,
vpc_id: Optional[str] = None,
vpc_ingress_address: Optional[str] = None,
vpcep_service_name: Optional[str] = None) -> ApigwGatewayV2
func GetApigwGatewayV2(ctx *Context, name string, id IDInput, state *ApigwGatewayV2State, opts ...ResourceOption) (*ApigwGatewayV2, error)
public static ApigwGatewayV2 Get(string name, Input<string> id, ApigwGatewayV2State? state, CustomResourceOptions? opts = null)
public static ApigwGatewayV2 get(String name, Output<String> id, ApigwGatewayV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:ApigwGatewayV2 get: 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.
- Apigw
Gateway stringV2Id - Availability
Zones List<string> - Specifies gateway description.
- Bandwidth
Charging stringMode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- Bandwidth
Size double - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- Description string
- Specifies gateway description.
- Ingress
Bandwidth stringCharging Mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- Ingress
Bandwidth doubleSize - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- Loadbalancer
Provider string - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- Maintain
Begin string - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- Maintain
End string - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- Name string
- Specifies gateway name.
- Private
Egress List<string>Addresses - List of private egress addresses. *
- Project
Id string - Instance project id.
- Public
Egress stringAddress - IP address for public outbound access.
- Region string
- Instance region.
- Security
Group stringId - Specifies ID of the security group to which the gateway belongs.
- Spec
Id string - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- Status string
- Instance status.
- Subnet
Id string - Specifies network ID.
- Supported
Features List<string> - Supported features.
- Timeouts
Apigw
Gateway V2Timeouts - Vpc
Id string - Specifies VPC ID.
- Vpc
Ingress stringAddress - VPC ingress address.
- Vpcep
Service stringName - Name of a VPC endpoint service.
- Apigw
Gateway stringV2Id - Availability
Zones []string - Specifies gateway description.
- Bandwidth
Charging stringMode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- Bandwidth
Size float64 - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- Description string
- Specifies gateway description.
- Ingress
Bandwidth stringCharging Mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- Ingress
Bandwidth float64Size - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- Loadbalancer
Provider string - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- Maintain
Begin string - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- Maintain
End string - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- Name string
- Specifies gateway name.
- Private
Egress []stringAddresses - List of private egress addresses. *
- Project
Id string - Instance project id.
- Public
Egress stringAddress - IP address for public outbound access.
- Region string
- Instance region.
- Security
Group stringId - Specifies ID of the security group to which the gateway belongs.
- Spec
Id string - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- Status string
- Instance status.
- Subnet
Id string - Specifies network ID.
- Supported
Features []string - Supported features.
- Timeouts
Apigw
Gateway V2Timeouts Args - Vpc
Id string - Specifies VPC ID.
- Vpc
Ingress stringAddress - VPC ingress address.
- Vpcep
Service stringName - Name of a VPC endpoint service.
- apigw
Gateway StringV2Id - availability
Zones List<String> - Specifies gateway description.
- bandwidth
Charging StringMode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- bandwidth
Size Double - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- description String
- Specifies gateway description.
- ingress
Bandwidth StringCharging Mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- ingress
Bandwidth DoubleSize - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- loadbalancer
Provider String - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- maintain
Begin String - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- maintain
End String - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- name String
- Specifies gateway name.
- private
Egress List<String>Addresses - List of private egress addresses. *
- project
Id String - Instance project id.
- public
Egress StringAddress - IP address for public outbound access.
- region String
- Instance region.
- security
Group StringId - Specifies ID of the security group to which the gateway belongs.
- spec
Id String - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- status String
- Instance status.
- subnet
Id String - Specifies network ID.
- supported
Features List<String> - Supported features.
- timeouts
Apigw
Gateway V2Timeouts - vpc
Id String - Specifies VPC ID.
- vpc
Ingress StringAddress - VPC ingress address.
- vpcep
Service StringName - Name of a VPC endpoint service.
- apigw
Gateway stringV2Id - availability
Zones string[] - Specifies gateway description.
- bandwidth
Charging stringMode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- bandwidth
Size number - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- description string
- Specifies gateway description.
- ingress
Bandwidth stringCharging Mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- ingress
Bandwidth numberSize - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- loadbalancer
Provider string - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- maintain
Begin string - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- maintain
End string - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- name string
- Specifies gateway name.
- private
Egress string[]Addresses - List of private egress addresses. *
- project
Id string - Instance project id.
- public
Egress stringAddress - IP address for public outbound access.
- region string
- Instance region.
- security
Group stringId - Specifies ID of the security group to which the gateway belongs.
- spec
Id string - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- status string
- Instance status.
- subnet
Id string - Specifies network ID.
- supported
Features string[] - Supported features.
- timeouts
Apigw
Gateway V2Timeouts - vpc
Id string - Specifies VPC ID.
- vpc
Ingress stringAddress - VPC ingress address.
- vpcep
Service stringName - Name of a VPC endpoint service.
- apigw_
gateway_ strv2_ id - availability_
zones Sequence[str] - Specifies gateway description.
- bandwidth_
charging_ strmode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- bandwidth_
size float - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- description str
- Specifies gateway description.
- ingress_
bandwidth_ strcharging_ mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- ingress_
bandwidth_ floatsize - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- loadbalancer_
provider str - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- maintain_
begin str - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- maintain_
end str - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- name str
- Specifies gateway name.
- private_
egress_ Sequence[str]addresses - List of private egress addresses. *
- project_
id str - Instance project id.
- public_
egress_ straddress - IP address for public outbound access.
- region str
- Instance region.
- security_
group_ strid - Specifies ID of the security group to which the gateway belongs.
- spec_
id str - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- status str
- Instance status.
- subnet_
id str - Specifies network ID.
- supported_
features Sequence[str] - Supported features.
- timeouts
Apigw
Gateway V2Timeouts Args - vpc_
id str - Specifies VPC ID.
- vpc_
ingress_ straddress - VPC ingress address.
- vpcep_
service_ strname - Name of a VPC endpoint service.
- apigw
Gateway StringV2Id - availability
Zones List<String> - Specifies gateway description.
- bandwidth
Charging StringMode - Billing type of the public outbound access bandwidth.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- bandwidth
Size Number - Specifies outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks.
- description String
- Specifies gateway description.
- ingress
Bandwidth StringCharging Mode - Specifies the ingress bandwidth billing type of the dedicated instance.
The valid values are as follows:
- bandwidth: Billed by bandwidth.
- traffic: Billed by traffic.
- ingress
Bandwidth NumberSize - Specifies public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.
- loadbalancer
Provider String - Specifies type of the load balancer used by the gateway. This resource provides the following timeouts configuration options:
- maintain
Begin String - Specifies start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.
- maintain
End String - End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.
- name String
- Specifies gateway name.
- private
Egress List<String>Addresses - List of private egress addresses. *
- project
Id String - Instance project id.
- public
Egress StringAddress - IP address for public outbound access.
- region String
- Instance region.
- security
Group StringId - Specifies ID of the security group to which the gateway belongs.
- spec
Id String - Gateway edition. Options:
This resource provides the following timeouts configuration options:
BASIC
PROFESSIONAL
ENTERPRISE
PLATINUM
- status String
- Instance status.
- subnet
Id String - Specifies network ID.
- supported
Features List<String> - Supported features.
- timeouts Property Map
- vpc
Id String - Specifies VPC ID.
- vpc
Ingress StringAddress - VPC ingress address.
- vpcep
Service StringName - Name of a VPC endpoint service.
Supporting Types
ApigwGatewayV2Timeouts, ApigwGatewayV2TimeoutsArgs
Import
APIG Gateway can be imported using the gateway_id
, e.g.
$ pulumi import opentelekomcloud:index/apigwGatewayV2:ApigwGatewayV2 gateway c1881895-cdcb-4d23-96cb-032e6a3ee667
Note that the imported state may not be identical to your resource definition, due to ingress_bandwidth_size
missing from the
API response. It is generally recommended running pulumi preview
after importing a gateway.
resource “opentelekomcloud_apigw_gateway_v2” “gateway” {
...
lifecycle {
ignore_changes = [
ingress_bandwidth_size,
ingress_bandwidth_charging_mode,
bandwidth_charging_mode
]
}
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.