Volcengine v0.0.26 published on Friday, Sep 13, 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
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:
- 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.
GrantRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
List<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
[]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<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
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[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
GrantRulesRule
- 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
volcengine
Terraform Provider.