1. Packages
  2. Grafana Cloud
  3. API Docs
  4. cloud
  5. getAccessPolicies
Grafana v0.7.1 published on Monday, Nov 25, 2024 by pulumiverse

grafana.cloud.getAccessPolicies

Explore with Pulumi AI

grafana logo
Grafana v0.7.1 published on Monday, Nov 25, 2024 by pulumiverse

    Fetches access policies from Grafana Cloud.

    Required access policy scopes:

    • accesspolicies:read

    Using getAccessPolicies

    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 getAccessPolicies(args: GetAccessPoliciesArgs, opts?: InvokeOptions): Promise<GetAccessPoliciesResult>
    function getAccessPoliciesOutput(args: GetAccessPoliciesOutputArgs, opts?: InvokeOptions): Output<GetAccessPoliciesResult>
    def get_access_policies(name_filter: Optional[str] = None,
                            region_filter: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetAccessPoliciesResult
    def get_access_policies_output(name_filter: Optional[pulumi.Input[str]] = None,
                            region_filter: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetAccessPoliciesResult]
    func GetAccessPolicies(ctx *Context, args *GetAccessPoliciesArgs, opts ...InvokeOption) (*GetAccessPoliciesResult, error)
    func GetAccessPoliciesOutput(ctx *Context, args *GetAccessPoliciesOutputArgs, opts ...InvokeOption) GetAccessPoliciesResultOutput

    > Note: This function is named GetAccessPolicies in the Go SDK.

    public static class GetAccessPolicies 
    {
        public static Task<GetAccessPoliciesResult> InvokeAsync(GetAccessPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetAccessPoliciesResult> Invoke(GetAccessPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccessPoliciesResult> getAccessPolicies(GetAccessPoliciesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: grafana:cloud/getAccessPolicies:getAccessPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getAccessPolicies Result

    The following output properties are available:

    AccessPolicies List<Pulumiverse.Grafana.Cloud.Outputs.GetAccessPoliciesAccessPolicy>
    Id string
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
    NameFilter string
    RegionFilter string
    AccessPolicies []GetAccessPoliciesAccessPolicy
    Id string
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
    NameFilter string
    RegionFilter string
    accessPolicies List<GetAccessPoliciesAccessPolicy>
    id String
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
    nameFilter String
    regionFilter String
    accessPolicies GetAccessPoliciesAccessPolicy[]
    id string
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
    nameFilter string
    regionFilter string
    access_policies Sequence[GetAccessPoliciesAccessPolicy]
    id str
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
    name_filter str
    region_filter str
    accessPolicies List<Property Map>
    id String
    The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
    nameFilter String
    regionFilter String

    Supporting Types

    GetAccessPoliciesAccessPolicy

    DisplayName string
    Id string
    Name string
    Region string
    Status string
    DisplayName string
    Id string
    Name string
    Region string
    Status string
    displayName String
    id String
    name String
    region String
    status String
    displayName string
    id string
    name string
    region string
    status string
    display_name str
    id str
    name str
    region str
    status str
    displayName String
    id String
    name String
    region String
    status String

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.7.1 published on Monday, Nov 25, 2024 by pulumiverse