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.

OrgId string

Unique identifier of the Organization.

ProjectId string

Unique identifier of the Project.

Identifier string

Unique identifier of the resource.

Name string

Name of the resource.

OrgId string

Unique identifier of the Organization.

ProjectId string

Unique identifier of the Project.

identifier String

Unique identifier of the resource.

name String

Name of the resource.

orgId String

Unique identifier of the Organization.

projectId String

Unique identifier of the Project.

identifier string

Unique identifier of the resource.

name string

Name of the resource.

orgId string

Unique identifier of the Organization.

projectId 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.

orgId String

Unique identifier of the Organization.

projectId String

Unique identifier of the Project.

getPrometheusConnector Result

The following output properties are available:

DelegateSelectors List<string>

Connect using only the delegates which have these tags.

Description string

Description of the resource.

Headers List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.GetPrometheusConnectorHeader>

Headers.

Id string

The provider-assigned unique ID for this managed resource.

PasswordRef string

Password reference.

Tags List<string>

Tags to associate with the resource. Tags should be in the form name:value.

Url string

Url of the Prometheus server.

UserName string

User name.

Identifier string

Unique identifier of the resource.

Name string

Name of the resource.

OrgId string

Unique identifier of the Organization.

ProjectId string

Unique identifier of the Project.

DelegateSelectors []string

Connect using only the delegates which have these tags.

Description string

Description of the resource.

Headers []GetPrometheusConnectorHeader

Headers.

Id string

The provider-assigned unique ID for this managed resource.

PasswordRef string

Password reference.

Tags []string

Tags to associate with the resource. Tags should be in the form name:value.

Url string

Url of the Prometheus server.

UserName string

User name.

Identifier string

Unique identifier of the resource.

Name string

Name of the resource.

OrgId string

Unique identifier of the Organization.

ProjectId string

Unique identifier of the Project.

delegateSelectors List<String>

Connect using only the delegates which have these tags.

description String

Description of the resource.

headers List<GetPrometheusConnectorHeader>

Headers.

id String

The provider-assigned unique ID for this managed resource.

passwordRef String

Password reference.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

url String

Url of the Prometheus server.

userName String

User name.

identifier String

Unique identifier of the resource.

name String

Name of the resource.

orgId String

Unique identifier of the Organization.

projectId String

Unique identifier of the Project.

delegateSelectors string[]

Connect using only the delegates which have these tags.

description string

Description of the resource.

headers GetPrometheusConnectorHeader[]

Headers.

id string

The provider-assigned unique ID for this managed resource.

passwordRef string

Password reference.

tags string[]

Tags to associate with the resource. Tags should be in the form name:value.

url string

Url of the Prometheus server.

userName string

User name.

identifier string

Unique identifier of the resource.

name string

Name of the resource.

orgId string

Unique identifier of the Organization.

projectId 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[GetPrometheusConnectorHeader]

Headers.

id str

The provider-assigned unique ID for this managed resource.

password_ref str

Password reference.

tags 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.

delegateSelectors 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.

passwordRef String

Password reference.

tags List<String>

Tags to associate with the resource. Tags should be in the form name:value.

url String

Url of the Prometheus server.

userName String

User name.

identifier String

Unique identifier of the resource.

name String

Name of the resource.

orgId String

Unique identifier of the Organization.

projectId String

Unique identifier of the Project.

Supporting Types

GetPrometheusConnectorHeader

EncryptedValueRef string
Key string
Value string
ValueEncrypted bool
EncryptedValueRef string
Key string
Value string
ValueEncrypted bool
encryptedValueRef String
key String
value String
valueEncrypted Boolean
encryptedValueRef string
key string
value string
valueEncrypted boolean
encryptedValueRef String
key String
value String
valueEncrypted Boolean

Package Details

Repository
harness lbrlabs/pulumi-harness
License
Apache-2.0
Notes

This Pulumi package is based on the harness Terraform Provider.