1. Packages
  2. Volcengine
  3. API Docs
  4. transit_router
  5. GrantRules
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.transit_router.GrantRules

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 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.GrantRules({
    transitRouterId: "tr-2bzy39uy6u3282dx0efxiqyq0",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.transit_router.grant_rules(transit_router_id="tr-2bzy39uy6u3282dx0efxiqyq0")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  foo:
    fn::invoke:
      Function: volcengine:transit_router:GrantRules
      Arguments:
        transitRouterId: tr-2bzy39uy6u3282dx0efxiqyq0
Copy

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>
Copy
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]
Copy
func GrantRules(ctx *Context, args *GrantRulesArgs, opts ...InvokeOption) (*GrantRulesResult, error)
func GrantRulesOutput(ctx *Context, args *GrantRulesOutputArgs, opts ...InvokeOption) GrantRulesResultOutput
Copy
public static class GrantRules 
{
    public static Task<GrantRulesResult> InvokeAsync(GrantRulesArgs args, InvokeOptions? opts = null)
    public static Output<GrantRulesResult> Invoke(GrantRulesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GrantRulesResult> grantRules(GrantRulesArgs args, InvokeOptions options)
public static Output<GrantRulesResult> grantRules(GrantRulesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:transit_router:GrantRules
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TransitRouterId This property is required. string
The id of the transit router.
GrantAccountId string
The id of the grant account.
OutputFile string
File name where to save data source results.
TransitRouterId This property is required. string
The id of the transit router.
GrantAccountId string
The id of the grant account.
OutputFile string
File name where to save data source results.
transitRouterId This property is required. String
The id of the transit router.
grantAccountId String
The id of the grant account.
outputFile String
File name where to save data source results.
transitRouterId This property is required. string
The id of the transit router.
grantAccountId string
The id of the grant account.
outputFile string
File name where to save data source results.
transit_router_id This property is required. str
The id of the transit router.
grant_account_id str
The id of the grant account.
output_file str
File name where to save data source results.
transitRouterId This property is required. String
The id of the transit router.
grantAccountId String
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<GrantRulesRule>
The collection of query.
TotalCount int
The total count of query.
TransitRouterId string
The id of the transaction router.
GrantAccountId string
The id of the grant account.
OutputFile string
Id string
The provider-assigned unique ID for this managed resource.
Rules []GrantRulesRule
The collection of query.
TotalCount int
The total count of query.
TransitRouterId string
The id of the transaction router.
GrantAccountId string
The id of the grant account.
OutputFile string
id String
The provider-assigned unique ID for this managed resource.
rules List<GrantRulesRule>
The collection of query.
totalCount Integer
The total count of query.
transitRouterId String
The id of the transaction router.
grantAccountId String
The id of the grant account.
outputFile String
id string
The provider-assigned unique ID for this managed resource.
rules GrantRulesRule[]
The collection of query.
totalCount number
The total count of query.
transitRouterId string
The id of the transaction router.
grantAccountId string
The id of the grant account.
outputFile string
id str
The provider-assigned unique ID for this managed resource.
rules Sequence[GrantRulesRule]
The collection of query.
total_count int
The total count of query.
transit_router_id str
The id of the transaction router.
grant_account_id str
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.
transitRouterId String
The id of the transaction router.
grantAccountId String
The id of the grant account.
outputFile String

Supporting Types

GrantRulesRule

CreationTime This property is required. string
The creation time of the rule.
Description This property is required. string
The description of the rule.
GrantAccountId This property is required. string
The id of the grant account.
Status This property is required. string
The status of the rule.
TransitRouterId This property is required. string
The id of the transit router.
UpdateTime This property is required. string
The update time of the rule.
CreationTime This property is required. string
The creation time of the rule.
Description This property is required. string
The description of the rule.
GrantAccountId This property is required. string
The id of the grant account.
Status This property is required. string
The status of the rule.
TransitRouterId This property is required. string
The id of the transit router.
UpdateTime This property is required. string
The update time of the rule.
creationTime This property is required. String
The creation time of the rule.
description This property is required. String
The description of the rule.
grantAccountId This property is required. String
The id of the grant account.
status This property is required. String
The status of the rule.
transitRouterId This property is required. String
The id of the transit router.
updateTime This property is required. String
The update time of the rule.
creationTime This property is required. string
The creation time of the rule.
description This property is required. string
The description of the rule.
grantAccountId This property is required. string
The id of the grant account.
status This property is required. string
The status of the rule.
transitRouterId This property is required. string
The id of the transit router.
updateTime This property is required. string
The update time of the rule.
creation_time This property is required. str
The creation time of the rule.
description This property is required. str
The description of the rule.
grant_account_id This property is required. str
The id of the grant account.
status This property is required. str
The status of the rule.
transit_router_id This property is required. str
The id of the transit router.
update_time This property is required. str
The update time of the rule.
creationTime This property is required. String
The creation time of the rule.
description This property is required. String
The description of the rule.
grantAccountId This property is required. String
The id of the grant account.
status This property is required. String
The status of the rule.
transitRouterId This property is required. String
The id of the transit router.
updateTime This property is required. 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 volcengine Terraform Provider.
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine