@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
69 lines (68 loc) • 2.88 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Fetches access policies from Grafana Cloud.
*
* * [Official documentation](https://grafana.com/docs/grafana-cloud/security-and-account-management/authentication-and-permissions/access-policies/)
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-access-policies)
*
* Required access policy scopes:
*
* * accesspolicies:read
*/
export declare function getAccessPolicies(args?: GetAccessPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetAccessPoliciesResult>;
/**
* A collection of arguments for invoking getAccessPolicies.
*/
export interface GetAccessPoliciesArgs {
/**
* If set, only access policies with the specified name will be returned. This is faster than filtering in Terraform.
*/
nameFilter?: string;
/**
* If set, only access policies in the specified region will be returned. Otherwise, fetches from all available regions (more resource intensive).
*/
regionFilter?: string;
}
/**
* A collection of values returned by getAccessPolicies.
*/
export interface GetAccessPoliciesResult {
readonly accessPolicies: outputs.cloud.GetAccessPoliciesAccessPolicy[];
/**
* The ID of this datasource. This is an internal identifier used by the provider to track this datasource.
*/
readonly id: string;
/**
* If set, only access policies with the specified name will be returned. This is faster than filtering in Terraform.
*/
readonly nameFilter?: string;
/**
* If set, only access policies in the specified region will be returned. Otherwise, fetches from all available regions (more resource intensive).
*/
readonly regionFilter?: string;
}
/**
* Fetches access policies from Grafana Cloud.
*
* * [Official documentation](https://grafana.com/docs/grafana-cloud/security-and-account-management/authentication-and-permissions/access-policies/)
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-access-policies)
*
* Required access policy scopes:
*
* * accesspolicies:read
*/
export declare function getAccessPoliciesOutput(args?: GetAccessPoliciesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccessPoliciesResult>;
/**
* A collection of arguments for invoking getAccessPolicies.
*/
export interface GetAccessPoliciesOutputArgs {
/**
* If set, only access policies with the specified name will be returned. This is faster than filtering in Terraform.
*/
nameFilter?: pulumi.Input<string>;
/**
* If set, only access policies in the specified region will be returned. Otherwise, fetches from all available regions (more resource intensive).
*/
regionFilter?: pulumi.Input<string>;
}