tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getApiGatewayCustomerDomains
Start a Neo task
Explain and create a tencentcloud.getApiGatewayCustomerDomains resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query API gateway domain list.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = new tencentcloud.ApiGatewayCustomDomain("foo", {
serviceId: "service-ohxqslqe",
subDomain: "tic-test.dnsv1.com",
protocol: "http",
netType: "OUTER",
isDefaultMapping: false,
defaultDomain: "service-ohxqslqe-1259649581.gz.apigw.tencentcs.com",
pathMappings: [
"/good#test",
"/root#release",
],
});
const id = tencentcloud.getApiGatewayCustomerDomainsOutput({
serviceId: foo.serviceId,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.ApiGatewayCustomDomain("foo",
service_id="service-ohxqslqe",
sub_domain="tic-test.dnsv1.com",
protocol="http",
net_type="OUTER",
is_default_mapping=False,
default_domain="service-ohxqslqe-1259649581.gz.apigw.tencentcs.com",
path_mappings=[
"/good#test",
"/root#release",
])
id = tencentcloud.get_api_gateway_customer_domains_output(service_id=foo.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 {
foo, err := tencentcloud.NewApiGatewayCustomDomain(ctx, "foo", &tencentcloud.ApiGatewayCustomDomainArgs{
ServiceId: pulumi.String("service-ohxqslqe"),
SubDomain: pulumi.String("tic-test.dnsv1.com"),
Protocol: pulumi.String("http"),
NetType: pulumi.String("OUTER"),
IsDefaultMapping: pulumi.Bool(false),
DefaultDomain: pulumi.String("service-ohxqslqe-1259649581.gz.apigw.tencentcs.com"),
PathMappings: pulumi.StringArray{
pulumi.String("/good#test"),
pulumi.String("/root#release"),
},
})
if err != nil {
return err
}
_ = tencentcloud.GetApiGatewayCustomerDomainsOutput(ctx, tencentcloud.GetApiGatewayCustomerDomainsOutputArgs{
ServiceId: foo.ServiceId,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var foo = new Tencentcloud.ApiGatewayCustomDomain("foo", new()
{
ServiceId = "service-ohxqslqe",
SubDomain = "tic-test.dnsv1.com",
Protocol = "http",
NetType = "OUTER",
IsDefaultMapping = false,
DefaultDomain = "service-ohxqslqe-1259649581.gz.apigw.tencentcs.com",
PathMappings = new[]
{
"/good#test",
"/root#release",
},
});
var id = Tencentcloud.GetApiGatewayCustomerDomains.Invoke(new()
{
ServiceId = foo.ServiceId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ApiGatewayCustomDomain;
import com.pulumi.tencentcloud.ApiGatewayCustomDomainArgs;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetApiGatewayCustomerDomainsArgs;
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 foo = new ApiGatewayCustomDomain("foo", ApiGatewayCustomDomainArgs.builder()
.serviceId("service-ohxqslqe")
.subDomain("tic-test.dnsv1.com")
.protocol("http")
.netType("OUTER")
.isDefaultMapping(false)
.defaultDomain("service-ohxqslqe-1259649581.gz.apigw.tencentcs.com")
.pathMappings(
"/good#test",
"/root#release")
.build());
final var id = TencentcloudFunctions.getApiGatewayCustomerDomains(GetApiGatewayCustomerDomainsArgs.builder()
.serviceId(foo.serviceId())
.build());
}
}
resources:
foo:
type: tencentcloud:ApiGatewayCustomDomain
properties:
serviceId: service-ohxqslqe
subDomain: tic-test.dnsv1.com
protocol: http
netType: OUTER
isDefaultMapping: 'false'
defaultDomain: service-ohxqslqe-1259649581.gz.apigw.tencentcs.com
pathMappings:
- /good#test
- /root#release
variables:
id:
fn::invoke:
function: tencentcloud:getApiGatewayCustomerDomains
arguments:
serviceId: ${foo.serviceId}
Using getApiGatewayCustomerDomains
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 getApiGatewayCustomerDomains(args: GetApiGatewayCustomerDomainsArgs, opts?: InvokeOptions): Promise<GetApiGatewayCustomerDomainsResult>
function getApiGatewayCustomerDomainsOutput(args: GetApiGatewayCustomerDomainsOutputArgs, opts?: InvokeOptions): Output<GetApiGatewayCustomerDomainsResult>def get_api_gateway_customer_domains(id: Optional[str] = None,
result_output_file: Optional[str] = None,
service_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApiGatewayCustomerDomainsResult
def get_api_gateway_customer_domains_output(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[GetApiGatewayCustomerDomainsResult]func GetApiGatewayCustomerDomains(ctx *Context, args *GetApiGatewayCustomerDomainsArgs, opts ...InvokeOption) (*GetApiGatewayCustomerDomainsResult, error)
func GetApiGatewayCustomerDomainsOutput(ctx *Context, args *GetApiGatewayCustomerDomainsOutputArgs, opts ...InvokeOption) GetApiGatewayCustomerDomainsResultOutput> Note: This function is named GetApiGatewayCustomerDomains in the Go SDK.
public static class GetApiGatewayCustomerDomains
{
public static Task<GetApiGatewayCustomerDomainsResult> InvokeAsync(GetApiGatewayCustomerDomainsArgs args, InvokeOptions? opts = null)
public static Output<GetApiGatewayCustomerDomainsResult> Invoke(GetApiGatewayCustomerDomainsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetApiGatewayCustomerDomainsResult> getApiGatewayCustomerDomains(GetApiGatewayCustomerDomainsArgs args, InvokeOptions options)
public static Output<GetApiGatewayCustomerDomainsResult> getApiGatewayCustomerDomains(GetApiGatewayCustomerDomainsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getApiGatewayCustomerDomains:getApiGatewayCustomerDomains
arguments:
# arguments dictionaryThe following arguments are supported:
- Service
Id string - The service ID.
- Id string
- Result
Output stringFile - Used to save results.
- Service
Id string - The service ID.
- Id string
- Result
Output stringFile - Used to save results.
- service
Id String - The service ID.
- id String
- result
Output StringFile - Used to save results.
- service
Id string - The service ID.
- id string
- result
Output stringFile - Used to save results.
- service_
id str - The service ID.
- id str
- result_
output_ strfile - Used to save results.
- service
Id String - The service ID.
- id String
- result
Output StringFile - Used to save results.
getApiGatewayCustomerDomains Result
The following output properties are available:
- Id string
- Lists
List<Get
Api Gateway Customer Domains List> - Service custom domain name list.
- Service
Id string - Result
Output stringFile
- Id string
- Lists
[]Get
Api Gateway Customer Domains List - Service custom domain name list.
- Service
Id string - Result
Output stringFile
- id String
- lists
List<Get
Api Gateway Customer Domains List> - Service custom domain name list.
- service
Id String - result
Output StringFile
- id string
- lists
Get
Api Gateway Customer Domains List[] - Service custom domain name list.
- service
Id string - result
Output stringFile
- id str
- lists
Sequence[Get
Api Gateway Customer Domains List] - Service custom domain name list.
- service_
id str - result_
output_ strfile
- id String
- lists List<Property Map>
- Service custom domain name list.
- service
Id String - result
Output StringFile
Supporting Types
GetApiGatewayCustomerDomainsList
- Certificate
Id string - The certificate ID.
- Domain
Name string - Domain name.
- Is
Default boolMapping - Whether to use default path mapping. Valid values:
true,false.truemeans to use default path mapping,falsemeans to use custom path mapping. - Is
Status boolOn - Domain name resolution status. Valid values:
true,false.truemeans normal parsing,falsemeans parsing failed. - Net
Type string - Network type.
- Path
Mappings List<GetApi Gateway Customer Domains List Path Mapping> - Domain name mapping path and environment list.
- Protocol string
- Custom domain name agreement type.
- Certificate
Id string - The certificate ID.
- Domain
Name string - Domain name.
- Is
Default boolMapping - Whether to use default path mapping. Valid values:
true,false.truemeans to use default path mapping,falsemeans to use custom path mapping. - Is
Status boolOn - Domain name resolution status. Valid values:
true,false.truemeans normal parsing,falsemeans parsing failed. - Net
Type string - Network type.
- Path
Mappings []GetApi Gateway Customer Domains List Path Mapping - Domain name mapping path and environment list.
- Protocol string
- Custom domain name agreement type.
- certificate
Id String - The certificate ID.
- domain
Name String - Domain name.
- is
Default BooleanMapping - Whether to use default path mapping. Valid values:
true,false.truemeans to use default path mapping,falsemeans to use custom path mapping. - is
Status BooleanOn - Domain name resolution status. Valid values:
true,false.truemeans normal parsing,falsemeans parsing failed. - net
Type String - Network type.
- path
Mappings List<GetApi Gateway Customer Domains List Path Mapping> - Domain name mapping path and environment list.
- protocol String
- Custom domain name agreement type.
- certificate
Id string - The certificate ID.
- domain
Name string - Domain name.
- is
Default booleanMapping - Whether to use default path mapping. Valid values:
true,false.truemeans to use default path mapping,falsemeans to use custom path mapping. - is
Status booleanOn - Domain name resolution status. Valid values:
true,false.truemeans normal parsing,falsemeans parsing failed. - net
Type string - Network type.
- path
Mappings GetApi Gateway Customer Domains List Path Mapping[] - Domain name mapping path and environment list.
- protocol string
- Custom domain name agreement type.
- certificate_
id str - The certificate ID.
- domain_
name str - Domain name.
- is_
default_ boolmapping - Whether to use default path mapping. Valid values:
true,false.truemeans to use default path mapping,falsemeans to use custom path mapping. - is_
status_ boolon - Domain name resolution status. Valid values:
true,false.truemeans normal parsing,falsemeans parsing failed. - net_
type str - Network type.
- path_
mappings Sequence[GetApi Gateway Customer Domains List Path Mapping] - Domain name mapping path and environment list.
- protocol str
- Custom domain name agreement type.
- certificate
Id String - The certificate ID.
- domain
Name String - Domain name.
- is
Default BooleanMapping - Whether to use default path mapping. Valid values:
true,false.truemeans to use default path mapping,falsemeans to use custom path mapping. - is
Status BooleanOn - Domain name resolution status. Valid values:
true,false.truemeans normal parsing,falsemeans parsing failed. - net
Type String - Network type.
- path
Mappings List<Property Map> - Domain name mapping path and environment list.
- protocol String
- Custom domain name agreement type.
GetApiGatewayCustomerDomainsListPathMapping
- Environment string
- Release environment.
- Path string
- The domain mapping path.
- Environment string
- Release environment.
- Path string
- The domain mapping path.
- environment String
- Release environment.
- path String
- The domain mapping path.
- environment string
- Release environment.
- path string
- The domain mapping path.
- environment str
- Release environment.
- path str
- The domain mapping path.
- environment String
- Release environment.
- path String
- The domain mapping path.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
