Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine
volcengine.cen.GrantInstances
Explore with Pulumi AI
Deprecated: volcengine.cen.GrantInstances has been deprecated in favor of volcengine.cen.getGrantInstances
Use this data source to query detailed information of cen grant instances
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.cen.getGrantInstances({
instanceId: "vpc-2bysvq1xx543k2dx0eeul****",
instanceRegionId: "cn-beijing",
instanceType: "VPC",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cen.get_grant_instances(instance_id="vpc-2bysvq1xx543k2dx0eeul****",
instance_region_id="cn-beijing",
instance_type="VPC")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cen"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cen.GetGrantInstances(ctx, &cen.GetGrantInstancesArgs{
InstanceId: pulumi.StringRef("vpc-2bysvq1xx543k2dx0eeul****"),
InstanceRegionId: pulumi.StringRef("cn-beijing"),
InstanceType: pulumi.StringRef("VPC"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Cen.GetGrantInstances.Invoke(new()
{
InstanceId = "vpc-2bysvq1xx543k2dx0eeul****",
InstanceRegionId = "cn-beijing",
InstanceType = "VPC",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cen.CenFunctions;
import com.pulumi.volcengine.cen.inputs.GetGrantInstancesArgs;
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 foo = CenFunctions.getGrantInstances(GetGrantInstancesArgs.builder()
.instanceId("vpc-2bysvq1xx543k2dx0eeul****")
.instanceRegionId("cn-beijing")
.instanceType("VPC")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:cen:getGrantInstances
Arguments:
instanceId: vpc-2bysvq1xx543k2dx0eeul****
instanceRegionId: cn-beijing
instanceType: VPC
Using GrantInstances
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 grantInstances(args: GrantInstancesArgs, opts?: InvokeOptions): Promise<GrantInstancesResult>
function grantInstancesOutput(args: GrantInstancesOutputArgs, opts?: InvokeOptions): Output<GrantInstancesResult>
def grant_instances(instance_id: Optional[str] = None,
instance_region_id: Optional[str] = None,
instance_type: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GrantInstancesResult
def grant_instances_output(instance_id: Optional[pulumi.Input[str]] = None,
instance_region_id: Optional[pulumi.Input[str]] = None,
instance_type: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GrantInstancesResult]
func GrantInstances(ctx *Context, args *GrantInstancesArgs, opts ...InvokeOption) (*GrantInstancesResult, error)
func GrantInstancesOutput(ctx *Context, args *GrantInstancesOutputArgs, opts ...InvokeOption) GrantInstancesResultOutput
public static class GrantInstances
{
public static Task<GrantInstancesResult> InvokeAsync(GrantInstancesArgs args, InvokeOptions? opts = null)
public static Output<GrantInstancesResult> Invoke(GrantInstancesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GrantInstancesResult> grantInstances(GrantInstancesArgs args, InvokeOptions options)
public static Output<GrantInstancesResult> grantInstances(GrantInstancesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:cen:GrantInstances
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The ID of the instance.
- Instance
Region stringId - The region ID of the instance.
- Instance
Type string - The type of the instance. Valid values:
VPC
,DCGW
. - Output
File string - File name where to save data source results.
- Instance
Id string - The ID of the instance.
- Instance
Region stringId - The region ID of the instance.
- Instance
Type string - The type of the instance. Valid values:
VPC
,DCGW
. - Output
File string - File name where to save data source results.
- instance
Id String - The ID of the instance.
- instance
Region StringId - The region ID of the instance.
- instance
Type String - The type of the instance. Valid values:
VPC
,DCGW
. - output
File String - File name where to save data source results.
- instance
Id string - The ID of the instance.
- instance
Region stringId - The region ID of the instance.
- instance
Type string - The type of the instance. Valid values:
VPC
,DCGW
. - output
File string - File name where to save data source results.
- instance_
id str - The ID of the instance.
- instance_
region_ strid - The region ID of the instance.
- instance_
type str - The type of the instance. Valid values:
VPC
,DCGW
. - output_
file str - File name where to save data source results.
- instance
Id String - The ID of the instance.
- instance
Region StringId - The region ID of the instance.
- instance
Type String - The type of the instance. Valid values:
VPC
,DCGW
. - output
File String - File name where to save data source results.
GrantInstances Result
The following output properties are available:
- Grant
Rules List<GrantInstances Grant Rule> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Instance
Id string - The ID of the instance.
- Instance
Region stringId - The region ID of the instance.
- Instance
Type string - The type of the instance.
- Output
File string
- Grant
Rules []GrantInstances Grant Rule - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Instance
Id string - The ID of the instance.
- Instance
Region stringId - The region ID of the instance.
- Instance
Type string - The type of the instance.
- Output
File string
- grant
Rules List<GrantInstances Grant Rule> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- instance
Id String - The ID of the instance.
- instance
Region StringId - The region ID of the instance.
- instance
Type String - The type of the instance.
- output
File String
- grant
Rules GrantInstances Grant Rule[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- instance
Id string - The ID of the instance.
- instance
Region stringId - The region ID of the instance.
- instance
Type string - The type of the instance.
- output
File string
- grant_
rules Sequence[GrantInstances Grant Rule] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- instance_
id str - The ID of the instance.
- instance_
region_ strid - The region ID of the instance.
- instance_
type str - The type of the instance.
- output_
file str
- grant
Rules List<Property Map> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- instance
Id String - The ID of the instance.
- instance
Region StringId - The region ID of the instance.
- instance
Type String - The type of the instance.
- output
File String
Supporting Types
GrantInstancesGrantRule
- Cen
Id string - The ID of the cen.
- Cen
Owner stringId - The owner ID of the cen.
- Creation
Time string - The creation time of the grant rule.
- Instance
Id string - The ID of the instance.
- Instance
Region stringId - The region ID of the instance.
- Instance
Type string - The type of the instance. Valid values:
VPC
,DCGW
.
- Cen
Id string - The ID of the cen.
- Cen
Owner stringId - The owner ID of the cen.
- Creation
Time string - The creation time of the grant rule.
- Instance
Id string - The ID of the instance.
- Instance
Region stringId - The region ID of the instance.
- Instance
Type string - The type of the instance. Valid values:
VPC
,DCGW
.
- cen
Id String - The ID of the cen.
- cen
Owner StringId - The owner ID of the cen.
- creation
Time String - The creation time of the grant rule.
- instance
Id String - The ID of the instance.
- instance
Region StringId - The region ID of the instance.
- instance
Type String - The type of the instance. Valid values:
VPC
,DCGW
.
- cen
Id string - The ID of the cen.
- cen
Owner stringId - The owner ID of the cen.
- creation
Time string - The creation time of the grant rule.
- instance
Id string - The ID of the instance.
- instance
Region stringId - The region ID of the instance.
- instance
Type string - The type of the instance. Valid values:
VPC
,DCGW
.
- cen_
id str - The ID of the cen.
- cen_
owner_ strid - The owner ID of the cen.
- creation_
time str - The creation time of the grant rule.
- instance_
id str - The ID of the instance.
- instance_
region_ strid - The region ID of the instance.
- instance_
type str - The type of the instance. Valid values:
VPC
,DCGW
.
- cen
Id String - The ID of the cen.
- cen
Owner StringId - The owner ID of the cen.
- creation
Time String - The creation time of the grant rule.
- instance
Id String - The ID of the instance.
- instance
Region StringId - The region ID of the instance.
- instance
Type String - The type of the instance. Valid values:
VPC
,DCGW
.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.