API网关(Gateway)是API管理服务的核心组件,负责接收、处理、转发API请求,并提供安全认证、流量控制等功能。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
aPIGGatewayDemo:
type: bytepluscc:apig:Gateway
name: APIGGatewayDemo
properties:
name: APIGGatewayDemo
type: standard
comments: APIGGatewayDemo comments
vpcId: vpc-13f8k4dwdsydc3n6nu5rxxxxx
subnetIds:
- subnet-***
- subnet-***
resourceSpec:
instance_spec_code: 1c2g
replicas: 2
clb_spec_code: small_1
public_network_bandwidth: 1
public_network_billing_type: bandwidth
network_type:
enablePublicNetwork: true
enablePrivateNetwork: true
monitorSpec:
enable: true
workspace_id: '***'
logSpec:
enable: true
project_id: '***'
topic_id: '***'
traceSpec:
enable: true
trace_type: tls
tls_trace_spec:
projectId: '***'
iamUserAk: '***'
iamUserSk: '***'
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,
name: Optional[str] = None,
comments: Optional[str] = None,
custom_log: Optional[GatewayCustomLogArgs] = None,
log_spec: Optional[GatewayLogSpecArgs] = None,
monitor_spec: Optional[GatewayMonitorSpecArgs] = None,
project_name: Optional[str] = None,
resource_spec: Optional[GatewayResourceSpecArgs] = None,
subnet_ids: Optional[Sequence[str]] = None,
trace_spec: Optional[GatewayTraceSpecArgs] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None)func NewGateway(ctx *Context, name string, args GatewayArgs, opts ...ResourceOption) (*Gateway, error)public Gateway(string name, GatewayArgs args, CustomResourceOptions? opts = null)
public Gateway(String name, GatewayArgs args)
public Gateway(String name, GatewayArgs args, CustomResourceOptions options)
type: bytepluscc:apig:Gateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var gatewayResource = new Bytepluscc.Apig.Gateway("gatewayResource", new()
{
Name = "string",
Comments = "string",
CustomLog = new Bytepluscc.Apig.Inputs.GatewayCustomLogArgs
{
CustomVariables = new[]
{
new Bytepluscc.Apig.Inputs.GatewayCustomLogCustomVariableArgs
{
AliasesInLog = "string",
Key = "string",
},
},
RequestHeaders = new[]
{
new Bytepluscc.Apig.Inputs.GatewayCustomLogRequestHeaderArgs
{
AliasesInLog = "string",
Key = "string",
},
},
ResponseHeaders = new[]
{
new Bytepluscc.Apig.Inputs.GatewayCustomLogResponseHeaderArgs
{
AliasesInLog = "string",
Key = "string",
},
},
},
LogSpec = new Bytepluscc.Apig.Inputs.GatewayLogSpecArgs
{
Enable = false,
ProjectId = "string",
TopicId = "string",
},
MonitorSpec = new Bytepluscc.Apig.Inputs.GatewayMonitorSpecArgs
{
Enable = false,
WorkspaceId = "string",
},
ProjectName = "string",
ResourceSpec = new Bytepluscc.Apig.Inputs.GatewayResourceSpecArgs
{
ClbSpecCode = "string",
InstanceSpecCode = "string",
NetworkType = new Bytepluscc.Apig.Inputs.GatewayResourceSpecNetworkTypeArgs
{
EnablePrivateNetwork = false,
EnablePublicNetwork = false,
},
PublicNetworkBandwidth = 0,
PublicNetworkBillingType = "string",
Replicas = 0,
},
SubnetIds = new[]
{
"string",
},
TraceSpec = new Bytepluscc.Apig.Inputs.GatewayTraceSpecArgs
{
ApmTraceSpec = new Bytepluscc.Apig.Inputs.GatewayTraceSpecApmTraceSpecArgs
{
ApiKey = "string",
},
Enable = false,
TlsTraceSpec = new Bytepluscc.Apig.Inputs.GatewayTraceSpecTlsTraceSpecArgs
{
IamUserAk = "string",
IamUserSk = "string",
ProjectId = "string",
TraceId = "string",
},
TraceType = "string",
},
Type = "string",
VpcId = "string",
});
example, err := apig.NewGateway(ctx, "gatewayResource", &apig.GatewayArgs{
Name: pulumi.String("string"),
Comments: pulumi.String("string"),
CustomLog: &apig.GatewayCustomLogArgs{
CustomVariables: apig.GatewayCustomLogCustomVariableArray{
&apig.GatewayCustomLogCustomVariableArgs{
AliasesInLog: pulumi.String("string"),
Key: pulumi.String("string"),
},
},
RequestHeaders: apig.GatewayCustomLogRequestHeaderArray{
&apig.GatewayCustomLogRequestHeaderArgs{
AliasesInLog: pulumi.String("string"),
Key: pulumi.String("string"),
},
},
ResponseHeaders: apig.GatewayCustomLogResponseHeaderArray{
&apig.GatewayCustomLogResponseHeaderArgs{
AliasesInLog: pulumi.String("string"),
Key: pulumi.String("string"),
},
},
},
LogSpec: &apig.GatewayLogSpecArgs{
Enable: pulumi.Bool(false),
ProjectId: pulumi.String("string"),
TopicId: pulumi.String("string"),
},
MonitorSpec: &apig.GatewayMonitorSpecArgs{
Enable: pulumi.Bool(false),
WorkspaceId: pulumi.String("string"),
},
ProjectName: pulumi.String("string"),
ResourceSpec: &apig.GatewayResourceSpecArgs{
ClbSpecCode: pulumi.String("string"),
InstanceSpecCode: pulumi.String("string"),
NetworkType: &apig.GatewayResourceSpecNetworkTypeArgs{
EnablePrivateNetwork: pulumi.Bool(false),
EnablePublicNetwork: pulumi.Bool(false),
},
PublicNetworkBandwidth: pulumi.Int(0),
PublicNetworkBillingType: pulumi.String("string"),
Replicas: pulumi.Int(0),
},
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
TraceSpec: &apig.GatewayTraceSpecArgs{
ApmTraceSpec: &apig.GatewayTraceSpecApmTraceSpecArgs{
ApiKey: pulumi.String("string"),
},
Enable: pulumi.Bool(false),
TlsTraceSpec: &apig.GatewayTraceSpecTlsTraceSpecArgs{
IamUserAk: pulumi.String("string"),
IamUserSk: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TraceId: pulumi.String("string"),
},
TraceType: pulumi.String("string"),
},
Type: pulumi.String("string"),
VpcId: pulumi.String("string"),
})
var gatewayResource = new Gateway("gatewayResource", GatewayArgs.builder()
.name("string")
.comments("string")
.customLog(GatewayCustomLogArgs.builder()
.customVariables(GatewayCustomLogCustomVariableArgs.builder()
.aliasesInLog("string")
.key("string")
.build())
.requestHeaders(GatewayCustomLogRequestHeaderArgs.builder()
.aliasesInLog("string")
.key("string")
.build())
.responseHeaders(GatewayCustomLogResponseHeaderArgs.builder()
.aliasesInLog("string")
.key("string")
.build())
.build())
.logSpec(GatewayLogSpecArgs.builder()
.enable(false)
.projectId("string")
.topicId("string")
.build())
.monitorSpec(GatewayMonitorSpecArgs.builder()
.enable(false)
.workspaceId("string")
.build())
.projectName("string")
.resourceSpec(GatewayResourceSpecArgs.builder()
.clbSpecCode("string")
.instanceSpecCode("string")
.networkType(GatewayResourceSpecNetworkTypeArgs.builder()
.enablePrivateNetwork(false)
.enablePublicNetwork(false)
.build())
.publicNetworkBandwidth(0)
.publicNetworkBillingType("string")
.replicas(0)
.build())
.subnetIds("string")
.traceSpec(GatewayTraceSpecArgs.builder()
.apmTraceSpec(GatewayTraceSpecApmTraceSpecArgs.builder()
.apiKey("string")
.build())
.enable(false)
.tlsTraceSpec(GatewayTraceSpecTlsTraceSpecArgs.builder()
.iamUserAk("string")
.iamUserSk("string")
.projectId("string")
.traceId("string")
.build())
.traceType("string")
.build())
.type("string")
.vpcId("string")
.build());
gateway_resource = bytepluscc.apig.Gateway("gatewayResource",
name="string",
comments="string",
custom_log={
"custom_variables": [{
"aliases_in_log": "string",
"key": "string",
}],
"request_headers": [{
"aliases_in_log": "string",
"key": "string",
}],
"response_headers": [{
"aliases_in_log": "string",
"key": "string",
}],
},
log_spec={
"enable": False,
"project_id": "string",
"topic_id": "string",
},
monitor_spec={
"enable": False,
"workspace_id": "string",
},
project_name="string",
resource_spec={
"clb_spec_code": "string",
"instance_spec_code": "string",
"network_type": {
"enable_private_network": False,
"enable_public_network": False,
},
"public_network_bandwidth": 0,
"public_network_billing_type": "string",
"replicas": 0,
},
subnet_ids=["string"],
trace_spec={
"apm_trace_spec": {
"api_key": "string",
},
"enable": False,
"tls_trace_spec": {
"iam_user_ak": "string",
"iam_user_sk": "string",
"project_id": "string",
"trace_id": "string",
},
"trace_type": "string",
},
type="string",
vpc_id="string")
const gatewayResource = new bytepluscc.apig.Gateway("gatewayResource", {
name: "string",
comments: "string",
customLog: {
customVariables: [{
aliasesInLog: "string",
key: "string",
}],
requestHeaders: [{
aliasesInLog: "string",
key: "string",
}],
responseHeaders: [{
aliasesInLog: "string",
key: "string",
}],
},
logSpec: {
enable: false,
projectId: "string",
topicId: "string",
},
monitorSpec: {
enable: false,
workspaceId: "string",
},
projectName: "string",
resourceSpec: {
clbSpecCode: "string",
instanceSpecCode: "string",
networkType: {
enablePrivateNetwork: false,
enablePublicNetwork: false,
},
publicNetworkBandwidth: 0,
publicNetworkBillingType: "string",
replicas: 0,
},
subnetIds: ["string"],
traceSpec: {
apmTraceSpec: {
apiKey: "string",
},
enable: false,
tlsTraceSpec: {
iamUserAk: "string",
iamUserSk: "string",
projectId: "string",
traceId: "string",
},
traceType: "string",
},
type: "string",
vpcId: "string",
});
type: bytepluscc:apig:Gateway
properties:
comments: string
customLog:
customVariables:
- aliasesInLog: string
key: string
requestHeaders:
- aliasesInLog: string
key: string
responseHeaders:
- aliasesInLog: string
key: string
logSpec:
enable: false
projectId: string
topicId: string
monitorSpec:
enable: false
workspaceId: string
name: string
projectName: string
resourceSpec:
clbSpecCode: string
instanceSpecCode: string
networkType:
enablePrivateNetwork: false
enablePublicNetwork: false
publicNetworkBandwidth: 0
publicNetworkBillingType: string
replicas: 0
subnetIds:
- string
traceSpec:
apmTraceSpec:
apiKey: string
enable: false
tlsTraceSpec:
iamUserAk: string
iamUserSk: string
projectId: string
traceId: string
traceType: string
type: string
vpcId: 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:
- Name string
- 网关名称。
- Comments string
- 网关备注信息。长度限制为0~253个字符。
- Custom
Log Byteplus.Gateway Custom Log - 自定义日志配置。
- Log
Spec Byteplus.Gateway Log Spec - 日志配置。
- Monitor
Spec Byteplus.Gateway Monitor Spec - 监控配置信息。
- Project
Name string - 项目名称。
- Resource
Spec Byteplus.Gateway Resource Spec - 资源规格配置信息。
- Subnet
Ids List<string> - 子网ID列表。长度限制为1~2个。
- Trace
Spec Byteplus.Gateway Trace Spec - 链路追踪配置信息。
- Type string
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- Vpc
Id string - VPC ID。
- Name string
- 网关名称。
- Comments string
- 网关备注信息。长度限制为0~253个字符。
- Custom
Log GatewayCustom Log Args - 自定义日志配置。
- Log
Spec GatewayLog Spec Args - 日志配置。
- Monitor
Spec GatewayMonitor Spec Args - 监控配置信息。
- Project
Name string - 项目名称。
- Resource
Spec GatewayResource Spec Args - 资源规格配置信息。
- Subnet
Ids []string - 子网ID列表。长度限制为1~2个。
- Trace
Spec GatewayTrace Spec Args - 链路追踪配置信息。
- Type string
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- Vpc
Id string - VPC ID。
- name String
- 网关名称。
- comments String
- 网关备注信息。长度限制为0~253个字符。
- custom
Log GatewayCustom Log - 自定义日志配置。
- log
Spec GatewayLog Spec - 日志配置。
- monitor
Spec GatewayMonitor Spec - 监控配置信息。
- project
Name String - 项目名称。
- resource
Spec GatewayResource Spec - 资源规格配置信息。
- subnet
Ids List<String> - 子网ID列表。长度限制为1~2个。
- trace
Spec GatewayTrace Spec - 链路追踪配置信息。
- type String
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- vpc
Id String - VPC ID。
- name string
- 网关名称。
- comments string
- 网关备注信息。长度限制为0~253个字符。
- custom
Log GatewayCustom Log - 自定义日志配置。
- log
Spec GatewayLog Spec - 日志配置。
- monitor
Spec GatewayMonitor Spec - 监控配置信息。
- project
Name string - 项目名称。
- resource
Spec GatewayResource Spec - 资源规格配置信息。
- subnet
Ids string[] - 子网ID列表。长度限制为1~2个。
- trace
Spec GatewayTrace Spec - 链路追踪配置信息。
- type string
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- vpc
Id string - VPC ID。
- name str
- 网关名称。
- comments str
- 网关备注信息。长度限制为0~253个字符。
- custom_
log GatewayCustom Log Args - 自定义日志配置。
- log_
spec GatewayLog Spec Args - 日志配置。
- monitor_
spec GatewayMonitor Spec Args - 监控配置信息。
- project_
name str - 项目名称。
- resource_
spec GatewayResource Spec Args - 资源规格配置信息。
- subnet_
ids Sequence[str] - 子网ID列表。长度限制为1~2个。
- trace_
spec GatewayTrace Spec Args - 链路追踪配置信息。
- type str
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- vpc_
id str - VPC ID。
- name String
- 网关名称。
- comments String
- 网关备注信息。长度限制为0~253个字符。
- custom
Log Property Map - 自定义日志配置。
- log
Spec Property Map - 日志配置。
- monitor
Spec Property Map - 监控配置信息。
- project
Name String - 项目名称。
- resource
Spec Property Map - 资源规格配置信息。
- subnet
Ids List<String> - 子网ID列表。长度限制为1~2个。
- trace
Spec Property Map - 链路追踪配置信息。
- type String
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- vpc
Id String - VPC ID。
Outputs
All input properties are implicitly available as output properties. Additionally, the Gateway resource produces the following output properties:
- Backend
Spec Byteplus.Gateway Backend Spec - 后端服务配置信息。
- Created
Time string - 网关创建时间。
- Events
List<Byteplus.
Gateway Event> - Gateway
Id string - 网关实例ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Message string
- 网关创建失败、删除失败或异常时的错误信息。
- Network
Spec Byteplus.Gateway Network Spec - 网络配置信息。
- Status string
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- Version string
- 网关版本。
- Backend
Spec GatewayBackend Spec - 后端服务配置信息。
- Created
Time string - 网关创建时间。
- Events
[]Gateway
Event - Gateway
Id string - 网关实例ID。
- Id string
- The provider-assigned unique ID for this managed resource.
- Message string
- 网关创建失败、删除失败或异常时的错误信息。
- Network
Spec GatewayNetwork Spec - 网络配置信息。
- Status string
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- Version string
- 网关版本。
- backend
Spec GatewayBackend Spec - 后端服务配置信息。
- created
Time String - 网关创建时间。
- events
List<Gateway
Event> - gateway
Id String - 网关实例ID。
- id String
- The provider-assigned unique ID for this managed resource.
- message String
- 网关创建失败、删除失败或异常时的错误信息。
- network
Spec GatewayNetwork Spec - 网络配置信息。
- status String
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- version String
- 网关版本。
- backend
Spec GatewayBackend Spec - 后端服务配置信息。
- created
Time string - 网关创建时间。
- events
Gateway
Event[] - gateway
Id string - 网关实例ID。
- id string
- The provider-assigned unique ID for this managed resource.
- message string
- 网关创建失败、删除失败或异常时的错误信息。
- network
Spec GatewayNetwork Spec - 网络配置信息。
- status string
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- version string
- 网关版本。
- backend_
spec GatewayBackend Spec - 后端服务配置信息。
- created_
time str - 网关创建时间。
- events
Sequence[Gateway
Event] - gateway_
id str - 网关实例ID。
- id str
- The provider-assigned unique ID for this managed resource.
- message str
- 网关创建失败、删除失败或异常时的错误信息。
- network_
spec GatewayNetwork Spec - 网络配置信息。
- status str
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- version str
- 网关版本。
- backend
Spec Property Map - 后端服务配置信息。
- created
Time String - 网关创建时间。
- events List<Property Map>
- gateway
Id String - 网关实例ID。
- id String
- The provider-assigned unique ID for this managed resource.
- message String
- 网关创建失败、删除失败或异常时的错误信息。
- network
Spec Property Map - 网络配置信息。
- status String
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- version String
- 网关版本。
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,
backend_spec: Optional[GatewayBackendSpecArgs] = None,
comments: Optional[str] = None,
created_time: Optional[str] = None,
custom_log: Optional[GatewayCustomLogArgs] = None,
events: Optional[Sequence[GatewayEventArgs]] = None,
gateway_id: Optional[str] = None,
log_spec: Optional[GatewayLogSpecArgs] = None,
message: Optional[str] = None,
monitor_spec: Optional[GatewayMonitorSpecArgs] = None,
name: Optional[str] = None,
network_spec: Optional[GatewayNetworkSpecArgs] = None,
project_name: Optional[str] = None,
resource_spec: Optional[GatewayResourceSpecArgs] = None,
status: Optional[str] = None,
subnet_ids: Optional[Sequence[str]] = None,
trace_spec: Optional[GatewayTraceSpecArgs] = None,
type: Optional[str] = None,
version: Optional[str] = None,
vpc_id: Optional[str] = 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: bytepluscc:apig:Gateway 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.
- Backend
Spec Byteplus.Gateway Backend Spec - 后端服务配置信息。
- Comments string
- 网关备注信息。长度限制为0~253个字符。
- Created
Time string - 网关创建时间。
- Custom
Log Byteplus.Gateway Custom Log - 自定义日志配置。
- Events
List<Byteplus.
Gateway Event> - Gateway
Id string - 网关实例ID。
- Log
Spec Byteplus.Gateway Log Spec - 日志配置。
- Message string
- 网关创建失败、删除失败或异常时的错误信息。
- Monitor
Spec Byteplus.Gateway Monitor Spec - 监控配置信息。
- Name string
- 网关名称。
- Network
Spec Byteplus.Gateway Network Spec - 网络配置信息。
- Project
Name string - 项目名称。
- Resource
Spec Byteplus.Gateway Resource Spec - 资源规格配置信息。
- Status string
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- Subnet
Ids List<string> - 子网ID列表。长度限制为1~2个。
- Trace
Spec Byteplus.Gateway Trace Spec - 链路追踪配置信息。
- Type string
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- Version string
- 网关版本。
- Vpc
Id string - VPC ID。
- Backend
Spec GatewayBackend Spec Args - 后端服务配置信息。
- Comments string
- 网关备注信息。长度限制为0~253个字符。
- Created
Time string - 网关创建时间。
- Custom
Log GatewayCustom Log Args - 自定义日志配置。
- Events
[]Gateway
Event Args - Gateway
Id string - 网关实例ID。
- Log
Spec GatewayLog Spec Args - 日志配置。
- Message string
- 网关创建失败、删除失败或异常时的错误信息。
- Monitor
Spec GatewayMonitor Spec Args - 监控配置信息。
- Name string
- 网关名称。
- Network
Spec GatewayNetwork Spec Args - 网络配置信息。
- Project
Name string - 项目名称。
- Resource
Spec GatewayResource Spec Args - 资源规格配置信息。
- Status string
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- Subnet
Ids []string - 子网ID列表。长度限制为1~2个。
- Trace
Spec GatewayTrace Spec Args - 链路追踪配置信息。
- Type string
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- Version string
- 网关版本。
- Vpc
Id string - VPC ID。
- backend
Spec GatewayBackend Spec - 后端服务配置信息。
- comments String
- 网关备注信息。长度限制为0~253个字符。
- created
Time String - 网关创建时间。
- custom
Log GatewayCustom Log - 自定义日志配置。
- events
List<Gateway
Event> - gateway
Id String - 网关实例ID。
- log
Spec GatewayLog Spec - 日志配置。
- message String
- 网关创建失败、删除失败或异常时的错误信息。
- monitor
Spec GatewayMonitor Spec - 监控配置信息。
- name String
- 网关名称。
- network
Spec GatewayNetwork Spec - 网络配置信息。
- project
Name String - 项目名称。
- resource
Spec GatewayResource Spec - 资源规格配置信息。
- status String
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- subnet
Ids List<String> - 子网ID列表。长度限制为1~2个。
- trace
Spec GatewayTrace Spec - 链路追踪配置信息。
- type String
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- version String
- 网关版本。
- vpc
Id String - VPC ID。
- backend
Spec GatewayBackend Spec - 后端服务配置信息。
- comments string
- 网关备注信息。长度限制为0~253个字符。
- created
Time string - 网关创建时间。
- custom
Log GatewayCustom Log - 自定义日志配置。
- events
Gateway
Event[] - gateway
Id string - 网关实例ID。
- log
Spec GatewayLog Spec - 日志配置。
- message string
- 网关创建失败、删除失败或异常时的错误信息。
- monitor
Spec GatewayMonitor Spec - 监控配置信息。
- name string
- 网关名称。
- network
Spec GatewayNetwork Spec - 网络配置信息。
- project
Name string - 项目名称。
- resource
Spec GatewayResource Spec - 资源规格配置信息。
- status string
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- subnet
Ids string[] - 子网ID列表。长度限制为1~2个。
- trace
Spec GatewayTrace Spec - 链路追踪配置信息。
- type string
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- version string
- 网关版本。
- vpc
Id string - VPC ID。
- backend_
spec GatewayBackend Spec Args - 后端服务配置信息。
- comments str
- 网关备注信息。长度限制为0~253个字符。
- created_
time str - 网关创建时间。
- custom_
log GatewayCustom Log Args - 自定义日志配置。
- events
Sequence[Gateway
Event Args] - gateway_
id str - 网关实例ID。
- log_
spec GatewayLog Spec Args - 日志配置。
- message str
- 网关创建失败、删除失败或异常时的错误信息。
- monitor_
spec GatewayMonitor Spec Args - 监控配置信息。
- name str
- 网关名称。
- network_
spec GatewayNetwork Spec Args - 网络配置信息。
- project_
name str - 项目名称。
- resource_
spec GatewayResource Spec Args - 资源规格配置信息。
- status str
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- subnet_
ids Sequence[str] - 子网ID列表。长度限制为1~2个。
- trace_
spec GatewayTrace Spec Args - 链路追踪配置信息。
- type str
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- version str
- 网关版本。
- vpc_
id str - VPC ID。
- backend
Spec Property Map - 后端服务配置信息。
- comments String
- 网关备注信息。长度限制为0~253个字符。
- created
Time String - 网关创建时间。
- custom
Log Property Map - 自定义日志配置。
- events List<Property Map>
- gateway
Id String - 网关实例ID。
- log
Spec Property Map - 日志配置。
- message String
- 网关创建失败、删除失败或异常时的错误信息。
- monitor
Spec Property Map - 监控配置信息。
- name String
- 网关名称。
- network
Spec Property Map - 网络配置信息。
- project
Name String - 项目名称。
- resource
Spec Property Map - 资源规格配置信息。
- status String
- 网关状态,取值:Creating:创建中。CreatedFailed:创建失败。Updating:更新中。Running:运行中。Deleting:删除中。DeletedFailed:删除失败。Abnormal:异常。
- subnet
Ids List<String> - 子网ID列表。长度限制为1~2个。
- trace
Spec Property Map - 链路追踪配置信息。
- type String
- 网关类型,取值:standard:标准网关。serverless:Serverless网关(暂不支持)。
- version String
- 网关版本。
- vpc
Id String - VPC ID。
Supporting Types
GatewayBackendSpec, GatewayBackendSpecArgs
- Is
Vke boolWith Flannel Cni Supported - 是否支持VKE Flannel CNI。
- Vke
Pod stringCidr - VKE Pod CIDR。
- Is
Vke boolWith Flannel Cni Supported - 是否支持VKE Flannel CNI。
- Vke
Pod stringCidr - VKE Pod CIDR。
- is
Vke BooleanWith Flannel Cni Supported - 是否支持VKE Flannel CNI。
- vke
Pod StringCidr - VKE Pod CIDR。
- is
Vke booleanWith Flannel Cni Supported - 是否支持VKE Flannel CNI。
- vke
Pod stringCidr - VKE Pod CIDR。
- is_
vke_ boolwith_ flannel_ cni_ supported - 是否支持VKE Flannel CNI。
- vke_
pod_ strcidr - VKE Pod CIDR。
- is
Vke BooleanWith Flannel Cni Supported - 是否支持VKE Flannel CNI。
- vke
Pod StringCidr - VKE Pod CIDR。
GatewayCustomLog, GatewayCustomLogArgs
GatewayCustomLogCustomVariable, GatewayCustomLogCustomVariableArgs
- Aliases
In stringLog - 字段别名。
- Key string
- 请求头键。
- Aliases
In stringLog - 字段别名。
- Key string
- 请求头键。
- aliases
In StringLog - 字段别名。
- key String
- 请求头键。
- aliases
In stringLog - 字段别名。
- key string
- 请求头键。
- aliases_
in_ strlog - 字段别名。
- key str
- 请求头键。
- aliases
In StringLog - 字段别名。
- key String
- 请求头键。
GatewayCustomLogRequestHeader, GatewayCustomLogRequestHeaderArgs
- Aliases
In stringLog - 字段别名。
- Key string
- 请求头键。
- Aliases
In stringLog - 字段别名。
- Key string
- 请求头键。
- aliases
In StringLog - 字段别名。
- key String
- 请求头键。
- aliases
In stringLog - 字段别名。
- key string
- 请求头键。
- aliases_
in_ strlog - 字段别名。
- key str
- 请求头键。
- aliases
In StringLog - 字段别名。
- key String
- 请求头键。
GatewayCustomLogResponseHeader, GatewayCustomLogResponseHeaderArgs
- Aliases
In stringLog - 字段别名。
- Key string
- 请求头键。
- Aliases
In stringLog - 字段别名。
- Key string
- 请求头键。
- aliases
In StringLog - 字段别名。
- key String
- 请求头键。
- aliases
In stringLog - 字段别名。
- key string
- 请求头键。
- aliases_
in_ strlog - 字段别名。
- key str
- 请求头键。
- aliases
In StringLog - 字段别名。
- key String
- 请求头键。
GatewayEvent, GatewayEventArgs
- Code string
- 事件代码。
- Created
Time string - 事件创建时间。
- Data string
- 附带信息。
- Description string
- 事件描述。
- Code string
- 事件代码。
- Created
Time string - 事件创建时间。
- Data string
- 附带信息。
- Description string
- 事件描述。
- code String
- 事件代码。
- created
Time String - 事件创建时间。
- data String
- 附带信息。
- description String
- 事件描述。
- code string
- 事件代码。
- created
Time string - 事件创建时间。
- data string
- 附带信息。
- description string
- 事件描述。
- code str
- 事件代码。
- created_
time str - 事件创建时间。
- data str
- 附带信息。
- description str
- 事件描述。
- code String
- 事件代码。
- created
Time String - 事件创建时间。
- data String
- 附带信息。
- description String
- 事件描述。
GatewayLogSpec, GatewayLogSpecArgs
- enable bool
- 是否开启日志服务。
- project_
id str - 日志项目ID。
- topic_
id str - 日志主题ID。ProjectId 指定项目里面的日志主题。
GatewayMonitorSpec, GatewayMonitorSpecArgs
- Enable bool
- 托管Prometheus(VMP)服务。
- Workspace
Id string - Prometheus工作区ID。
- Enable bool
- 托管Prometheus(VMP)服务。
- Workspace
Id string - Prometheus工作区ID。
- enable Boolean
- 托管Prometheus(VMP)服务。
- workspace
Id String - Prometheus工作区ID。
- enable boolean
- 托管Prometheus(VMP)服务。
- workspace
Id string - Prometheus工作区ID。
- enable bool
- 托管Prometheus(VMP)服务。
- workspace_
id str - Prometheus工作区ID。
- enable Boolean
- 托管Prometheus(VMP)服务。
- workspace
Id String - Prometheus工作区ID。
GatewayNetworkSpec, GatewayNetworkSpecArgs
- Subnets
List<Byteplus.
Gateway Network Spec Subnet> - Vpc
Id string - VPC ID。
- Vpc
Name string - VPC名称。
- Subnets
[]Gateway
Network Spec Subnet - Vpc
Id string - VPC ID。
- Vpc
Name string - VPC名称。
- subnets
List<Gateway
Network Spec Subnet> - vpc
Id String - VPC ID。
- vpc
Name String - VPC名称。
- subnets
Gateway
Network Spec Subnet[] - vpc
Id string - VPC ID。
- vpc
Name string - VPC名称。
- subnets
Sequence[Gateway
Network Spec Subnet] - vpc_
id str - VPC ID。
- vpc_
name str - VPC名称。
- subnets List<Property Map>
- vpc
Id String - VPC ID。
- vpc
Name String - VPC名称。
GatewayNetworkSpecSubnet, GatewayNetworkSpecSubnetArgs
- Az string
- 可用区。
- Subnet
Id string - 子网ID。
- Subnet
Name string - 子网名称。
- Az string
- 可用区。
- Subnet
Id string - 子网ID。
- Subnet
Name string - 子网名称。
- az String
- 可用区。
- subnet
Id String - 子网ID。
- subnet
Name String - 子网名称。
- az string
- 可用区。
- subnet
Id string - 子网ID。
- subnet
Name string - 子网名称。
- az str
- 可用区。
- subnet_
id str - 子网ID。
- subnet_
name str - 子网名称。
- az String
- 可用区。
- subnet
Id String - 子网ID。
- subnet
Name String - 子网名称。
GatewayResourceSpec, GatewayResourceSpecArgs
- Clb
Spec stringCode - CLB规格编码。CLB规格,取值:small1:小型 I。small2:小型 II。medium1:中型 I。medium2:中型 II。large1:大型 I。large2:大型 II。
- Instance
Spec stringCode - 节点规格,取值:1c2g。2c4g。4c8g。8c16g。
- Network
Type Byteplus.Gateway Resource Spec Network Type - 网络类型。默认值为开启公网,开启私网。
- Public
Network intBandwidth - 公网带宽上限,该字段仅用于“按带宽上限收费”公网网络计费方式。单位为Mbps。取值限制为0~500。默认值为0。
- Public
Network stringBilling Type - 公网网络计费方式,取值:traffic:按实际流量计费。bandwidth:按带宽上限计费。
- Replicas int
- 节点数量。取值限制为2~100。
- Clb
Spec stringCode - CLB规格编码。CLB规格,取值:small1:小型 I。small2:小型 II。medium1:中型 I。medium2:中型 II。large1:大型 I。large2:大型 II。
- Instance
Spec stringCode - 节点规格,取值:1c2g。2c4g。4c8g。8c16g。
- Network
Type GatewayResource Spec Network Type - 网络类型。默认值为开启公网,开启私网。
- Public
Network intBandwidth - 公网带宽上限,该字段仅用于“按带宽上限收费”公网网络计费方式。单位为Mbps。取值限制为0~500。默认值为0。
- Public
Network stringBilling Type - 公网网络计费方式,取值:traffic:按实际流量计费。bandwidth:按带宽上限计费。
- Replicas int
- 节点数量。取值限制为2~100。
- clb
Spec StringCode - CLB规格编码。CLB规格,取值:small1:小型 I。small2:小型 II。medium1:中型 I。medium2:中型 II。large1:大型 I。large2:大型 II。
- instance
Spec StringCode - 节点规格,取值:1c2g。2c4g。4c8g。8c16g。
- network
Type GatewayResource Spec Network Type - 网络类型。默认值为开启公网,开启私网。
- public
Network IntegerBandwidth - 公网带宽上限,该字段仅用于“按带宽上限收费”公网网络计费方式。单位为Mbps。取值限制为0~500。默认值为0。
- public
Network StringBilling Type - 公网网络计费方式,取值:traffic:按实际流量计费。bandwidth:按带宽上限计费。
- replicas Integer
- 节点数量。取值限制为2~100。
- clb
Spec stringCode - CLB规格编码。CLB规格,取值:small1:小型 I。small2:小型 II。medium1:中型 I。medium2:中型 II。large1:大型 I。large2:大型 II。
- instance
Spec stringCode - 节点规格,取值:1c2g。2c4g。4c8g。8c16g。
- network
Type GatewayResource Spec Network Type - 网络类型。默认值为开启公网,开启私网。
- public
Network numberBandwidth - 公网带宽上限,该字段仅用于“按带宽上限收费”公网网络计费方式。单位为Mbps。取值限制为0~500。默认值为0。
- public
Network stringBilling Type - 公网网络计费方式,取值:traffic:按实际流量计费。bandwidth:按带宽上限计费。
- replicas number
- 节点数量。取值限制为2~100。
- clb_
spec_ strcode - CLB规格编码。CLB规格,取值:small1:小型 I。small2:小型 II。medium1:中型 I。medium2:中型 II。large1:大型 I。large2:大型 II。
- instance_
spec_ strcode - 节点规格,取值:1c2g。2c4g。4c8g。8c16g。
- network_
type GatewayResource Spec Network Type - 网络类型。默认值为开启公网,开启私网。
- public_
network_ intbandwidth - 公网带宽上限,该字段仅用于“按带宽上限收费”公网网络计费方式。单位为Mbps。取值限制为0~500。默认值为0。
- public_
network_ strbilling_ type - 公网网络计费方式,取值:traffic:按实际流量计费。bandwidth:按带宽上限计费。
- replicas int
- 节点数量。取值限制为2~100。
- clb
Spec StringCode - CLB规格编码。CLB规格,取值:small1:小型 I。small2:小型 II。medium1:中型 I。medium2:中型 II。large1:大型 I。large2:大型 II。
- instance
Spec StringCode - 节点规格,取值:1c2g。2c4g。4c8g。8c16g。
- network
Type Property Map - 网络类型。默认值为开启公网,开启私网。
- public
Network NumberBandwidth - 公网带宽上限,该字段仅用于“按带宽上限收费”公网网络计费方式。单位为Mbps。取值限制为0~500。默认值为0。
- public
Network StringBilling Type - 公网网络计费方式,取值:traffic:按实际流量计费。bandwidth:按带宽上限计费。
- replicas Number
- 节点数量。取值限制为2~100。
GatewayResourceSpecNetworkType, GatewayResourceSpecNetworkTypeArgs
- Enable
Private boolNetwork - 是否启用私网。
- Enable
Public boolNetwork - 是否启用公网。
- Enable
Private boolNetwork - 是否启用私网。
- Enable
Public boolNetwork - 是否启用公网。
- enable
Private BooleanNetwork - 是否启用私网。
- enable
Public BooleanNetwork - 是否启用公网。
- enable
Private booleanNetwork - 是否启用私网。
- enable
Public booleanNetwork - 是否启用公网。
- enable_
private_ boolnetwork - 是否启用私网。
- enable_
public_ boolnetwork - 是否启用公网。
- enable
Private BooleanNetwork - 是否启用私网。
- enable
Public BooleanNetwork - 是否启用公网。
GatewayTraceSpec, GatewayTraceSpecArgs
- Apm
Trace Byteplus.Spec Gateway Trace Spec Apm Trace Spec - 应用性能监控全链路版链路追踪配置。
- Enable bool
- 是否启用链路追踪。
- Tls
Trace Byteplus.Spec Gateway Trace Spec Tls Trace Spec - 链路追踪配置信息。
- Trace
Type string - 链路追踪类型,取值:tls:日志服务。apm:应用性能监控全链路版。
- Apm
Trace GatewaySpec Trace Spec Apm Trace Spec - 应用性能监控全链路版链路追踪配置。
- Enable bool
- 是否启用链路追踪。
- Tls
Trace GatewaySpec Trace Spec Tls Trace Spec - 链路追踪配置信息。
- Trace
Type string - 链路追踪类型,取值:tls:日志服务。apm:应用性能监控全链路版。
- apm
Trace GatewaySpec Trace Spec Apm Trace Spec - 应用性能监控全链路版链路追踪配置。
- enable Boolean
- 是否启用链路追踪。
- tls
Trace GatewaySpec Trace Spec Tls Trace Spec - 链路追踪配置信息。
- trace
Type String - 链路追踪类型,取值:tls:日志服务。apm:应用性能监控全链路版。
- apm
Trace GatewaySpec Trace Spec Apm Trace Spec - 应用性能监控全链路版链路追踪配置。
- enable boolean
- 是否启用链路追踪。
- tls
Trace GatewaySpec Trace Spec Tls Trace Spec - 链路追踪配置信息。
- trace
Type string - 链路追踪类型,取值:tls:日志服务。apm:应用性能监控全链路版。
- apm_
trace_ Gatewayspec Trace Spec Apm Trace Spec - 应用性能监控全链路版链路追踪配置。
- enable bool
- 是否启用链路追踪。
- tls_
trace_ Gatewayspec Trace Spec Tls Trace Spec - 链路追踪配置信息。
- trace_
type str - 链路追踪类型,取值:tls:日志服务。apm:应用性能监控全链路版。
- apm
Trace Property MapSpec - 应用性能监控全链路版链路追踪配置。
- enable Boolean
- 是否启用链路追踪。
- tls
Trace Property MapSpec - 链路追踪配置信息。
- trace
Type String - 链路追踪类型,取值:tls:日志服务。apm:应用性能监控全链路版。
GatewayTraceSpecApmTraceSpec, GatewayTraceSpecApmTraceSpecArgs
- Api
Key string - API Key。
- Api
Key string - API Key。
- api
Key String - API Key。
- api
Key string - API Key。
- api_
key str - API Key。
- api
Key String - API Key。
GatewayTraceSpecTlsTraceSpec, GatewayTraceSpecTlsTraceSpecArgs
- iam_
user_ strak - Access key。
- iam_
user_ strsk - Secret key。
- project_
id str - 日志项目ID。
- trace_
id str - Trace ID。
Import
$ pulumi import bytepluscc:apig/gateway:Gateway example "gateway_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
