1. Packages
  2. Volcengine
  3. API Docs
  4. transit_router
  5. GrantRules
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.transit_router.GrantRules

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of transit router grant rules

    Example Usage

    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 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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.transit_router.grant_rules(transit_router_id="tr-2bzy39uy6u3282dx0efxiqyq0")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.transit_router.GrantRules({
        transitRouterId: "tr-2bzy39uy6u3282dx0efxiqyq0",
    });
    
    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) GrantRulesResultOutput
    public 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:transit_router:GrantRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TransitRouterId 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 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 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 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 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 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 string
    The creation time of the rule.
    Description string
    The description of the rule.
    GrantAccountId string
    The id of the grant account.
    Status string
    The status of the rule.
    TransitRouterId string
    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.
    GrantAccountId string
    The id of the grant account.
    Status string
    The status of the rule.
    TransitRouterId string
    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.
    grantAccountId String
    The id of the grant account.
    status String
    The status of the rule.
    transitRouterId String
    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.
    grantAccountId string
    The id of the grant account.
    status string
    The status of the rule.
    transitRouterId string
    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_id str
    The id of the grant account.
    status str
    The status of the rule.
    transit_router_id str
    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.
    grantAccountId String
    The id of the grant account.
    status String
    The status of the rule.
    transitRouterId String
    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 volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine