Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of transit router grant rules
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.transit_router.getGrantRules({
transitRouterId: "tr-2bzy39uy6u3282dx0efxiqyq0",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.transit_router.get_grant_rules(transit_router_id="tr-2bzy39uy6u3282dx0efxiqyq0")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/transit_router"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := transit_router.GetGrantRules(ctx, &transit_router.GetGrantRulesArgs{
TransitRouterId: "tr-2bzy39uy6u3282dx0efxiqyq0",
}, 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.Transit_router.GetGrantRules.Invoke(new()
{
TransitRouterId = "tr-2bzy39uy6u3282dx0efxiqyq0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.transit_router.Transit_routerFunctions;
import com.pulumi.volcengine.transit_router.inputs.GetGrantRulesArgs;
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 = Transit_routerFunctions.getGrantRules(GetGrantRulesArgs.builder()
.transitRouterId("tr-2bzy39uy6u3282dx0efxiqyq0")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:transit_router:getGrantRules
Arguments:
transitRouterId: tr-2bzy39uy6u3282dx0efxiqyq0
Using getGrantRules
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 getGrantRules(args: GetGrantRulesArgs, opts?: InvokeOptions): Promise<GetGrantRulesResult>
function getGrantRulesOutput(args: GetGrantRulesOutputArgs, opts?: InvokeOptions): Output<GetGrantRulesResult>def get_grant_rules(grant_account_id: Optional[str] = None,
output_file: Optional[str] = None,
transit_router_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGrantRulesResult
def get_grant_rules_output(grant_account_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
transit_router_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGrantRulesResult]func GetGrantRules(ctx *Context, args *GetGrantRulesArgs, opts ...InvokeOption) (*GetGrantRulesResult, error)
func GetGrantRulesOutput(ctx *Context, args *GetGrantRulesOutputArgs, opts ...InvokeOption) GetGrantRulesResultOutput> Note: This function is named GetGrantRules in the Go SDK.
public static class GetGrantRules
{
public static Task<GetGrantRulesResult> InvokeAsync(GetGrantRulesArgs args, InvokeOptions? opts = null)
public static Output<GetGrantRulesResult> Invoke(GetGrantRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGrantRulesResult> getGrantRules(GetGrantRulesArgs args, InvokeOptions options)
public static Output<GetGrantRulesResult> getGrantRules(GetGrantRulesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:transit_router/getGrantRules:getGrantRules
arguments:
# arguments dictionaryThe following arguments are supported:
- Transit
Router stringId - The id of the transit router.
- Grant
Account stringId - The id of the grant account.
- Output
File string - File name where to save data source results.
- Transit
Router stringId - The id of the transit router.
- Grant
Account stringId - The id of the grant account.
- Output
File string - File name where to save data source results.
- transit
Router StringId - The id of the transit router.
- grant
Account StringId - The id of the grant account.
- output
File String - File name where to save data source results.
- transit
Router stringId - The id of the transit router.
- grant
Account stringId - The id of the grant account.
- output
File string - File name where to save data source results.
- transit_
router_ strid - The id of the transit router.
- grant_
account_ strid - The id of the grant account.
- output_
file str - File name where to save data source results.
- transit
Router StringId - The id of the transit router.
- grant
Account StringId - The id of the grant account.
- output
File String - File name where to save data source results.
getGrantRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
List<Get
Grant Rules Rule> - The collection of query.
- Total
Count int - The total count of query.
- Transit
Router stringId - The id of the transaction router.
- Grant
Account stringId - The id of the grant account.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
[]Get
Grant Rules Rule - The collection of query.
- Total
Count int - The total count of query.
- Transit
Router stringId - The id of the transaction router.
- Grant
Account stringId - The id of the grant account.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- rules
List<Get
Grant Rules Rule> - The collection of query.
- total
Count Integer - The total count of query.
- transit
Router StringId - The id of the transaction router.
- grant
Account StringId - The id of the grant account.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- rules
Get
Grant Rules Rule[] - The collection of query.
- total
Count number - The total count of query.
- transit
Router stringId - The id of the transaction router.
- grant
Account stringId - The id of the grant account.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- rules
Sequence[Get
Grant Rules Rule] - The collection of query.
- total_
count int - The total count of query.
- transit_
router_ strid - The id of the transaction router.
- grant_
account_ strid - The id of the grant account.
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- rules List<Property Map>
- The collection of query.
- total
Count Number - The total count of query.
- transit
Router StringId - The id of the transaction router.
- grant
Account StringId - The id of the grant account.
- output
File String
Supporting Types
GetGrantRulesRule
- Creation
Time string - The creation time of the rule.
- Description string
- The description of the rule.
- Grant
Account stringId - The id of the grant account.
- Status string
- The status of the rule.
- Transit
Router stringId - The id of the transit router.
- Update
Time string - The update time of the rule.
- Creation
Time string - The creation time of the rule.
- Description string
- The description of the rule.
- Grant
Account stringId - The id of the grant account.
- Status string
- The status of the rule.
- Transit
Router stringId - The id of the transit router.
- Update
Time string - The update time of the rule.
- creation
Time String - The creation time of the rule.
- description String
- The description of the rule.
- grant
Account StringId - The id of the grant account.
- status String
- The status of the rule.
- transit
Router StringId - The id of the transit router.
- update
Time String - The update time of the rule.
- creation
Time string - The creation time of the rule.
- description string
- The description of the rule.
- grant
Account stringId - The id of the grant account.
- status string
- The status of the rule.
- transit
Router stringId - The id of the transit router.
- update
Time string - The update time of the rule.
- creation_
time str - The creation time of the rule.
- description str
- The description of the rule.
- grant_
account_ strid - The id of the grant account.
- status str
- The status of the rule.
- transit_
router_ strid - The id of the transit router.
- update_
time str - The update time of the rule.
- creation
Time String - The creation time of the rule.
- description String
- The description of the rule.
- grant
Account StringId - The id of the grant account.
- status String
- The status of the rule.
- transit
Router StringId - The id of the transit router.
- update
Time String - The update time of the rule.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
