1. Packages
  2. Grafana Cloud
  3. API Docs
  4. getCloudOrganization
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

grafana.getCloudOrganization

Explore with Pulumi AI

grafana logo
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumi/grafana";
    
    const test = grafana.getCloudOrganization({
        slug: "my-org",
    });
    
    import pulumi
    import pulumi_grafana as grafana
    
    test = grafana.get_cloud_organization(slug="my-org")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := grafana.GetCloudOrganization(ctx, &grafana.GetCloudOrganizationArgs{
    			Slug: pulumi.StringRef("my-org"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumi.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Grafana.GetCloudOrganization.Invoke(new()
        {
            Slug = "my-org",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.GrafanaFunctions;
    import com.pulumi.grafana.inputs.GetCloudOrganizationArgs;
    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 test = GrafanaFunctions.getCloudOrganization(GetCloudOrganizationArgs.builder()
                .slug("my-org")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: grafana:getCloudOrganization
          Arguments:
            slug: my-org
    

    Using getCloudOrganization

    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 getCloudOrganization(args: GetCloudOrganizationArgs, opts?: InvokeOptions): Promise<GetCloudOrganizationResult>
    function getCloudOrganizationOutput(args: GetCloudOrganizationOutputArgs, opts?: InvokeOptions): Output<GetCloudOrganizationResult>
    def get_cloud_organization(id: Optional[str] = None,
                               slug: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetCloudOrganizationResult
    def get_cloud_organization_output(id: Optional[pulumi.Input[str]] = None,
                               slug: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetCloudOrganizationResult]
    func GetCloudOrganization(ctx *Context, args *GetCloudOrganizationArgs, opts ...InvokeOption) (*GetCloudOrganizationResult, error)
    func GetCloudOrganizationOutput(ctx *Context, args *GetCloudOrganizationOutputArgs, opts ...InvokeOption) GetCloudOrganizationResultOutput

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

    public static class GetCloudOrganization 
    {
        public static Task<GetCloudOrganizationResult> InvokeAsync(GetCloudOrganizationArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudOrganizationResult> Invoke(GetCloudOrganizationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudOrganizationResult> getCloudOrganization(GetCloudOrganizationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: grafana:index/getCloudOrganization:getCloudOrganization
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of this resource.
    Slug string
    Id string
    The ID of this resource.
    Slug string
    id String
    The ID of this resource.
    slug String
    id string
    The ID of this resource.
    slug string
    id str
    The ID of this resource.
    slug str
    id String
    The ID of this resource.
    slug String

    getCloudOrganization Result

    The following output properties are available:

    CreatedAt string
    Id string
    The ID of this resource.
    Name string
    Slug string
    UpdatedAt string
    Url string
    CreatedAt string
    Id string
    The ID of this resource.
    Name string
    Slug string
    UpdatedAt string
    Url string
    createdAt String
    id String
    The ID of this resource.
    name String
    slug String
    updatedAt String
    url String
    createdAt string
    id string
    The ID of this resource.
    name string
    slug string
    updatedAt string
    url string
    created_at str
    id str
    The ID of this resource.
    name str
    slug str
    updated_at str
    url str
    createdAt String
    id String
    The ID of this resource.
    name String
    slug String
    updatedAt String
    url 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.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse