@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
101 lines (100 loc) • 2.49 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Fetches a Grafana Cloud organization.
*
* * [Official documentation](https://grafana.com/docs/grafana-cloud/)
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#organizations)
*
* Required access policy scopes:
*
* * orgs:read
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const test = grafana.cloud.getOrganization({
* slug: "my-org",
* });
* ```
*/
export declare function getOrganization(args?: GetOrganizationArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
/**
* A collection of arguments for invoking getOrganization.
*/
export interface GetOrganizationArgs {
/**
* The organization ID.
*/
id?: string;
/**
* The organization slug.
*/
slug?: string;
}
/**
* A collection of values returned by getOrganization.
*/
export interface GetOrganizationResult {
/**
* The date and time the organization was created.
*/
readonly createdAt: string;
/**
* The organization ID.
*/
readonly id: string;
/**
* The organization name.
*/
readonly name: string;
/**
* The organization slug.
*/
readonly slug: string;
/**
* The date and time the organization was last updated.
*/
readonly updatedAt: string;
/**
* The organization URL.
*/
readonly url: string;
}
/**
* Fetches a Grafana Cloud organization.
*
* * [Official documentation](https://grafana.com/docs/grafana-cloud/)
* * [API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#organizations)
*
* Required access policy scopes:
*
* * orgs:read
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const test = grafana.cloud.getOrganization({
* slug: "my-org",
* });
* ```
*/
export declare function getOrganizationOutput(args?: GetOrganizationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationResult>;
/**
* A collection of arguments for invoking getOrganization.
*/
export interface GetOrganizationOutputArgs {
/**
* The organization ID.
*/
id?: pulumi.Input<string>;
/**
* The organization slug.
*/
slug?: pulumi.Input<string>;
}