harness.platform.getPrometheusConnector
Datasource for looking up a Prometheus connector.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var example = Harness.Platform.GetPrometheusConnector.Invoke(new()
{
Identifier = "identifier",
});
});
package main
import (
"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err = platform.LookupPrometheusConnector(ctx, &platform.LookupPrometheusConnectorArgs{
Identifier: pulumi.StringRef("identifier"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetPrometheusConnectorArgs;
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 example = PlatformFunctions.getPrometheusConnector(GetPrometheusConnectorArgs.builder()
.identifier("identifier")
.build());
}
}
import pulumi
import pulumi_harness as harness
example = harness.platform.get_prometheus_connector(identifier="identifier")
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = pulumi.output(harness.platform.getPrometheusConnector({
identifier: "identifier",
}));
variables:
example:
fn::invoke:
Function: harness:platform:getPrometheusConnector
Arguments:
identifier: identifier
Using getPrometheusConnector
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 getPrometheusConnector(args: GetPrometheusConnectorArgs, opts?: InvokeOptions): Promise<GetPrometheusConnectorResult>
function getPrometheusConnectorOutput(args: GetPrometheusConnectorOutputArgs, opts?: InvokeOptions): Output<GetPrometheusConnectorResult>
def get_prometheus_connector(identifier: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrometheusConnectorResult
def get_prometheus_connector_output(identifier: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrometheusConnectorResult]
func LookupPrometheusConnector(ctx *Context, args *LookupPrometheusConnectorArgs, opts ...InvokeOption) (*LookupPrometheusConnectorResult, error)
func LookupPrometheusConnectorOutput(ctx *Context, args *LookupPrometheusConnectorOutputArgs, opts ...InvokeOption) LookupPrometheusConnectorResultOutput
> Note: This function is named LookupPrometheusConnector
in the Go SDK.
public static class GetPrometheusConnector
{
public static Task<GetPrometheusConnectorResult> InvokeAsync(GetPrometheusConnectorArgs args, InvokeOptions? opts = null)
public static Output<GetPrometheusConnectorResult> Invoke(GetPrometheusConnectorInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPrometheusConnectorResult> getPrometheusConnector(GetPrometheusConnectorArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:platform/getPrometheusConnector:getPrometheusConnector
arguments:
# arguments dictionary
The following arguments are supported:
- Identifier string
Unique identifier of the resource.
- Name string
Name of the resource.
- Org
Id string Unique identifier of the Organization.
- Project
Id string Unique identifier of the Project.
- Identifier string
Unique identifier of the resource.
- Name string
Name of the resource.
- Org
Id string Unique identifier of the Organization.
- Project
Id string Unique identifier of the Project.
- identifier String
Unique identifier of the resource.
- name String
Name of the resource.
- org
Id String Unique identifier of the Organization.
- project
Id String Unique identifier of the Project.
- identifier string
Unique identifier of the resource.
- name string
Name of the resource.
- org
Id string Unique identifier of the Organization.
- project
Id string Unique identifier of the Project.
- identifier str
Unique identifier of the resource.
- name str
Name of the resource.
- org_
id str Unique identifier of the Organization.
- project_
id str Unique identifier of the Project.
- identifier String
Unique identifier of the resource.
- name String
Name of the resource.
- org
Id String Unique identifier of the Organization.
- project
Id String Unique identifier of the Project.
getPrometheusConnector Result
The following output properties are available:
- Delegate
Selectors List<string> Connect using only the delegates which have these tags.
- Description string
Description of the resource.
- Headers
List<Lbrlabs.
Pulumi Package. Harness. Platform. Outputs. Get Prometheus Connector Header> Headers.
- Id string
The provider-assigned unique ID for this managed resource.
- Password
Ref string Password reference.
- List<string>
Tags to associate with the resource. Tags should be in the form
name:value
.- Url string
Url of the Prometheus server.
- User
Name string User name.
- Identifier string
Unique identifier of the resource.
- Name string
Name of the resource.
- Org
Id string Unique identifier of the Organization.
- Project
Id string Unique identifier of the Project.
- Delegate
Selectors []string Connect using only the delegates which have these tags.
- Description string
Description of the resource.
- Headers
[]Get
Prometheus Connector Header Headers.
- Id string
The provider-assigned unique ID for this managed resource.
- Password
Ref string Password reference.
- []string
Tags to associate with the resource. Tags should be in the form
name:value
.- Url string
Url of the Prometheus server.
- User
Name string User name.
- Identifier string
Unique identifier of the resource.
- Name string
Name of the resource.
- Org
Id string Unique identifier of the Organization.
- Project
Id string Unique identifier of the Project.
- delegate
Selectors List<String> Connect using only the delegates which have these tags.
- description String
Description of the resource.
- headers
List<Get
Prometheus Connector Header> Headers.
- id String
The provider-assigned unique ID for this managed resource.
- password
Ref String Password reference.
- List<String>
Tags to associate with the resource. Tags should be in the form
name:value
.- url String
Url of the Prometheus server.
- user
Name String User name.
- identifier String
Unique identifier of the resource.
- name String
Name of the resource.
- org
Id String Unique identifier of the Organization.
- project
Id String Unique identifier of the Project.
- delegate
Selectors string[] Connect using only the delegates which have these tags.
- description string
Description of the resource.
- headers
Get
Prometheus Connector Header[] Headers.
- id string
The provider-assigned unique ID for this managed resource.
- password
Ref string Password reference.
- string[]
Tags to associate with the resource. Tags should be in the form
name:value
.- url string
Url of the Prometheus server.
- user
Name string User name.
- identifier string
Unique identifier of the resource.
- name string
Name of the resource.
- org
Id string Unique identifier of the Organization.
- project
Id string Unique identifier of the Project.
- delegate_
selectors Sequence[str] Connect using only the delegates which have these tags.
- description str
Description of the resource.
- headers
Sequence[Get
Prometheus Connector Header] Headers.
- id str
The provider-assigned unique ID for this managed resource.
- password_
ref str Password reference.
- Sequence[str]
Tags to associate with the resource. Tags should be in the form
name:value
.- url str
Url of the Prometheus server.
- user_
name str User name.
- identifier str
Unique identifier of the resource.
- name str
Name of the resource.
- org_
id str Unique identifier of the Organization.
- project_
id str Unique identifier of the Project.
- delegate
Selectors List<String> Connect using only the delegates which have these tags.
- description String
Description of the resource.
- headers List<Property Map>
Headers.
- id String
The provider-assigned unique ID for this managed resource.
- password
Ref String Password reference.
- List<String>
Tags to associate with the resource. Tags should be in the form
name:value
.- url String
Url of the Prometheus server.
- user
Name String User name.
- identifier String
Unique identifier of the resource.
- name String
Name of the resource.
- org
Id String Unique identifier of the Organization.
- project
Id String Unique identifier of the Project.
Supporting Types
GetPrometheusConnectorHeader
- Encrypted
Value stringRef - Key string
- Value string
- Value
Encrypted bool
- Encrypted
Value stringRef - Key string
- Value string
- Value
Encrypted bool
- encrypted
Value StringRef - key String
- value String
- value
Encrypted Boolean
- encrypted
Value stringRef - key string
- value string
- value
Encrypted boolean
- encrypted_
value_ strref - key str
- value str
- value_
encrypted bool
- encrypted
Value StringRef - key String
- value String
- value
Encrypted Boolean
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
harness
Terraform Provider.