tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getCcnInstances
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 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 This property is required. List<GetCcn Instances Instance List Attachment List> - Information list of instance is attached.
- Bandwidth
Limit Type This property is required. string - The speed limit type.
- Ccn
Id This property is required. string - ID of the CCN to be queried.
- Charge
Type This property is required. string - Billing mode.
- Create
Time This property is required. string - Creation time of resource.
- Description
This property is required. string - Description of the CCN.
- Name
This property is required. string - Name of the CCN to be queried.
- Qos
This property is required. string - Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- State
This property is required. string - States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- Attachment
Lists This property is required. []GetCcn Instances Instance List Attachment List - Information list of instance is attached.
- Bandwidth
Limit Type This property is required. string - The speed limit type.
- Ccn
Id This property is required. string - ID of the CCN to be queried.
- Charge
Type This property is required. string - Billing mode.
- Create
Time This property is required. string - Creation time of resource.
- Description
This property is required. string - Description of the CCN.
- Name
This property is required. string - Name of the CCN to be queried.
- Qos
This property is required. string - Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- State
This property is required. string - States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attachment
Lists This property is required. List<GetCcn Instances Instance List Attachment List> - Information list of instance is attached.
- bandwidth
Limit Type This property is required. String - The speed limit type.
- ccn
Id This property is required. String - ID of the CCN to be queried.
- charge
Type This property is required. String - Billing mode.
- create
Time This property is required. String - Creation time of resource.
- description
This property is required. String - Description of the CCN.
- name
This property is required. String - Name of the CCN to be queried.
- qos
This property is required. String - Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- state
This property is required. String - States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attachment
Lists This property is required. GetCcn Instances Instance List Attachment List[] - Information list of instance is attached.
- bandwidth
Limit Type This property is required. string - The speed limit type.
- ccn
Id This property is required. string - ID of the CCN to be queried.
- charge
Type This property is required. string - Billing mode.
- create
Time This property is required. string - Creation time of resource.
- description
This property is required. string - Description of the CCN.
- name
This property is required. string - Name of the CCN to be queried.
- qos
This property is required. string - Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- state
This property is required. string - States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attachment_
lists This property is required. Sequence[GetCcn Instances Instance List Attachment List] - Information list of instance is attached.
- bandwidth_
limit_ type This property is required. str - The speed limit type.
- ccn_
id This property is required. str - ID of the CCN to be queried.
- charge_
type This property is required. str - Billing mode.
- create_
time This property is required. str - Creation time of resource.
- description
This property is required. str - Description of the CCN.
- name
This property is required. str - Name of the CCN to be queried.
- qos
This property is required. str - Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- state
This property is required. str - States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attachment
Lists This property is required. List<Property Map> - Information list of instance is attached.
- bandwidth
Limit Type This property is required. String - The speed limit type.
- ccn
Id This property is required. String - ID of the CCN to be queried.
- charge
Type This property is required. String - Billing mode.
- create
Time This property is required. String - Creation time of resource.
- description
This property is required. String - Description of the CCN.
- name
This property is required. String - Name of the CCN to be queried.
- qos
This property is required. String - Service quality of CCN, and the available value include 'PT', 'AU', 'AG'. The default is 'AU'.
- state
This property is required. String - States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
GetCcnInstancesInstanceListAttachmentList
- Attached
Time This property is required. string - Time of attaching.
- Cidr
Blocks This property is required. List<string> - A network address block of the instance that is attached.
- Instance
Id This property is required. string - ID of instance is attached.
- Instance
Region This property is required. string - The region that the instance locates at.
- Instance
Type This property is required. string - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- State
This property is required. string - States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- Attached
Time This property is required. string - Time of attaching.
- Cidr
Blocks This property is required. []string - A network address block of the instance that is attached.
- Instance
Id This property is required. string - ID of instance is attached.
- Instance
Region This property is required. string - The region that the instance locates at.
- Instance
Type This property is required. string - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- State
This property is required. string - States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attached
Time This property is required. String - Time of attaching.
- cidr
Blocks This property is required. List<String> - A network address block of the instance that is attached.
- instance
Id This property is required. String - ID of instance is attached.
- instance
Region This property is required. String - The region that the instance locates at.
- instance
Type This property is required. String - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- state
This property is required. String - States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attached
Time This property is required. string - Time of attaching.
- cidr
Blocks This property is required. string[] - A network address block of the instance that is attached.
- instance
Id This property is required. string - ID of instance is attached.
- instance
Region This property is required. string - The region that the instance locates at.
- instance
Type This property is required. string - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- state
This property is required. string - States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attached_
time This property is required. str - Time of attaching.
- cidr_
blocks This property is required. Sequence[str] - A network address block of the instance that is attached.
- instance_
id This property is required. str - ID of instance is attached.
- instance_
region This property is required. str - The region that the instance locates at.
- instance_
type This property is required. str - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- state
This property is required. str - States of instance. The available value include 'ISOLATED'(arrears) and 'AVAILABLE'.
- attached
Time This property is required. String - Time of attaching.
- cidr
Blocks This property is required. List<String> - A network address block of the instance that is attached.
- instance
Id This property is required. String - ID of instance is attached.
- instance
Region This property is required. String - The region that the instance locates at.
- instance
Type This property is required. String - Type of attached instance network, and available values include VPC, DIRECTCONNECT, BMVPC and VPNGW.
- state
This property is required. 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.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack