tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getCcnInstances
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of CCN instances.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const main = new tencentcloud.Ccn("main", {
description: "ci-temp-test-ccn-des",
qos: "AG",
});
const idInstances = tencentcloud.getCcnInstancesOutput({
ccnId: main.ccnId,
});
const nameInstances = tencentcloud.getCcnInstancesOutput({
name: main.name,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
main = tencentcloud.Ccn("main",
description="ci-temp-test-ccn-des",
qos="AG")
id_instances = tencentcloud.get_ccn_instances_output(ccn_id=main.ccn_id)
name_instances = tencentcloud.get_ccn_instances_output(name=main.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 {
main, err := tencentcloud.NewCcn(ctx, "main", &tencentcloud.CcnArgs{
Description: pulumi.String("ci-temp-test-ccn-des"),
Qos: pulumi.String("AG"),
})
if err != nil {
return err
}
_ = tencentcloud.GetCcnInstancesOutput(ctx, tencentcloud.GetCcnInstancesOutputArgs{
CcnId: main.CcnId,
}, nil)
_ = tencentcloud.GetCcnInstancesOutput(ctx, tencentcloud.GetCcnInstancesOutputArgs{
Name: main.Name,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var main = new Tencentcloud.Ccn("main", new()
{
Description = "ci-temp-test-ccn-des",
Qos = "AG",
});
var idInstances = Tencentcloud.GetCcnInstances.Invoke(new()
{
CcnId = main.CcnId,
});
var nameInstances = Tencentcloud.GetCcnInstances.Invoke(new()
{
Name = main.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.Ccn;
import com.pulumi.tencentcloud.CcnArgs;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetCcnInstancesArgs;
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 main = new Ccn("main", CcnArgs.builder()
.description("ci-temp-test-ccn-des")
.qos("AG")
.build());
final var idInstances = TencentcloudFunctions.getCcnInstances(GetCcnInstancesArgs.builder()
.ccnId(main.ccnId())
.build());
final var nameInstances = TencentcloudFunctions.getCcnInstances(GetCcnInstancesArgs.builder()
.name(main.name())
.build());
}
}
resources:
main:
type: tencentcloud:Ccn
properties:
description: ci-temp-test-ccn-des
qos: AG
variables:
idInstances:
fn::invoke:
function: tencentcloud:getCcnInstances
arguments:
ccnId: ${main.ccnId}
nameInstances:
fn::invoke:
function: tencentcloud:getCcnInstances
arguments:
name: ${main.name}
Using getCcnInstances
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 getCcnInstances(args: GetCcnInstancesArgs, opts?: InvokeOptions): Promise<GetCcnInstancesResult>
function getCcnInstancesOutput(args: GetCcnInstancesOutputArgs, opts?: InvokeOptions): Output<GetCcnInstancesResult>
def get_ccn_instances(ccn_id: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCcnInstancesResult
def get_ccn_instances_output(ccn_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCcnInstancesResult]
func GetCcnInstances(ctx *Context, args *GetCcnInstancesArgs, opts ...InvokeOption) (*GetCcnInstancesResult, error)
func GetCcnInstancesOutput(ctx *Context, args *GetCcnInstancesOutputArgs, opts ...InvokeOption) GetCcnInstancesResultOutput
> Note: This function is named GetCcnInstances
in the Go SDK.
public static class GetCcnInstances
{
public static Task<GetCcnInstancesResult> InvokeAsync(GetCcnInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetCcnInstancesResult> Invoke(GetCcnInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCcnInstancesResult> getCcnInstances(GetCcnInstancesArgs args, InvokeOptions options)
public static Output<GetCcnInstancesResult> getCcnInstances(GetCcnInstancesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCcnInstances:getCcnInstances
arguments:
# arguments dictionary
The following arguments are supported:
- Ccn
Id string - ID of the CCN to be queried.
- Id string
- Name string
- Name of the CCN to be queried.
- Result
Output stringFile - Used to save results.
- Ccn
Id string - ID of the CCN to be queried.
- Id string
- Name string
- Name of the CCN to be queried.
- Result
Output stringFile - Used to save results.
- ccn
Id String - ID of the CCN to be queried.
- id String
- name String
- Name of the CCN to be queried.
- result
Output StringFile - Used to save results.
- ccn
Id string - ID of the CCN to be queried.
- id string
- name string
- Name of the CCN to be queried.
- result
Output stringFile - Used to save results.
- ccn_
id str - ID of the CCN to be queried.
- id str
- name str
- Name of the CCN to be queried.
- result_
output_ strfile - Used to save results.
- ccn
Id String - ID of the CCN to be queried.
- id String
- name String
- Name of the CCN to be queried.
- result
Output StringFile - Used to save results.
getCcnInstances Result
The following output properties are available:
- Id string
- Instance
Lists List<GetCcn Instances Instance List> - Information list of CCN.
- Ccn
Id string - ID of the CCN.
- Name string
- Name of the CCN.
- Result
Output stringFile
- Id string
- Instance
Lists []GetCcn Instances Instance List - Information list of CCN.
- Ccn
Id string - ID of the CCN.
- Name string
- Name of the CCN.
- Result
Output stringFile
- id String
- instance
Lists List<GetCcn Instances Instance List> - Information list of CCN.
- ccn
Id String - ID of the CCN.
- name String
- Name of the CCN.
- result
Output StringFile
- id string
- instance
Lists GetCcn Instances Instance List[] - Information list of CCN.
- ccn
Id string - ID of the CCN.
- name string
- Name of the CCN.
- result
Output stringFile
- id str
- instance_
lists Sequence[GetCcn Instances Instance List] - Information list of CCN.
- ccn_
id str - ID of the CCN.
- name str
- Name of the CCN.
- result_
output_ strfile
- id String
- instance
Lists List<Property Map> - Information list of CCN.
- ccn
Id String - ID of the CCN.
- name String
- Name of the CCN.
- result
Output StringFile
Supporting Types
GetCcnInstancesInstanceList
- Attachment
Lists List<GetCcn Instances Instance List Attachment List> - Information list of instance is attached.
- Bandwidth
Limit stringType - The speed limit type.
- Ccn
Id string - ID of the CCN to be queried.
- Charge
Type string - Billing mode.
- Create
Time string - Creation time of resource.
- Description string
- Description of the CCN.
- Name string
- Name of the CCN to be queried.
- Qos string
- Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- State string
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- Attachment
Lists []GetCcn Instances Instance List Attachment List - Information list of instance is attached.
- Bandwidth
Limit stringType - The speed limit type.
- Ccn
Id string - ID of the CCN to be queried.
- Charge
Type string - Billing mode.
- Create
Time string - Creation time of resource.
- Description string
- Description of the CCN.
- Name string
- Name of the CCN to be queried.
- Qos string
- Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- State string
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attachment
Lists List<GetCcn Instances Instance List Attachment List> - Information list of instance is attached.
- bandwidth
Limit StringType - The speed limit type.
- ccn
Id String - ID of the CCN to be queried.
- charge
Type String - Billing mode.
- create
Time String - Creation time of resource.
- description String
- Description of the CCN.
- name String
- Name of the CCN to be queried.
- qos String
- Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- state String
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attachment
Lists GetCcn Instances Instance List Attachment List[] - Information list of instance is attached.
- bandwidth
Limit stringType - The speed limit type.
- ccn
Id string - ID of the CCN to be queried.
- charge
Type string - Billing mode.
- create
Time string - Creation time of resource.
- description string
- Description of the CCN.
- name string
- Name of the CCN to be queried.
- qos string
- Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- state string
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attachment_
lists Sequence[GetCcn Instances Instance List Attachment List] - Information list of instance is attached.
- bandwidth_
limit_ strtype - The speed limit type.
- ccn_
id str - ID of the CCN to be queried.
- charge_
type str - Billing mode.
- create_
time str - Creation time of resource.
- description str
- Description of the CCN.
- name str
- Name of the CCN to be queried.
- qos str
- Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- state str
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attachment
Lists List<Property Map> - Information list of instance is attached.
- bandwidth
Limit StringType - The speed limit type.
- ccn
Id String - ID of the CCN to be queried.
- charge
Type String - Billing mode.
- create
Time String - Creation time of resource.
- description String
- Description of the CCN.
- name String
- Name of the CCN to be queried.
- qos String
- Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- state String
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
GetCcnInstancesInstanceListAttachmentList
- Attached
Time string - Time of attaching.
- Cidr
Blocks List<string> - A network address block of the instance that is attached.
- Instance
Id string - ID of instance is attached.
- Instance
Region string - The region that the instance locates at.
- Instance
Type string - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- State string
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- Attached
Time string - Time of attaching.
- Cidr
Blocks []string - A network address block of the instance that is attached.
- Instance
Id string - ID of instance is attached.
- Instance
Region string - The region that the instance locates at.
- Instance
Type string - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- State string
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attached
Time String - Time of attaching.
- cidr
Blocks List<String> - A network address block of the instance that is attached.
- instance
Id String - ID of instance is attached.
- instance
Region String - The region that the instance locates at.
- instance
Type String - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- state String
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attached
Time string - Time of attaching.
- cidr
Blocks string[] - A network address block of the instance that is attached.
- instance
Id string - ID of instance is attached.
- instance
Region string - The region that the instance locates at.
- instance
Type string - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- state string
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attached_
time str - Time of attaching.
- cidr_
blocks Sequence[str] - A network address block of the instance that is attached.
- instance_
id str - ID of instance is attached.
- instance_
region str - The region that the instance locates at.
- instance_
type str - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- state str
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attached
Time String - Time of attaching.
- cidr
Blocks List<String> - A network address block of the instance that is attached.
- instance
Id String - ID of instance is attached.
- instance
Region String - The region that the instance locates at.
- instance
Type String - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- state String
- States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack