Viewing docs for tencentcloud 1.83.31
published on Friday, Sep 11, 2026 by tencentcloudstack
published on Friday, Sep 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.31
published on Friday, Sep 11, 2026 by tencentcloudstack
published on Friday, Sep 11, 2026 by tencentcloudstack
Use this data source to query detailed information of CKafka routes
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getCkafkaRoutes({
instanceId: "ckafka-exampleabc",
mainRouteFlag: true,
routeId: 123,
});
export const routes = example.then(example => example.routers);
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_ckafka_routes(instance_id="ckafka-exampleabc",
main_route_flag=True,
route_id=123)
pulumi.export("routes", example.routers)
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 {
example, err := tencentcloud.GetCkafkaRoutes(ctx, &tencentcloud.GetCkafkaRoutesArgs{
InstanceId: "ckafka-exampleabc",
MainRouteFlag: pulumi.BoolRef(true),
RouteId: pulumi.Float64Ref(123),
}, nil)
if err != nil {
return err
}
ctx.Export("routes", example.Routers)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetCkafkaRoutes.Invoke(new()
{
InstanceId = "ckafka-exampleabc",
MainRouteFlag = true,
RouteId = 123,
});
return new Dictionary<string, object?>
{
["routes"] = example.Apply(getCkafkaRoutesResult => getCkafkaRoutesResult.Routers),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetCkafkaRoutesArgs;
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) {
final var example = TencentcloudFunctions.getCkafkaRoutes(GetCkafkaRoutesArgs.builder()
.instanceId("ckafka-exampleabc")
.mainRouteFlag(true)
.routeId(123)
.build());
ctx.export("routes", example.routers());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getCkafkaRoutes
arguments:
instanceId: ckafka-exampleabc
mainRouteFlag: true
routeId: 123
outputs:
routes: ${example.routers}
Example coming soon!
Using getCkafkaRoutes
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 getCkafkaRoutes(args: GetCkafkaRoutesArgs, opts?: InvokeOptions): Promise<GetCkafkaRoutesResult>
function getCkafkaRoutesOutput(args: GetCkafkaRoutesOutputArgs, opts?: InvokeOutputOptions): Output<GetCkafkaRoutesResult>def get_ckafka_routes(id: Optional[str] = None,
instance_id: Optional[str] = None,
main_route_flag: Optional[bool] = None,
result_output_file: Optional[str] = None,
route_id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCkafkaRoutesResult
def get_ckafka_routes_output(id: pulumi.Input[Optional[str]] = None,
instance_id: pulumi.Input[Optional[str]] = None,
main_route_flag: pulumi.Input[Optional[bool]] = None,
result_output_file: pulumi.Input[Optional[str]] = None,
route_id: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetCkafkaRoutesResult]func GetCkafkaRoutes(ctx *Context, args *GetCkafkaRoutesArgs, opts ...InvokeOption) (*GetCkafkaRoutesResult, error)
func GetCkafkaRoutesOutput(ctx *Context, args *GetCkafkaRoutesOutputArgs, opts ...InvokeOption) GetCkafkaRoutesResultOutput> Note: This function is named GetCkafkaRoutes in the Go SDK.
public static class GetCkafkaRoutes
{
public static Task<GetCkafkaRoutesResult> InvokeAsync(GetCkafkaRoutesArgs args, InvokeOptions? opts = null)
public static Output<GetCkafkaRoutesResult> Invoke(GetCkafkaRoutesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetCkafkaRoutesResult> Invoke(GetCkafkaRoutesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetCkafkaRoutesResult> getCkafkaRoutes(GetCkafkaRoutesArgs args, InvokeOptions options)
public static Output<GetCkafkaRoutesResult> getCkafkaRoutes(GetCkafkaRoutesArgs args, InvokeOptions options)
public static Output<GetCkafkaRoutesResult> getCkafkaRoutes(GetCkafkaRoutesArgs args, InvokeOutputOptions options)
fn::invoke:
function: tencentcloud:index/getCkafkaRoutes:getCkafkaRoutes
arguments:
# arguments dictionarydata "tencentcloud_get_ckafka_routes" "name" {
# arguments
}The following arguments are supported:
- Instance
Id string - Id of the ckafka instance.
- Id string
- Main
Route boolFlag - Whether to display the main route. When set to true, the main route created at instance creation will be additionally returned.
- Result
Output stringFile - Used to save results.
- Route
Id double - Route id, used to query a specific route.
- Instance
Id string - Id of the ckafka instance.
- Id string
- Main
Route boolFlag - Whether to display the main route. When set to true, the main route created at instance creation will be additionally returned.
- Result
Output stringFile - Used to save results.
- Route
Id float64 - Route id, used to query a specific route.
- instance_
id string - Id of the ckafka instance.
- id string
- main_
route_ boolflag - Whether to display the main route. When set to true, the main route created at instance creation will be additionally returned.
- result_
output_ stringfile - Used to save results.
- route_
id number - Route id, used to query a specific route.
- instance
Id String - Id of the ckafka instance.
- id String
- main
Route BooleanFlag - Whether to display the main route. When set to true, the main route created at instance creation will be additionally returned.
- result
Output StringFile - Used to save results.
- route
Id Double - Route id, used to query a specific route.
- instance
Id string - Id of the ckafka instance.
- id string
- main
Route booleanFlag - Whether to display the main route. When set to true, the main route created at instance creation will be additionally returned.
- result
Output stringFile - Used to save results.
- route
Id number - Route id, used to query a specific route.
- instance_
id str - Id of the ckafka instance.
- id str
- main_
route_ boolflag - Whether to display the main route. When set to true, the main route created at instance creation will be additionally returned.
- result_
output_ strfile - Used to save results.
- route_
id float - Route id, used to query a specific route.
- instance
Id String - Id of the ckafka instance.
- id String
- main
Route BooleanFlag - Whether to display the main route. When set to true, the main route created at instance creation will be additionally returned.
- result
Output StringFile - Used to save results.
- route
Id Number - Route id, used to query a specific route.
getCkafkaRoutes Result
The following output properties are available:
- Id string
- Instance
Id string - Routers
List<Get
Ckafka Routes Router> - A list of ckafka routes. Each element contains the following attributes:
- Main
Route boolFlag - Result
Output stringFile - Route
Id double - Route id.
- Id string
- Instance
Id string - Routers
[]Get
Ckafka Routes Router - A list of ckafka routes. Each element contains the following attributes:
- Main
Route boolFlag - Result
Output stringFile - Route
Id float64 - Route id.
- id string
- instance_
id string - routers list(object)
- A list of ckafka routes. Each element contains the following attributes:
- main_
route_ boolflag - result_
output_ stringfile - route_
id number - Route id.
- id String
- instance
Id String - routers
List<Get
Ckafka Routes Router> - A list of ckafka routes. Each element contains the following attributes:
- main
Route BooleanFlag - result
Output StringFile - route
Id Double - Route id.
- id string
- instance
Id string - routers
Get
Ckafka Routes Router[] - A list of ckafka routes. Each element contains the following attributes:
- main
Route booleanFlag - result
Output stringFile - route
Id number - Route id.
- id str
- instance_
id str - routers
Sequence[Get
Ckafka Routes Router] - A list of ckafka routes. Each element contains the following attributes:
- main_
route_ boolflag - result_
output_ strfile - route_
id float - Route id.
- id String
- instance
Id String - routers List<Property Map>
- A list of ckafka routes. Each element contains the following attributes:
- main
Route BooleanFlag - result
Output StringFile - route
Id Number - Route id.
Supporting Types
GetCkafkaRoutesRouter
- Access
Type double - Instance access type. 0: PLAINTEXT, 1: SASL_PLAINTEXT, 2: SSL, 3: SASL_SSL.
- Broker
Vip List<GetLists Ckafka Routes Router Broker Vip List> - Virtual IP list (1 to 1 broker nodes).
- Delete
Timestamp string - Delete timestamp.
- Domain string
- Domain.
- Domain
Port double - Domain port.
- Note string
- Remark.
- Route
Id double - Route id, used to query a specific route.
- Status double
- Route status. 1: creating, 2: created, 3: create failed, 4: deleting, 6: delete failed.
- Subnet string
- Subnet id.
- Vip
Lists List<GetCkafka Routes Router Vip List> - Virtual IP list.
- Vip
Type double - Routing network type. 3: vpc routing, 7: internal support routing, 1: public network routing.
- Vpc
Id string - Vpc id.
- Access
Type float64 - Instance access type. 0: PLAINTEXT, 1: SASL_PLAINTEXT, 2: SSL, 3: SASL_SSL.
- Broker
Vip []GetLists Ckafka Routes Router Broker Vip List - Virtual IP list (1 to 1 broker nodes).
- Delete
Timestamp string - Delete timestamp.
- Domain string
- Domain.
- Domain
Port float64 - Domain port.
- Note string
- Remark.
- Route
Id float64 - Route id, used to query a specific route.
- Status float64
- Route status. 1: creating, 2: created, 3: create failed, 4: deleting, 6: delete failed.
- Subnet string
- Subnet id.
- Vip
Lists []GetCkafka Routes Router Vip List - Virtual IP list.
- Vip
Type float64 - Routing network type. 3: vpc routing, 7: internal support routing, 1: public network routing.
- Vpc
Id string - Vpc id.
- access_
type number - Instance access type. 0: PLAINTEXT, 1: SASL_PLAINTEXT, 2: SSL, 3: SASL_SSL.
- broker_
vip_ list(object)lists - Virtual IP list (1 to 1 broker nodes).
- delete_
timestamp string - Delete timestamp.
- domain string
- Domain.
- domain_
port number - Domain port.
- note string
- Remark.
- route_
id number - Route id, used to query a specific route.
- status number
- Route status. 1: creating, 2: created, 3: create failed, 4: deleting, 6: delete failed.
- subnet string
- Subnet id.
- vip_
lists list(object) - Virtual IP list.
- vip_
type number - Routing network type. 3: vpc routing, 7: internal support routing, 1: public network routing.
- vpc_
id string - Vpc id.
- access
Type Double - Instance access type. 0: PLAINTEXT, 1: SASL_PLAINTEXT, 2: SSL, 3: SASL_SSL.
- broker
Vip List<GetLists Ckafka Routes Router Broker Vip List> - Virtual IP list (1 to 1 broker nodes).
- delete
Timestamp String - Delete timestamp.
- domain String
- Domain.
- domain
Port Double - Domain port.
- note String
- Remark.
- route
Id Double - Route id, used to query a specific route.
- status Double
- Route status. 1: creating, 2: created, 3: create failed, 4: deleting, 6: delete failed.
- subnet String
- Subnet id.
- vip
Lists List<GetCkafka Routes Router Vip List> - Virtual IP list.
- vip
Type Double - Routing network type. 3: vpc routing, 7: internal support routing, 1: public network routing.
- vpc
Id String - Vpc id.
- access
Type number - Instance access type. 0: PLAINTEXT, 1: SASL_PLAINTEXT, 2: SSL, 3: SASL_SSL.
- broker
Vip GetLists Ckafka Routes Router Broker Vip List[] - Virtual IP list (1 to 1 broker nodes).
- delete
Timestamp string - Delete timestamp.
- domain string
- Domain.
- domain
Port number - Domain port.
- note string
- Remark.
- route
Id number - Route id, used to query a specific route.
- status number
- Route status. 1: creating, 2: created, 3: create failed, 4: deleting, 6: delete failed.
- subnet string
- Subnet id.
- vip
Lists GetCkafka Routes Router Vip List[] - Virtual IP list.
- vip
Type number - Routing network type. 3: vpc routing, 7: internal support routing, 1: public network routing.
- vpc
Id string - Vpc id.
- access_
type float - Instance access type. 0: PLAINTEXT, 1: SASL_PLAINTEXT, 2: SSL, 3: SASL_SSL.
- broker_
vip_ Sequence[Getlists Ckafka Routes Router Broker Vip List] - Virtual IP list (1 to 1 broker nodes).
- delete_
timestamp str - Delete timestamp.
- domain str
- Domain.
- domain_
port float - Domain port.
- note str
- Remark.
- route_
id float - Route id, used to query a specific route.
- status float
- Route status. 1: creating, 2: created, 3: create failed, 4: deleting, 6: delete failed.
- subnet str
- Subnet id.
- vip_
lists Sequence[GetCkafka Routes Router Vip List] - Virtual IP list.
- vip_
type float - Routing network type. 3: vpc routing, 7: internal support routing, 1: public network routing.
- vpc_
id str - Vpc id.
- access
Type Number - Instance access type. 0: PLAINTEXT, 1: SASL_PLAINTEXT, 2: SSL, 3: SASL_SSL.
- broker
Vip List<Property Map>Lists - Virtual IP list (1 to 1 broker nodes).
- delete
Timestamp String - Delete timestamp.
- domain String
- Domain.
- domain
Port Number - Domain port.
- note String
- Remark.
- route
Id Number - Route id, used to query a specific route.
- status Number
- Route status. 1: creating, 2: created, 3: create failed, 4: deleting, 6: delete failed.
- subnet String
- Subnet id.
- vip
Lists List<Property Map> - Virtual IP list.
- vip
Type Number - Routing network type. 3: vpc routing, 7: internal support routing, 1: public network routing.
- vpc
Id String - Vpc id.
GetCkafkaRoutesRouterBrokerVipList
GetCkafkaRoutesRouterVipList
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
Viewing docs for tencentcloud 1.83.31
published on Friday, Sep 11, 2026 by tencentcloudstack
published on Friday, Sep 11, 2026 by tencentcloudstack