1. Packages
  2. Grafana Cloud
  3. API Docs
  4. getDataSource
Grafana v0.5.0 published on Thursday, May 30, 2024 by pulumiverse

grafana.getDataSource

Explore with Pulumi AI

grafana logo
Grafana v0.5.0 published on Thursday, May 30, 2024 by pulumiverse

    Using getDataSource

    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 getDataSource(args: GetDataSourceArgs, opts?: InvokeOptions): Promise<GetDataSourceResult>
    function getDataSourceOutput(args: GetDataSourceOutputArgs, opts?: InvokeOptions): Output<GetDataSourceResult>
    def get_data_source(id: Optional[str] = None,
                        name: Optional[str] = None,
                        org_id: Optional[str] = None,
                        uid: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDataSourceResult
    def get_data_source_output(id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        org_id: Optional[pulumi.Input[str]] = None,
                        uid: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDataSourceResult]
    func LookupDataSource(ctx *Context, args *LookupDataSourceArgs, opts ...InvokeOption) (*LookupDataSourceResult, error)
    func LookupDataSourceOutput(ctx *Context, args *LookupDataSourceOutputArgs, opts ...InvokeOption) LookupDataSourceResultOutput

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

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

    The following arguments are supported:

    Id string

    Deprecated: Use uid instead of id

    Name string
    OrgId string
    Uid string
    Id string

    Deprecated: Use uid instead of id

    Name string
    OrgId string
    Uid string
    id String

    Deprecated: Use uid instead of id

    name String
    orgId String
    uid String
    id string

    Deprecated: Use uid instead of id

    name string
    orgId string
    uid string
    id str

    Deprecated: Use uid instead of id

    name str
    org_id str
    uid str
    id String

    Deprecated: Use uid instead of id

    name String
    orgId String
    uid String

    getDataSource Result

    The following output properties are available:

    AccessMode string
    BasicAuthEnabled bool
    BasicAuthUsername string
    DatabaseName string
    Id string

    Deprecated: Use uid instead of id

    IsDefault bool
    JsonDataEncoded string
    Name string
    Type string
    Uid string
    Url string
    Username string
    OrgId string
    AccessMode string
    BasicAuthEnabled bool
    BasicAuthUsername string
    DatabaseName string
    Id string

    Deprecated: Use uid instead of id

    IsDefault bool
    JsonDataEncoded string
    Name string
    Type string
    Uid string
    Url string
    Username string
    OrgId string
    accessMode String
    basicAuthEnabled Boolean
    basicAuthUsername String
    databaseName String
    id String

    Deprecated: Use uid instead of id

    isDefault Boolean
    jsonDataEncoded String
    name String
    type String
    uid String
    url String
    username String
    orgId String
    accessMode string
    basicAuthEnabled boolean
    basicAuthUsername string
    databaseName string
    id string

    Deprecated: Use uid instead of id

    isDefault boolean
    jsonDataEncoded string
    name string
    type string
    uid string
    url string
    username string
    orgId string
    access_mode str
    basic_auth_enabled bool
    basic_auth_username str
    database_name str
    id str

    Deprecated: Use uid instead of id

    is_default bool
    json_data_encoded str
    name str
    type str
    uid str
    url str
    username str
    org_id str
    accessMode String
    basicAuthEnabled Boolean
    basicAuthUsername String
    databaseName String
    id String

    Deprecated: Use uid instead of id

    isDefault Boolean
    jsonDataEncoded String
    name String
    type String
    uid String
    url String
    username String
    orgId 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.0 published on Thursday, May 30, 2024 by pulumiverse