Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.transit_router.GrantRules
Explore with Pulumi AI
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.GrantRules({
    transitRouterId: "tr-2bzy39uy6u3282dx0efxiqyq0",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.transit_router.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.GrantRules(ctx, &transit_router.GrantRulesArgs{
			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.GrantRules.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.GrantRulesArgs;
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.GrantRules(GrantRulesArgs.builder()
            .transitRouterId("tr-2bzy39uy6u3282dx0efxiqyq0")
            .build());
    }
}
variables:
  foo:
    fn::invoke:
      Function: volcengine:transit_router:GrantRules
      Arguments:
        transitRouterId: tr-2bzy39uy6u3282dx0efxiqyq0
Using GrantRules
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 grantRules(args: GrantRulesArgs, opts?: InvokeOptions): Promise<GrantRulesResult>
function grantRulesOutput(args: GrantRulesOutputArgs, opts?: InvokeOptions): Output<GrantRulesResult>def grant_rules(grant_account_id: Optional[str] = None,
                output_file: Optional[str] = None,
                transit_router_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GrantRulesResult
def 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[GrantRulesResult]func GrantRules(ctx *Context, args *GrantRulesArgs, opts ...InvokeOption) (*GrantRulesResult, error)
func GrantRulesOutput(ctx *Context, args *GrantRulesOutputArgs, opts ...InvokeOption) GrantRulesResultOutputpublic static class GrantRules 
{
    public static Task<GrantRulesResult> InvokeAsync(GrantRulesArgs args, InvokeOptions? opts = null)
    public static Output<GrantRulesResult> Invoke(GrantRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GrantRulesResult> grantRules(GrantRulesArgs args, InvokeOptions options)
public static Output<GrantRulesResult> grantRules(GrantRulesArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:transit_router:GrantRules
  arguments:
    # arguments dictionaryThe following arguments are supported:
- TransitRouter stringId 
- The id of the transit router.
- GrantAccount stringId 
- The id of the grant account.
- OutputFile string
- File name where to save data source results.
- TransitRouter stringId 
- The id of the transit router.
- GrantAccount stringId 
- The id of the grant account.
- OutputFile string
- File name where to save data source results.
- transitRouter StringId 
- The id of the transit router.
- grantAccount StringId 
- The id of the grant account.
- outputFile String
- File name where to save data source results.
- transitRouter stringId 
- The id of the transit router.
- grantAccount stringId 
- The id of the grant account.
- outputFile 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.
- transitRouter StringId 
- The id of the transit router.
- grantAccount StringId 
- The id of the grant account.
- outputFile String
- File name where to save data source results.
GrantRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
List<GrantRules Rule> 
- The collection of query.
- TotalCount int
- The total count of query.
- TransitRouter stringId 
- The id of the transaction router.
- GrantAccount stringId 
- The id of the grant account.
- OutputFile string
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
[]GrantRules Rule 
- The collection of query.
- TotalCount int
- The total count of query.
- TransitRouter stringId 
- The id of the transaction router.
- GrantAccount stringId 
- The id of the grant account.
- OutputFile string
- id String
- The provider-assigned unique ID for this managed resource.
- rules
List<GrantRules Rule> 
- The collection of query.
- totalCount Integer
- The total count of query.
- transitRouter StringId 
- The id of the transaction router.
- grantAccount StringId 
- The id of the grant account.
- outputFile String
- id string
- The provider-assigned unique ID for this managed resource.
- rules
GrantRules Rule[] 
- The collection of query.
- totalCount number
- The total count of query.
- transitRouter stringId 
- The id of the transaction router.
- grantAccount stringId 
- The id of the grant account.
- outputFile string
- id str
- The provider-assigned unique ID for this managed resource.
- rules
Sequence[GrantRules 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.
- totalCount Number
- The total count of query.
- transitRouter StringId 
- The id of the transaction router.
- grantAccount StringId 
- The id of the grant account.
- outputFile String
Supporting Types
GrantRulesRule  
- CreationTime string
- The creation time of the rule.
- Description string
- The description of the rule.
- GrantAccount stringId 
- The id of the grant account.
- Status string
- The status of the rule.
- TransitRouter stringId 
- The id of the transit router.
- UpdateTime string
- The update time of the rule.
- CreationTime string
- The creation time of the rule.
- Description string
- The description of the rule.
- GrantAccount stringId 
- The id of the grant account.
- Status string
- The status of the rule.
- TransitRouter stringId 
- The id of the transit router.
- UpdateTime string
- The update time of the rule.
- creationTime String
- The creation time of the rule.
- description String
- The description of the rule.
- grantAccount StringId 
- The id of the grant account.
- status String
- The status of the rule.
- transitRouter StringId 
- The id of the transit router.
- updateTime String
- The update time of the rule.
- creationTime string
- The creation time of the rule.
- description string
- The description of the rule.
- grantAccount stringId 
- The id of the grant account.
- status string
- The status of the rule.
- transitRouter stringId 
- The id of the transit router.
- updateTime 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.
- creationTime String
- The creation time of the rule.
- description String
- The description of the rule.
- grantAccount StringId 
- The id of the grant account.
- status String
- The status of the rule.
- transitRouter StringId 
- The id of the transit router.
- updateTime 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.