1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getApiGatewayApis
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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetApiGatewayApis(ctx *Context, args *GetApiGatewayApisArgs, opts ...InvokeOption) (*GetApiGatewayApisResult, error)
func GetApiGatewayApisOutput(ctx *Context, args *GetApiGatewayApisOutputArgs, opts ...InvokeOption) GetApiGatewayApisResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetApiGatewayApisResult> getApiGatewayApis(GetApiGatewayApisArgs args, InvokeOptions options)
public static Output<GetApiGatewayApisResult> getApiGatewayApis(GetApiGatewayApisArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getApiGatewayApis:getApiGatewayApis
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ServiceId This property is required. string
Service ID for query.
ApiId string
Created API ID.
ApiName string
Custom API name.
Id string
ResultOutputFile string
Used to save results.
ServiceId This property is required. string
Service ID for query.
ApiId string
Created API ID.
ApiName string
Custom API name.
Id string
ResultOutputFile string
Used to save results.
serviceId This property is required. String
Service ID for query.
apiId String
Created API ID.
apiName String
Custom API name.
id String
resultOutputFile String
Used to save results.
serviceId This property is required. string
Service ID for query.
apiId string
Created API ID.
apiName string
Custom API name.
id string
resultOutputFile string
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_file str
Used to save results.
serviceId This property is required. String
Service ID for query.
apiId String
Created API ID.
apiName String
Custom API name.
id String
resultOutputFile String
Used to save results.

getApiGatewayApis Result

The following output properties are available:

Id string
Lists List<GetApiGatewayApisList>
A list of APIs.
ServiceId string
Which service this API belongs. Refer to resource tencentcloud.ApiGatewayService.
ApiId string
ApiName string
Custom API name.
ResultOutputFile string
Id string
Lists []GetApiGatewayApisList
A list of APIs.
ServiceId string
Which service this API belongs. Refer to resource tencentcloud.ApiGatewayService.
ApiId string
ApiName string
Custom API name.
ResultOutputFile string
id String
lists List<GetApiGatewayApisList>
A list of APIs.
serviceId String
Which service this API belongs. Refer to resource tencentcloud.ApiGatewayService.
apiId String
apiName String
Custom API name.
resultOutputFile String
id string
lists GetApiGatewayApisList[]
A list of APIs.
serviceId string
Which service this API belongs. Refer to resource tencentcloud.ApiGatewayService.
apiId string
apiName string
Custom API name.
resultOutputFile string
id str
lists Sequence[GetApiGatewayApisList]
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_file str
id String
lists List<Property Map>
A list of APIs.
serviceId String
Which service this API belongs. Refer to resource tencentcloud.ApiGatewayService.
apiId String
apiName String
Custom API name.
resultOutputFile String

Supporting Types

GetApiGatewayApisList

ApiDesc This property is required. string
Custom API description.
ApiName This property is required. string
Custom API name.
AuthType This property is required. string
API authentication type. Valid values: SECRET, NONE. SECRET means key pair authentication, NONE means no authentication.
CreateTime 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.
EnableCors This property is required. bool
Whether to enable CORS.
ModifyTime 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.
RequestConfigMethod This property is required. string
Request frontend method configuration. Like GET,POST,PUT,DELETE,HEAD,ANY.
RequestConfigPath This property is required. string
Request frontend path configuration. Like /user/getinfo.
RequestParameters This property is required. List<GetApiGatewayApisListRequestParameter>
Frontend request parameters.
ResponseErrorCodes This property is required. List<GetApiGatewayApisListResponseErrorCode>
Custom error code configuration. Must keep at least one after set.
ResponseFailExample This property is required. string
Response failure sample of custom response configuration.
ResponseSuccessExample This property is required. string
Successful response sample of custom response configuration.
ResponseType This property is required. string
Return type.
ServiceConfigMethod This property is required. string
API backend service request method, such as GET. If service_config_type is HTTP, this parameter will be required. The frontend request_config_method and backend method service_config_method can be different.
ServiceConfigMockReturnMessage This property is required. string
Returned information of API backend mocking.
ServiceConfigPath This property is required. string
API backend service path, such as /path. If service_config_type is HTTP, this parameter will be required. The frontend request_config_path and backend path service_config_path can be different.
ServiceConfigProduct This property is required. string
Backend type. This parameter takes effect when VPC is enabled. Currently, only clb is supported.
ServiceConfigScfFunctionName This property is required. string
SCF function name. This parameter takes effect when service_config_type is SCF.
ServiceConfigScfFunctionNamespace This property is required. string
SCF function namespace. This parameter takes effect when service_config_type is SCF.
ServiceConfigScfFunctionQualifier This property is required. string
SCF function version. This parameter takes effect when service_config_type is SCF.
ServiceConfigTimeout This property is required. double
API backend service timeout period in seconds.
ServiceConfigType This property is required. string
API backend service type.
ServiceConfigUrl This property is required. string
API backend service url. This parameter is required when service_config_type is HTTP.
ServiceConfigVpcId This property is required. string
Unique VPC ID.
ServiceId This property is required. string
Service ID for query.
ApiDesc This property is required. string
Custom API description.
ApiName This property is required. string
Custom API name.
AuthType This property is required. string
API authentication type. Valid values: SECRET, NONE. SECRET means key pair authentication, NONE means no authentication.
CreateTime 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.
EnableCors This property is required. bool
Whether to enable CORS.
ModifyTime 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.
RequestConfigMethod This property is required. string
Request frontend method configuration. Like GET,POST,PUT,DELETE,HEAD,ANY.
RequestConfigPath This property is required. string
Request frontend path configuration. Like /user/getinfo.
RequestParameters This property is required. []GetApiGatewayApisListRequestParameter
Frontend request parameters.
ResponseErrorCodes This property is required. []GetApiGatewayApisListResponseErrorCode
Custom error code configuration. Must keep at least one after set.
ResponseFailExample This property is required. string
Response failure sample of custom response configuration.
ResponseSuccessExample This property is required. string
Successful response sample of custom response configuration.
ResponseType This property is required. string
Return type.
ServiceConfigMethod This property is required. string
API backend service request method, such as GET. If service_config_type is HTTP, this parameter will be required. The frontend request_config_method and backend method service_config_method can be different.
ServiceConfigMockReturnMessage This property is required. string
Returned information of API backend mocking.
ServiceConfigPath This property is required. string
API backend service path, such as /path. If service_config_type is HTTP, this parameter will be required. The frontend request_config_path and backend path service_config_path can be different.
ServiceConfigProduct This property is required. string
Backend type. This parameter takes effect when VPC is enabled. Currently, only clb is supported.
ServiceConfigScfFunctionName This property is required. string
SCF function name. This parameter takes effect when service_config_type is SCF.
ServiceConfigScfFunctionNamespace This property is required. string
SCF function namespace. This parameter takes effect when service_config_type is SCF.
ServiceConfigScfFunctionQualifier This property is required. string
SCF function version. This parameter takes effect when service_config_type is SCF.
ServiceConfigTimeout This property is required. float64
API backend service timeout period in seconds.
ServiceConfigType This property is required. string
API backend service type.
ServiceConfigUrl This property is required. string
API backend service url. This parameter is required when service_config_type is HTTP.
ServiceConfigVpcId This property is required. string
Unique VPC ID.
ServiceId This property is required. string
Service ID for query.
apiDesc This property is required. String
Custom API description.
apiName This property is required. String
Custom API name.
authType This property is required. String
API authentication type. Valid values: SECRET, NONE. SECRET means key pair authentication, NONE means no authentication.
createTime 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.
enableCors This property is required. Boolean
Whether to enable CORS.
modifyTime 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.
requestConfigMethod This property is required. String
Request frontend method configuration. Like GET,POST,PUT,DELETE,HEAD,ANY.
requestConfigPath This property is required. String
Request frontend path configuration. Like /user/getinfo.
requestParameters This property is required. List<GetApiGatewayApisListRequestParameter>
Frontend request parameters.
responseErrorCodes This property is required. List<GetApiGatewayApisListResponseErrorCode>
Custom error code configuration. Must keep at least one after set.
responseFailExample This property is required. String
Response failure sample of custom response configuration.
responseSuccessExample This property is required. String
Successful response sample of custom response configuration.
responseType This property is required. String
Return type.
serviceConfigMethod This property is required. String
API backend service request method, such as GET. If service_config_type is HTTP, this parameter will be required. The frontend request_config_method and backend method service_config_method can be different.
serviceConfigMockReturnMessage This property is required. String
Returned information of API backend mocking.
serviceConfigPath This property is required. String
API backend service path, such as /path. If service_config_type is HTTP, this parameter will be required. The frontend request_config_path and backend path service_config_path can be different.
serviceConfigProduct This property is required. String
Backend type. This parameter takes effect when VPC is enabled. Currently, only clb is supported.
serviceConfigScfFunctionName This property is required. String
SCF function name. This parameter takes effect when service_config_type is SCF.
serviceConfigScfFunctionNamespace This property is required. String
SCF function namespace. This parameter takes effect when service_config_type is SCF.
serviceConfigScfFunctionQualifier This property is required. String
SCF function version. This parameter takes effect when service_config_type is SCF.
serviceConfigTimeout This property is required. Double
API backend service timeout period in seconds.
serviceConfigType This property is required. String
API backend service type.
serviceConfigUrl This property is required. String
API backend service url. This parameter is required when service_config_type is HTTP.
serviceConfigVpcId This property is required. String
Unique VPC ID.
serviceId This property is required. String
Service ID for query.
apiDesc This property is required. string
Custom API description.
apiName This property is required. string
Custom API name.
authType This property is required. string
API authentication type. Valid values: SECRET, NONE. SECRET means key pair authentication, NONE means no authentication.
createTime 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.
enableCors This property is required. boolean
Whether to enable CORS.
modifyTime 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.
requestConfigMethod This property is required. string
Request frontend method configuration. Like GET,POST,PUT,DELETE,HEAD,ANY.
requestConfigPath This property is required. string
Request frontend path configuration. Like /user/getinfo.
requestParameters This property is required. GetApiGatewayApisListRequestParameter[]
Frontend request parameters.
responseErrorCodes This property is required. GetApiGatewayApisListResponseErrorCode[]
Custom error code configuration. Must keep at least one after set.
responseFailExample This property is required. string
Response failure sample of custom response configuration.
responseSuccessExample This property is required. string
Successful response sample of custom response configuration.
responseType This property is required. string
Return type.
serviceConfigMethod This property is required. string
API backend service request method, such as GET. If service_config_type is HTTP, this parameter will be required. The frontend request_config_method and backend method service_config_method can be different.
serviceConfigMockReturnMessage This property is required. string
Returned information of API backend mocking.
serviceConfigPath This property is required. string
API backend service path, such as /path. If service_config_type is HTTP, this parameter will be required. The frontend request_config_path and backend path service_config_path can be different.
serviceConfigProduct This property is required. string
Backend type. This parameter takes effect when VPC is enabled. Currently, only clb is supported.
serviceConfigScfFunctionName This property is required. string
SCF function name. This parameter takes effect when service_config_type is SCF.
serviceConfigScfFunctionNamespace This property is required. string
SCF function namespace. This parameter takes effect when service_config_type is SCF.
serviceConfigScfFunctionQualifier This property is required. string
SCF function version. This parameter takes effect when service_config_type is SCF.
serviceConfigTimeout This property is required. number
API backend service timeout period in seconds.
serviceConfigType This property is required. string
API backend service type.
serviceConfigUrl This property is required. string
API backend service url. This parameter is required when service_config_type is HTTP.
serviceConfigVpcId This property is required. string
Unique VPC ID.
serviceId 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[GetApiGatewayApisListRequestParameter]
Frontend request parameters.
response_error_codes This property is required. Sequence[GetApiGatewayApisListResponseErrorCode]
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. If service_config_type is HTTP, this parameter will be required. The frontend request_config_method and backend method service_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 is HTTP, this parameter will be required. The frontend request_config_path and backend path service_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 is SCF.
service_config_scf_function_namespace This property is required. str
SCF function namespace. This parameter takes effect when service_config_type is SCF.
service_config_scf_function_qualifier This property is required. str
SCF function version. This parameter takes effect when service_config_type is SCF.
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 is HTTP.
service_config_vpc_id This property is required. str
Unique VPC ID.
service_id This property is required. str
Service ID for query.
apiDesc This property is required. String
Custom API description.
apiName This property is required. String
Custom API name.
authType This property is required. String
API authentication type. Valid values: SECRET, NONE. SECRET means key pair authentication, NONE means no authentication.
createTime 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.
enableCors This property is required. Boolean
Whether to enable CORS.
modifyTime 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.
requestConfigMethod This property is required. String
Request frontend method configuration. Like GET,POST,PUT,DELETE,HEAD,ANY.
requestConfigPath This property is required. String
Request frontend path configuration. Like /user/getinfo.
requestParameters This property is required. List<Property Map>
Frontend request parameters.
responseErrorCodes This property is required. List<Property Map>
Custom error code configuration. Must keep at least one after set.
responseFailExample This property is required. String
Response failure sample of custom response configuration.
responseSuccessExample This property is required. String
Successful response sample of custom response configuration.
responseType This property is required. String
Return type.
serviceConfigMethod This property is required. String
API backend service request method, such as GET. If service_config_type is HTTP, this parameter will be required. The frontend request_config_method and backend method service_config_method can be different.
serviceConfigMockReturnMessage This property is required. String
Returned information of API backend mocking.
serviceConfigPath This property is required. String
API backend service path, such as /path. If service_config_type is HTTP, this parameter will be required. The frontend request_config_path and backend path service_config_path can be different.
serviceConfigProduct This property is required. String
Backend type. This parameter takes effect when VPC is enabled. Currently, only clb is supported.
serviceConfigScfFunctionName This property is required. String
SCF function name. This parameter takes effect when service_config_type is SCF.
serviceConfigScfFunctionNamespace This property is required. String
SCF function namespace. This parameter takes effect when service_config_type is SCF.
serviceConfigScfFunctionQualifier This property is required. String
SCF function version. This parameter takes effect when service_config_type is SCF.
serviceConfigTimeout This property is required. Number
API backend service timeout period in seconds.
serviceConfigType This property is required. String
API backend service type.
serviceConfigUrl This property is required. String
API backend service url. This parameter is required when service_config_type is HTTP.
serviceConfigVpcId This property is required. String
Unique VPC ID.
serviceId This property is required. String
Service ID for query.

GetApiGatewayApisListRequestParameter

DefaultValue 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.
DefaultValue 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.
defaultValue 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.
defaultValue 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.
defaultValue 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.
ConvertedCode 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.
NeedConvert 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.
ConvertedCode 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.
NeedConvert 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.
convertedCode 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.
needConvert 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.
convertedCode 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.
needConvert 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.
convertedCode 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.
needConvert 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