tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getApiGatewayServices
Start a Neo task
Explain and create a tencentcloud.getApiGatewayServices resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query API gateway services.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const service = new tencentcloud.ApiGatewayService("service", {
serviceName: "niceservice",
protocol: "http&https",
serviceDesc: "your nice service",
netTypes: [
"INNER",
"OUTER",
],
ipVersion: "IPv4",
});
const name = tencentcloud.getApiGatewayServicesOutput({
serviceName: service.serviceName,
});
const id = tencentcloud.getApiGatewayServicesOutput({
serviceId: service.apiGatewayServiceId,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
service = tencentcloud.ApiGatewayService("service",
service_name="niceservice",
protocol="http&https",
service_desc="your nice service",
net_types=[
"INNER",
"OUTER",
],
ip_version="IPv4")
name = tencentcloud.get_api_gateway_services_output(service_name=service.service_name)
id = tencentcloud.get_api_gateway_services_output(service_id=service.api_gateway_service_id)
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("niceservice"),
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
}
_ = tencentcloud.GetApiGatewayServicesOutput(ctx, tencentcloud.GetApiGatewayServicesOutputArgs{
ServiceName: service.ServiceName,
}, nil)
_ = tencentcloud.GetApiGatewayServicesOutput(ctx, tencentcloud.GetApiGatewayServicesOutputArgs{
ServiceId: service.ApiGatewayServiceId,
}, 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 = "niceservice",
Protocol = "http&https",
ServiceDesc = "your nice service",
NetTypes = new[]
{
"INNER",
"OUTER",
},
IpVersion = "IPv4",
});
var name = Tencentcloud.GetApiGatewayServices.Invoke(new()
{
ServiceName = service.ServiceName,
});
var id = Tencentcloud.GetApiGatewayServices.Invoke(new()
{
ServiceId = service.ApiGatewayServiceId,
});
});
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.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetApiGatewayServicesArgs;
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("niceservice")
.protocol("http&https")
.serviceDesc("your nice service")
.netTypes(
"INNER",
"OUTER")
.ipVersion("IPv4")
.build());
final var name = TencentcloudFunctions.getApiGatewayServices(GetApiGatewayServicesArgs.builder()
.serviceName(service.serviceName())
.build());
final var id = TencentcloudFunctions.getApiGatewayServices(GetApiGatewayServicesArgs.builder()
.serviceId(service.apiGatewayServiceId())
.build());
}
}
resources:
service:
type: tencentcloud:ApiGatewayService
properties:
serviceName: niceservice
protocol: http&https
serviceDesc: your nice service
netTypes:
- INNER
- OUTER
ipVersion: IPv4
variables:
name:
fn::invoke:
function: tencentcloud:getApiGatewayServices
arguments:
serviceName: ${service.serviceName}
id:
fn::invoke:
function: tencentcloud:getApiGatewayServices
arguments:
serviceId: ${service.apiGatewayServiceId}
Using getApiGatewayServices
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 getApiGatewayServices(args: GetApiGatewayServicesArgs, opts?: InvokeOptions): Promise<GetApiGatewayServicesResult>
function getApiGatewayServicesOutput(args: GetApiGatewayServicesOutputArgs, opts?: InvokeOptions): Output<GetApiGatewayServicesResult>def get_api_gateway_services(id: Optional[str] = None,
result_output_file: Optional[str] = None,
service_id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApiGatewayServicesResult
def get_api_gateway_services_output(id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
service_id: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApiGatewayServicesResult]func GetApiGatewayServices(ctx *Context, args *GetApiGatewayServicesArgs, opts ...InvokeOption) (*GetApiGatewayServicesResult, error)
func GetApiGatewayServicesOutput(ctx *Context, args *GetApiGatewayServicesOutputArgs, opts ...InvokeOption) GetApiGatewayServicesResultOutput> Note: This function is named GetApiGatewayServices in the Go SDK.
public static class GetApiGatewayServices
{
public static Task<GetApiGatewayServicesResult> InvokeAsync(GetApiGatewayServicesArgs args, InvokeOptions? opts = null)
public static Output<GetApiGatewayServicesResult> Invoke(GetApiGatewayServicesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetApiGatewayServicesResult> getApiGatewayServices(GetApiGatewayServicesArgs args, InvokeOptions options)
public static Output<GetApiGatewayServicesResult> getApiGatewayServices(GetApiGatewayServicesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getApiGatewayServices:getApiGatewayServices
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Result
Output stringFile - Used to save results.
- Service
Id string - Service ID for query.
- Service
Name string - Service name for query.
- Id string
- Result
Output stringFile - Used to save results.
- Service
Id string - Service ID for query.
- Service
Name string - Service name for query.
- id String
- result
Output StringFile - Used to save results.
- service
Id String - Service ID for query.
- service
Name String - Service name for query.
- id string
- result
Output stringFile - Used to save results.
- service
Id string - Service ID for query.
- service
Name string - Service name for query.
- id str
- result_
output_ strfile - Used to save results.
- service_
id str - Service ID for query.
- service_
name str - Service name for query.
- id String
- result
Output StringFile - Used to save results.
- service
Id String - Service ID for query.
- service
Name String - Service name for query.
getApiGatewayServices Result
The following output properties are available:
- Id string
- Lists
List<Get
Api Gateway Services List> - A list of services.
- Result
Output stringFile - Service
Id string - Custom service ID.
- Service
Name string - Custom service name.
- Id string
- Lists
[]Get
Api Gateway Services List - A list of services.
- Result
Output stringFile - Service
Id string - Custom service ID.
- Service
Name string - Custom service name.
- id String
- lists
List<Get
Api Gateway Services List> - A list of services.
- result
Output StringFile - service
Id String - Custom service ID.
- service
Name String - Custom service name.
- id string
- lists
Get
Api Gateway Services List[] - A list of services.
- result
Output stringFile - service
Id string - Custom service ID.
- service
Name string - Custom service name.
- id str
- lists
Sequence[Get
Api Gateway Services List] - A list of services.
- result_
output_ strfile - service_
id str - Custom service ID.
- service_
name str - Custom service name.
- id String
- lists List<Property Map>
- A list of services.
- result
Output StringFile - service
Id String - Custom service ID.
- service
Name String - Custom service name.
Supporting Types
GetApiGatewayServicesList
- Create
Time string - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- Exclusive
Set stringName - (Deprecated) It has been deprecated from version 1.81.9. Self-deployed cluster name, which is used to specify the self-deployed cluster where the service is to be created.
- Inner
Http doublePort - Port number for http access over private network.
- Inner
Https doublePort - Port number for https access over private network.
- Internal
Sub stringDomain - Private network access sub-domain name.
- Ip
Version string - IP version number.
- Modify
Time string - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- Net
Types List<string> - Network type list, which is used to specify the supported network types. Valid values:
INNER,OUTER.INNERindicates access over private network, andOUTERindicates access over public network. - Outer
Sub stringDomain - Public network access subdomain name.
- Protocol string
- Service frontend request type. Valid values:
http,https,http&https. - Service
Desc string - Custom service description.
- Service
Id string - Service ID for query.
- Service
Name string - Service name for query.
- Usage
Plan List<GetLists Api Gateway Services List Usage Plan List> - A list of attach usage plans. Each element contains the following attributes:
- Create
Time string - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- Exclusive
Set stringName - (Deprecated) It has been deprecated from version 1.81.9. Self-deployed cluster name, which is used to specify the self-deployed cluster where the service is to be created.
- Inner
Http float64Port - Port number for http access over private network.
- Inner
Https float64Port - Port number for https access over private network.
- Internal
Sub stringDomain - Private network access sub-domain name.
- Ip
Version string - IP version number.
- Modify
Time string - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- Net
Types []string - Network type list, which is used to specify the supported network types. Valid values:
INNER,OUTER.INNERindicates access over private network, andOUTERindicates access over public network. - Outer
Sub stringDomain - Public network access subdomain name.
- Protocol string
- Service frontend request type. Valid values:
http,https,http&https. - Service
Desc string - Custom service description.
- Service
Id string - Service ID for query.
- Service
Name string - Service name for query.
- Usage
Plan []GetLists Api Gateway Services List Usage Plan List - A list of attach usage plans. Each element contains the following attributes:
- create
Time String - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- exclusive
Set StringName - (Deprecated) It has been deprecated from version 1.81.9. Self-deployed cluster name, which is used to specify the self-deployed cluster where the service is to be created.
- inner
Http DoublePort - Port number for http access over private network.
- inner
Https DoublePort - Port number for https access over private network.
- internal
Sub StringDomain - Private network access sub-domain name.
- ip
Version String - IP version number.
- modify
Time String - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- net
Types List<String> - Network type list, which is used to specify the supported network types. Valid values:
INNER,OUTER.INNERindicates access over private network, andOUTERindicates access over public network. - outer
Sub StringDomain - Public network access subdomain name.
- protocol String
- Service frontend request type. Valid values:
http,https,http&https. - service
Desc String - Custom service description.
- service
Id String - Service ID for query.
- service
Name String - Service name for query.
- usage
Plan List<GetLists Api Gateway Services List Usage Plan List> - A list of attach usage plans. Each element contains the following attributes:
- create
Time string - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- exclusive
Set stringName - (Deprecated) It has been deprecated from version 1.81.9. Self-deployed cluster name, which is used to specify the self-deployed cluster where the service is to be created.
- inner
Http numberPort - Port number for http access over private network.
- inner
Https numberPort - Port number for https access over private network.
- internal
Sub stringDomain - Private network access sub-domain name.
- ip
Version string - IP version number.
- modify
Time string - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- net
Types string[] - Network type list, which is used to specify the supported network types. Valid values:
INNER,OUTER.INNERindicates access over private network, andOUTERindicates access over public network. - outer
Sub stringDomain - Public network access subdomain name.
- protocol string
- Service frontend request type. Valid values:
http,https,http&https. - service
Desc string - Custom service description.
- service
Id string - Service ID for query.
- service
Name string - Service name for query.
- usage
Plan GetLists Api Gateway Services List Usage Plan List[] - A list of attach usage plans. Each element contains the following attributes:
- create_
time str - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- exclusive_
set_ strname - (Deprecated) It has been deprecated from version 1.81.9. Self-deployed cluster name, which is used to specify the self-deployed cluster where the service is to be created.
- inner_
http_ floatport - Port number for http access over private network.
- inner_
https_ floatport - Port number for https access over private network.
- internal_
sub_ strdomain - Private network access sub-domain name.
- ip_
version str - IP version number.
- modify_
time str - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- net_
types Sequence[str] - Network type list, which is used to specify the supported network types. Valid values:
INNER,OUTER.INNERindicates access over private network, andOUTERindicates access over public network. - outer_
sub_ strdomain - Public network access subdomain name.
- protocol str
- Service frontend request type. Valid values:
http,https,http&https. - service_
desc str - Custom service description.
- service_
id str - Service ID for query.
- service_
name str - Service name for query.
- usage_
plan_ Sequence[Getlists Api Gateway Services List Usage Plan List] - A list of attach usage plans. Each element contains the following attributes:
- create
Time String - Creation time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- exclusive
Set StringName - (Deprecated) It has been deprecated from version 1.81.9. Self-deployed cluster name, which is used to specify the self-deployed cluster where the service is to be created.
- inner
Http NumberPort - Port number for http access over private network.
- inner
Https NumberPort - Port number for https access over private network.
- internal
Sub StringDomain - Private network access sub-domain name.
- ip
Version String - IP version number.
- modify
Time String - Last modified time in the format of YYYY-MM-DDThh:mm:ssZ according to ISO 8601 standard. UTC time is used.
- net
Types List<String> - Network type list, which is used to specify the supported network types. Valid values:
INNER,OUTER.INNERindicates access over private network, andOUTERindicates access over public network. - outer
Sub StringDomain - Public network access subdomain name.
- protocol String
- Service frontend request type. Valid values:
http,https,http&https. - service
Desc String - Custom service description.
- service
Id String - Service ID for query.
- service
Name String - Service name for query.
- usage
Plan List<Property Map>Lists - A list of attach usage plans. Each element contains the following attributes:
GetApiGatewayServicesListUsagePlanList
- Api
Id string - ID of the API.
- Bind
Type string - Binding type.
- Usage
Plan stringId - ID of the usage plan.
- Usage
Plan stringName - Name of the usage plan.
- Api
Id string - ID of the API.
- Bind
Type string - Binding type.
- Usage
Plan stringId - ID of the usage plan.
- Usage
Plan stringName - Name of the usage plan.
- api
Id String - ID of the API.
- bind
Type String - Binding type.
- usage
Plan StringId - ID of the usage plan.
- usage
Plan StringName - Name of the usage plan.
- api
Id string - ID of the API.
- bind
Type string - Binding type.
- usage
Plan stringId - ID of the usage plan.
- usage
Plan stringName - Name of the usage plan.
- api_
id str - ID of the API.
- bind_
type str - Binding type.
- usage_
plan_ strid - ID of the usage plan.
- usage_
plan_ strname - Name of the usage plan.
- api
Id String - ID of the API.
- bind
Type String - Binding type.
- usage
Plan StringId - ID of the usage plan.
- usage
Plan StringName - Name of the usage plan.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
