tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getApiGatewayApis
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
Use this data source to query API gateway APIs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const service = new tencentcloud.ApiGatewayService("service", {
serviceName: "ck",
protocol: "http&https",
serviceDesc: "your nice service",
netTypes: [
"INNER",
"OUTER",
],
ipVersion: "IPv4",
});
const api = new tencentcloud.ApiGatewayApi("api", {
serviceId: service.apiGatewayServiceId,
apiName: "hello",
apiDesc: "my hello api",
authType: "NONE",
protocol: "HTTP",
enableCors: true,
requestConfigPath: "/user/info",
requestConfigMethod: "GET",
serviceConfigType: "HTTP",
serviceConfigTimeout: 15,
serviceConfigUrl: "http://www.qq.com",
serviceConfigPath: "/user",
serviceConfigMethod: "GET",
responseType: "HTML",
responseSuccessExample: "success",
responseFailExample: "fail",
});
const id = tencentcloud.getApiGatewayApisOutput({
serviceId: service.apiGatewayServiceId,
apiId: api.apiGatewayApiId,
});
const name = tencentcloud.getApiGatewayApisOutput({
serviceId: service.apiGatewayServiceId,
apiName: api.apiName,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
service = tencentcloud.ApiGatewayService("service",
service_name="ck",
protocol="http&https",
service_desc="your nice service",
net_types=[
"INNER",
"OUTER",
],
ip_version="IPv4")
api = tencentcloud.ApiGatewayApi("api",
service_id=service.api_gateway_service_id,
api_name="hello",
api_desc="my hello api",
auth_type="NONE",
protocol="HTTP",
enable_cors=True,
request_config_path="/user/info",
request_config_method="GET",
service_config_type="HTTP",
service_config_timeout=15,
service_config_url="http://www.qq.com",
service_config_path="/user",
service_config_method="GET",
response_type="HTML",
response_success_example="success",
response_fail_example="fail")
id = tencentcloud.get_api_gateway_apis_output(service_id=service.api_gateway_service_id,
api_id=api.api_gateway_api_id)
name = tencentcloud.get_api_gateway_apis_output(service_id=service.api_gateway_service_id,
api_name=api.api_name)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
service, err := tencentcloud.NewApiGatewayService(ctx, "service", &tencentcloud.ApiGatewayServiceArgs{
ServiceName: pulumi.String("ck"),
Protocol: pulumi.String("http&https"),
ServiceDesc: pulumi.String("your nice service"),
NetTypes: pulumi.StringArray{
pulumi.String("INNER"),
pulumi.String("OUTER"),
},
IpVersion: pulumi.String("IPv4"),
})
if err != nil {
return err
}
api, err := tencentcloud.NewApiGatewayApi(ctx, "api", &tencentcloud.ApiGatewayApiArgs{
ServiceId: service.ApiGatewayServiceId,
ApiName: pulumi.String("hello"),
ApiDesc: pulumi.String("my hello api"),
AuthType: pulumi.String("NONE"),
Protocol: pulumi.String("HTTP"),
EnableCors: pulumi.Bool(true),
RequestConfigPath: pulumi.String("/user/info"),
RequestConfigMethod: pulumi.String("GET"),
ServiceConfigType: pulumi.String("HTTP"),
ServiceConfigTimeout: pulumi.Float64(15),
ServiceConfigUrl: pulumi.String("http://www.qq.com"),
ServiceConfigPath: pulumi.String("/user"),
ServiceConfigMethod: pulumi.String("GET"),
ResponseType: pulumi.String("HTML"),
ResponseSuccessExample: pulumi.String("success"),
ResponseFailExample: pulumi.String("fail"),
})
if err != nil {
return err
}
_ = tencentcloud.GetApiGatewayApisOutput(ctx, tencentcloud.GetApiGatewayApisOutputArgs{
ServiceId: service.ApiGatewayServiceId,
ApiId: api.ApiGatewayApiId,
}, nil)
_ = tencentcloud.GetApiGatewayApisOutput(ctx, tencentcloud.GetApiGatewayApisOutputArgs{
ServiceId: service.ApiGatewayServiceId,
ApiName: api.ApiName,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var service = new Tencentcloud.ApiGatewayService("service", new()
{
ServiceName = "ck",
Protocol = "http&https",
ServiceDesc = "your nice service",
NetTypes = new[]
{
"INNER",
"OUTER",
},
IpVersion = "IPv4",
});
var api = new Tencentcloud.ApiGatewayApi("api", new()
{
ServiceId = service.ApiGatewayServiceId,
ApiName = "hello",
ApiDesc = "my hello api",
AuthType = "NONE",
Protocol = "HTTP",
EnableCors = true,
RequestConfigPath = "/user/info",
RequestConfigMethod = "GET",
ServiceConfigType = "HTTP",
ServiceConfigTimeout = 15,
ServiceConfigUrl = "http://www.qq.com",
ServiceConfigPath = "/user",
ServiceConfigMethod = "GET",
ResponseType = "HTML",
ResponseSuccessExample = "success",
ResponseFailExample = "fail",
});
var id = Tencentcloud.GetApiGatewayApis.Invoke(new()
{
ServiceId = service.ApiGatewayServiceId,
ApiId = api.ApiGatewayApiId,
});
var name = Tencentcloud.GetApiGatewayApis.Invoke(new()
{
ServiceId = service.ApiGatewayServiceId,
ApiName = api.ApiName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ApiGatewayService;
import com.pulumi.tencentcloud.ApiGatewayServiceArgs;
import com.pulumi.tencentcloud.ApiGatewayApi;
import com.pulumi.tencentcloud.ApiGatewayApiArgs;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetApiGatewayApisArgs;
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 service = new ApiGatewayService("service", ApiGatewayServiceArgs.builder()
.serviceName("ck")
.protocol("http&https")
.serviceDesc("your nice service")
.netTypes(
"INNER",
"OUTER")
.ipVersion("IPv4")
.build());
var api = new ApiGatewayApi("api", ApiGatewayApiArgs.builder()
.serviceId(service.apiGatewayServiceId())
.apiName("hello")
.apiDesc("my hello api")
.authType("NONE")
.protocol("HTTP")
.enableCors(true)
.requestConfigPath("/user/info")
.requestConfigMethod("GET")
.serviceConfigType("HTTP")
.serviceConfigTimeout(15)
.serviceConfigUrl("http://www.qq.com")
.serviceConfigPath("/user")
.serviceConfigMethod("GET")
.responseType("HTML")
.responseSuccessExample("success")
.responseFailExample("fail")
.build());
final var id = TencentcloudFunctions.getApiGatewayApis(GetApiGatewayApisArgs.builder()
.serviceId(service.apiGatewayServiceId())
.apiId(api.apiGatewayApiId())
.build());
final var name = TencentcloudFunctions.getApiGatewayApis(GetApiGatewayApisArgs.builder()
.serviceId(service.apiGatewayServiceId())
.apiName(api.apiName())
.build());
}
}
resources:
service:
type: tencentcloud:ApiGatewayService
properties:
serviceName: ck
protocol: http&https
serviceDesc: your nice service
netTypes:
- INNER
- OUTER
ipVersion: IPv4
api:
type: tencentcloud:ApiGatewayApi
properties:
serviceId: ${service.apiGatewayServiceId}
apiName: hello
apiDesc: my hello api
authType: NONE
protocol: HTTP
enableCors: true
requestConfigPath: /user/info
requestConfigMethod: GET
serviceConfigType: HTTP
serviceConfigTimeout: 15
serviceConfigUrl: http://www.qq.com
serviceConfigPath: /user
serviceConfigMethod: GET
responseType: HTML
responseSuccessExample: success
responseFailExample: fail
variables:
id:
fn::invoke:
function: tencentcloud:getApiGatewayApis
arguments:
serviceId: ${service.apiGatewayServiceId}
apiId: ${api.apiGatewayApiId}
name:
fn::invoke:
function: tencentcloud:getApiGatewayApis
arguments:
serviceId: ${service.apiGatewayServiceId}
apiName: ${api.apiName}
Using getApiGatewayApis
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getApiGatewayApis(args: GetApiGatewayApisArgs, opts?: InvokeOptions): Promise<GetApiGatewayApisResult>
function getApiGatewayApisOutput(args: GetApiGatewayApisOutputArgs, opts?: InvokeOptions): Output<GetApiGatewayApisResult>
def get_api_gateway_apis(api_id: Optional[str] = None,
api_name: Optional[str] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
service_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApiGatewayApisResult
def get_api_gateway_apis_output(api_id: Optional[pulumi.Input[str]] = None,
api_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
service_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApiGatewayApisResult]
func GetApiGatewayApis(ctx *Context, args *GetApiGatewayApisArgs, opts ...InvokeOption) (*GetApiGatewayApisResult, error)
func GetApiGatewayApisOutput(ctx *Context, args *GetApiGatewayApisOutputArgs, opts ...InvokeOption) GetApiGatewayApisResultOutput
> Note: This function is named GetApiGatewayApis
in the Go SDK.
public static class GetApiGatewayApis
{
public static Task<GetApiGatewayApisResult> InvokeAsync(GetApiGatewayApisArgs args, InvokeOptions? opts = null)
public static Output<GetApiGatewayApisResult> Invoke(GetApiGatewayApisInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApiGatewayApisResult> getApiGatewayApis(GetApiGatewayApisArgs args, InvokeOptions options)
public static Output<GetApiGatewayApisResult> getApiGatewayApis(GetApiGatewayApisArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getApiGatewayApis:getApiGatewayApis
arguments:
# arguments dictionary
The following arguments are supported:
- Service
Id This property is required. string - Service ID for query.
- Api
Id string - Created API ID.
- Api
Name string - Custom API name.
- Id string
- Result
Output stringFile - Used to save results.
- Service
Id This property is required. string - Service ID for query.
- Api
Id string - Created API ID.
- Api
Name string - Custom API name.
- Id string
- Result
Output stringFile - Used to save results.
- service
Id This property is required. String - Service ID for query.
- api
Id String - Created API ID.
- api
Name String - Custom API name.
- id String
- result
Output StringFile - Used to save results.
- service
Id This property is required. string - Service ID for query.
- api
Id string - Created API ID.
- api
Name string - Custom API name.
- id string
- result
Output stringFile - Used to save results.
- service_
id This property is required. str - Service ID for query.
- api_
id str - Created API ID.
- api_
name str - Custom API name.
- id str
- result_
output_ strfile - Used to save results.
- service
Id This property is required. String - Service ID for query.
- api
Id String - Created API ID.
- api
Name String - Custom API name.
- id String
- result
Output StringFile - Used to save results.
getApiGatewayApis Result
The following output properties are available:
- Id string
- Lists
List<Get
Api Gateway Apis List> - A list of APIs.
- Service
Id string - Which service this API belongs. Refer to resource
tencentcloud.ApiGatewayService
. - Api
Id string - Api
Name string - Custom API name.
- Result
Output stringFile
- Id string
- Lists
[]Get
Api Gateway Apis List - A list of APIs.
- Service
Id string - Which service this API belongs. Refer to resource
tencentcloud.ApiGatewayService
. - Api
Id string - Api
Name string - Custom API name.
- Result
Output stringFile
- id String
- lists
List<Get
Api Gateway Apis List> - A list of APIs.
- service
Id String - Which service this API belongs. Refer to resource
tencentcloud.ApiGatewayService
. - api
Id String - api
Name String - Custom API name.
- result
Output StringFile
- id string
- lists
Get
Api Gateway Apis List[] - A list of APIs.
- service
Id string - Which service this API belongs. Refer to resource
tencentcloud.ApiGatewayService
. - api
Id string - api
Name string - Custom API name.
- result
Output stringFile
- id str
- lists
Sequence[Get
Api Gateway Apis List] - A list of APIs.
- service_
id str - Which service this API belongs. Refer to resource
tencentcloud.ApiGatewayService
. - api_
id str - api_
name str - Custom API name.
- result_
output_ strfile
- id String
- lists List<Property Map>
- A list of APIs.
- service
Id String - Which service this API belongs. Refer to resource
tencentcloud.ApiGatewayService
. - api
Id String - api
Name String - Custom API name.
- result
Output StringFile
Supporting Types
GetApiGatewayApisList
- Api
Desc This property is required. string - Custom API description.
- Api
Name This property is required. string - Custom API name.
- Auth
Type This property is required. string - API authentication type. Valid values:
SECRET
,NONE
.SECRET
means key pair authentication,NONE
means no authentication. - Create
Time This property is required. string - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- Enable
Cors This property is required. bool - Whether to enable CORS.
- Modify
Time This property is required. string - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- Protocol
This property is required. string - API frontend request type, such as
HTTP
,WEBSOCKET
. - Request
Config Method This property is required. string - Request frontend method configuration. Like
GET
,POST
,PUT
,DELETE
,HEAD
,ANY
. - Request
Config Path This property is required. string - Request frontend path configuration. Like
/user/getinfo
. - Request
Parameters This property is required. List<GetApi Gateway Apis List Request Parameter> - Frontend request parameters.
- Response
Error Codes This property is required. List<GetApi Gateway Apis List Response Error Code> - Custom error code configuration. Must keep at least one after set.
- Response
Fail Example This property is required. string - Response failure sample of custom response configuration.
- Response
Success Example This property is required. string - Successful response sample of custom response configuration.
- Response
Type This property is required. string - Return type.
- Service
Config Method This property is required. string - API backend service request method, such as
GET
. Ifservice_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_method
and backend methodservice_config_method
can be different. - Service
Config Mock Return Message This property is required. string - Returned information of API backend mocking.
- Service
Config Path This property is required. string - API backend service path, such as /path. If
service_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_path
and backend pathservice_config_path
can be different. - Service
Config Product This property is required. string - Backend type. This parameter takes effect when VPC is enabled. Currently, only
clb
is supported. - Service
Config Scf Function Name This property is required. string - SCF function name. This parameter takes effect when
service_config_type
isSCF
. - Service
Config Scf Function Namespace This property is required. string - SCF function namespace. This parameter takes effect when
service_config_type
isSCF
. - Service
Config Scf Function Qualifier This property is required. string - SCF function version. This parameter takes effect when
service_config_type
isSCF
. - Service
Config Timeout This property is required. double - API backend service timeout period in seconds.
- Service
Config Type This property is required. string - API backend service type.
- Service
Config Url This property is required. string - API backend service url. This parameter is required when
service_config_type
isHTTP
. - Service
Config Vpc Id This property is required. string - Unique VPC ID.
- Service
Id This property is required. string - Service ID for query.
- Api
Desc This property is required. string - Custom API description.
- Api
Name This property is required. string - Custom API name.
- Auth
Type This property is required. string - API authentication type. Valid values:
SECRET
,NONE
.SECRET
means key pair authentication,NONE
means no authentication. - Create
Time This property is required. string - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- Enable
Cors This property is required. bool - Whether to enable CORS.
- Modify
Time This property is required. string - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- Protocol
This property is required. string - API frontend request type, such as
HTTP
,WEBSOCKET
. - Request
Config Method This property is required. string - Request frontend method configuration. Like
GET
,POST
,PUT
,DELETE
,HEAD
,ANY
. - Request
Config Path This property is required. string - Request frontend path configuration. Like
/user/getinfo
. - Request
Parameters This property is required. []GetApi Gateway Apis List Request Parameter - Frontend request parameters.
- Response
Error Codes This property is required. []GetApi Gateway Apis List Response Error Code - Custom error code configuration. Must keep at least one after set.
- Response
Fail Example This property is required. string - Response failure sample of custom response configuration.
- Response
Success Example This property is required. string - Successful response sample of custom response configuration.
- Response
Type This property is required. string - Return type.
- Service
Config Method This property is required. string - API backend service request method, such as
GET
. Ifservice_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_method
and backend methodservice_config_method
can be different. - Service
Config Mock Return Message This property is required. string - Returned information of API backend mocking.
- Service
Config Path This property is required. string - API backend service path, such as /path. If
service_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_path
and backend pathservice_config_path
can be different. - Service
Config Product This property is required. string - Backend type. This parameter takes effect when VPC is enabled. Currently, only
clb
is supported. - Service
Config Scf Function Name This property is required. string - SCF function name. This parameter takes effect when
service_config_type
isSCF
. - Service
Config Scf Function Namespace This property is required. string - SCF function namespace. This parameter takes effect when
service_config_type
isSCF
. - Service
Config Scf Function Qualifier This property is required. string - SCF function version. This parameter takes effect when
service_config_type
isSCF
. - Service
Config Timeout This property is required. float64 - API backend service timeout period in seconds.
- Service
Config Type This property is required. string - API backend service type.
- Service
Config Url This property is required. string - API backend service url. This parameter is required when
service_config_type
isHTTP
. - Service
Config Vpc Id This property is required. string - Unique VPC ID.
- Service
Id This property is required. string - Service ID for query.
- api
Desc This property is required. String - Custom API description.
- api
Name This property is required. String - Custom API name.
- auth
Type This property is required. String - API authentication type. Valid values:
SECRET
,NONE
.SECRET
means key pair authentication,NONE
means no authentication. - create
Time This property is required. String - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- enable
Cors This property is required. Boolean - Whether to enable CORS.
- modify
Time This property is required. String - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- protocol
This property is required. String - API frontend request type, such as
HTTP
,WEBSOCKET
. - request
Config Method This property is required. String - Request frontend method configuration. Like
GET
,POST
,PUT
,DELETE
,HEAD
,ANY
. - request
Config Path This property is required. String - Request frontend path configuration. Like
/user/getinfo
. - request
Parameters This property is required. List<GetApi Gateway Apis List Request Parameter> - Frontend request parameters.
- response
Error Codes This property is required. List<GetApi Gateway Apis List Response Error Code> - Custom error code configuration. Must keep at least one after set.
- response
Fail Example This property is required. String - Response failure sample of custom response configuration.
- response
Success Example This property is required. String - Successful response sample of custom response configuration.
- response
Type This property is required. String - Return type.
- service
Config Method This property is required. String - API backend service request method, such as
GET
. Ifservice_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_method
and backend methodservice_config_method
can be different. - service
Config Mock Return Message This property is required. String - Returned information of API backend mocking.
- service
Config Path This property is required. String - API backend service path, such as /path. If
service_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_path
and backend pathservice_config_path
can be different. - service
Config Product This property is required. String - Backend type. This parameter takes effect when VPC is enabled. Currently, only
clb
is supported. - service
Config Scf Function Name This property is required. String - SCF function name. This parameter takes effect when
service_config_type
isSCF
. - service
Config Scf Function Namespace This property is required. String - SCF function namespace. This parameter takes effect when
service_config_type
isSCF
. - service
Config Scf Function Qualifier This property is required. String - SCF function version. This parameter takes effect when
service_config_type
isSCF
. - service
Config Timeout This property is required. Double - API backend service timeout period in seconds.
- service
Config Type This property is required. String - API backend service type.
- service
Config Url This property is required. String - API backend service url. This parameter is required when
service_config_type
isHTTP
. - service
Config Vpc Id This property is required. String - Unique VPC ID.
- service
Id This property is required. String - Service ID for query.
- api
Desc This property is required. string - Custom API description.
- api
Name This property is required. string - Custom API name.
- auth
Type This property is required. string - API authentication type. Valid values:
SECRET
,NONE
.SECRET
means key pair authentication,NONE
means no authentication. - create
Time This property is required. string - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- enable
Cors This property is required. boolean - Whether to enable CORS.
- modify
Time This property is required. string - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- protocol
This property is required. string - API frontend request type, such as
HTTP
,WEBSOCKET
. - request
Config Method This property is required. string - Request frontend method configuration. Like
GET
,POST
,PUT
,DELETE
,HEAD
,ANY
. - request
Config Path This property is required. string - Request frontend path configuration. Like
/user/getinfo
. - request
Parameters This property is required. GetApi Gateway Apis List Request Parameter[] - Frontend request parameters.
- response
Error Codes This property is required. GetApi Gateway Apis List Response Error Code[] - Custom error code configuration. Must keep at least one after set.
- response
Fail Example This property is required. string - Response failure sample of custom response configuration.
- response
Success Example This property is required. string - Successful response sample of custom response configuration.
- response
Type This property is required. string - Return type.
- service
Config Method This property is required. string - API backend service request method, such as
GET
. Ifservice_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_method
and backend methodservice_config_method
can be different. - service
Config Mock Return Message This property is required. string - Returned information of API backend mocking.
- service
Config Path This property is required. string - API backend service path, such as /path. If
service_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_path
and backend pathservice_config_path
can be different. - service
Config Product This property is required. string - Backend type. This parameter takes effect when VPC is enabled. Currently, only
clb
is supported. - service
Config Scf Function Name This property is required. string - SCF function name. This parameter takes effect when
service_config_type
isSCF
. - service
Config Scf Function Namespace This property is required. string - SCF function namespace. This parameter takes effect when
service_config_type
isSCF
. - service
Config Scf Function Qualifier This property is required. string - SCF function version. This parameter takes effect when
service_config_type
isSCF
. - service
Config Timeout This property is required. number - API backend service timeout period in seconds.
- service
Config Type This property is required. string - API backend service type.
- service
Config Url This property is required. string - API backend service url. This parameter is required when
service_config_type
isHTTP
. - service
Config Vpc Id This property is required. string - Unique VPC ID.
- service
Id This property is required. string - Service ID for query.
- api_
desc This property is required. str - Custom API description.
- api_
name This property is required. str - Custom API name.
- auth_
type This property is required. str - API authentication type. Valid values:
SECRET
,NONE
.SECRET
means key pair authentication,NONE
means no authentication. - create_
time This property is required. str - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- enable_
cors This property is required. bool - Whether to enable CORS.
- modify_
time This property is required. str - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- protocol
This property is required. str - API frontend request type, such as
HTTP
,WEBSOCKET
. - request_
config_ method This property is required. str - Request frontend method configuration. Like
GET
,POST
,PUT
,DELETE
,HEAD
,ANY
. - request_
config_ path This property is required. str - Request frontend path configuration. Like
/user/getinfo
. - request_
parameters This property is required. Sequence[GetApi Gateway Apis List Request Parameter] - Frontend request parameters.
- response_
error_ codes This property is required. Sequence[GetApi Gateway Apis List Response Error Code] - Custom error code configuration. Must keep at least one after set.
- response_
fail_ example This property is required. str - Response failure sample of custom response configuration.
- response_
success_ example This property is required. str - Successful response sample of custom response configuration.
- response_
type This property is required. str - Return type.
- service_
config_ method This property is required. str - API backend service request method, such as
GET
. Ifservice_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_method
and backend methodservice_config_method
can be different. - service_
config_ mock_ return_ message This property is required. str - Returned information of API backend mocking.
- service_
config_ path This property is required. str - API backend service path, such as /path. If
service_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_path
and backend pathservice_config_path
can be different. - service_
config_ product This property is required. str - Backend type. This parameter takes effect when VPC is enabled. Currently, only
clb
is supported. - service_
config_ scf_ function_ name This property is required. str - SCF function name. This parameter takes effect when
service_config_type
isSCF
. - service_
config_ scf_ function_ namespace This property is required. str - SCF function namespace. This parameter takes effect when
service_config_type
isSCF
. - service_
config_ scf_ function_ qualifier This property is required. str - SCF function version. This parameter takes effect when
service_config_type
isSCF
. - service_
config_ timeout This property is required. float - API backend service timeout period in seconds.
- service_
config_ type This property is required. str - API backend service type.
- service_
config_ url This property is required. str - API backend service url. This parameter is required when
service_config_type
isHTTP
. - service_
config_ vpc_ id This property is required. str - Unique VPC ID.
- service_
id This property is required. str - Service ID for query.
- api
Desc This property is required. String - Custom API description.
- api
Name This property is required. String - Custom API name.
- auth
Type This property is required. String - API authentication type. Valid values:
SECRET
,NONE
.SECRET
means key pair authentication,NONE
means no authentication. - create
Time This property is required. String - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- enable
Cors This property is required. Boolean - Whether to enable CORS.
- modify
Time This property is required. String - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- protocol
This property is required. String - API frontend request type, such as
HTTP
,WEBSOCKET
. - request
Config Method This property is required. String - Request frontend method configuration. Like
GET
,POST
,PUT
,DELETE
,HEAD
,ANY
. - request
Config Path This property is required. String - Request frontend path configuration. Like
/user/getinfo
. - request
Parameters This property is required. List<Property Map> - Frontend request parameters.
- response
Error Codes This property is required. List<Property Map> - Custom error code configuration. Must keep at least one after set.
- response
Fail Example This property is required. String - Response failure sample of custom response configuration.
- response
Success Example This property is required. String - Successful response sample of custom response configuration.
- response
Type This property is required. String - Return type.
- service
Config Method This property is required. String - API backend service request method, such as
GET
. Ifservice_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_method
and backend methodservice_config_method
can be different. - service
Config Mock Return Message This property is required. String - Returned information of API backend mocking.
- service
Config Path This property is required. String - API backend service path, such as /path. If
service_config_type
isHTTP
, this parameter will be required. The frontendrequest_config_path
and backend pathservice_config_path
can be different. - service
Config Product This property is required. String - Backend type. This parameter takes effect when VPC is enabled. Currently, only
clb
is supported. - service
Config Scf Function Name This property is required. String - SCF function name. This parameter takes effect when
service_config_type
isSCF
. - service
Config Scf Function Namespace This property is required. String - SCF function namespace. This parameter takes effect when
service_config_type
isSCF
. - service
Config Scf Function Qualifier This property is required. String - SCF function version. This parameter takes effect when
service_config_type
isSCF
. - service
Config Timeout This property is required. Number - API backend service timeout period in seconds.
- service
Config Type This property is required. String - API backend service type.
- service
Config Url This property is required. String - API backend service url. This parameter is required when
service_config_type
isHTTP
. - service
Config Vpc Id This property is required. String - Unique VPC ID.
- service
Id This property is required. String - Service ID for query.
GetApiGatewayApisListRequestParameter
- Default
Value This property is required. string - Parameter default value.
- Desc
This property is required. string - Parameter description.
- Name
This property is required. string - Parameter name.
- Position
This property is required. string - Parameter location.
- Required
This property is required. bool - If this parameter required.
- Type
This property is required. string - Parameter type.
- Default
Value This property is required. string - Parameter default value.
- Desc
This property is required. string - Parameter description.
- Name
This property is required. string - Parameter name.
- Position
This property is required. string - Parameter location.
- Required
This property is required. bool - If this parameter required.
- Type
This property is required. string - Parameter type.
- default
Value This property is required. String - Parameter default value.
- desc
This property is required. String - Parameter description.
- name
This property is required. String - Parameter name.
- position
This property is required. String - Parameter location.
- required
This property is required. Boolean - If this parameter required.
- type
This property is required. String - Parameter type.
- default
Value This property is required. string - Parameter default value.
- desc
This property is required. string - Parameter description.
- name
This property is required. string - Parameter name.
- position
This property is required. string - Parameter location.
- required
This property is required. boolean - If this parameter required.
- type
This property is required. string - Parameter type.
- default_
value This property is required. str - Parameter default value.
- desc
This property is required. str - Parameter description.
- name
This property is required. str - Parameter name.
- position
This property is required. str - Parameter location.
- required
This property is required. bool - If this parameter required.
- type
This property is required. str - Parameter type.
- default
Value This property is required. String - Parameter default value.
- desc
This property is required. String - Parameter description.
- name
This property is required. String - Parameter name.
- position
This property is required. String - Parameter location.
- required
This property is required. Boolean - If this parameter required.
- type
This property is required. String - Parameter type.
GetApiGatewayApisListResponseErrorCode
- Code
This property is required. double - Custom response configuration error code.
- Converted
Code This property is required. double - Custom error code conversion.
- Desc
This property is required. string - Parameter description.
- Msg
This property is required. string - Custom response configuration error message.
- Need
Convert This property is required. bool - Whether to enable error code conversion. Default value:
false
.
- Code
This property is required. float64 - Custom response configuration error code.
- Converted
Code This property is required. float64 - Custom error code conversion.
- Desc
This property is required. string - Parameter description.
- Msg
This property is required. string - Custom response configuration error message.
- Need
Convert This property is required. bool - Whether to enable error code conversion. Default value:
false
.
- code
This property is required. Double - Custom response configuration error code.
- converted
Code This property is required. Double - Custom error code conversion.
- desc
This property is required. String - Parameter description.
- msg
This property is required. String - Custom response configuration error message.
- need
Convert This property is required. Boolean - Whether to enable error code conversion. Default value:
false
.
- code
This property is required. number - Custom response configuration error code.
- converted
Code This property is required. number - Custom error code conversion.
- desc
This property is required. string - Parameter description.
- msg
This property is required. string - Custom response configuration error message.
- need
Convert This property is required. boolean - Whether to enable error code conversion. Default value:
false
.
- code
This property is required. float - Custom response configuration error code.
- converted_
code This property is required. float - Custom error code conversion.
- desc
This property is required. str - Parameter description.
- msg
This property is required. str - Custom response configuration error message.
- need_
convert This property is required. bool - Whether to enable error code conversion. Default value:
false
.
- code
This property is required. Number - Custom response configuration error code.
- converted
Code This property is required. Number - Custom error code conversion.
- desc
This property is required. String - Parameter description.
- msg
This property is required. String - Custom response configuration error message.
- need
Convert This property is required. Boolean - Whether to enable error code conversion. Default value:
false
.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack