1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getConnectorRancher
Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi

harness.platform.getConnectorRancher

Explore with Pulumi AI

Data source for looking up a Rancher connector.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";

const example = harness.platform.getConnectorRancher({
    identifier: "identifier",
});
Copy
import pulumi
import pulumi_harness as harness

example = harness.platform.get_connector_rancher(identifier="identifier")
Copy
package main

import (
	"github.com/pulumi/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.LookupConnectorRancher(ctx, &platform.LookupConnectorRancherArgs{
			Identifier: "identifier",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;

return await Deployment.RunAsync(() => 
{
    var example = Harness.Platform.GetConnectorRancher.Invoke(new()
    {
        Identifier = "identifier",
    });

});
Copy
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.GetConnectorRancherArgs;
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.getConnectorRancher(GetConnectorRancherArgs.builder()
            .identifier("identifier")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: harness:platform:getConnectorRancher
      arguments:
        identifier: identifier
Copy

Using getConnectorRancher

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 getConnectorRancher(args: GetConnectorRancherArgs, opts?: InvokeOptions): Promise<GetConnectorRancherResult>
function getConnectorRancherOutput(args: GetConnectorRancherOutputArgs, opts?: InvokeOptions): Output<GetConnectorRancherResult>
Copy
def get_connector_rancher(bearer_token: Optional[GetConnectorRancherBearerToken] = None,
                          identifier: Optional[str] = None,
                          name: Optional[str] = None,
                          org_id: Optional[str] = None,
                          project_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetConnectorRancherResult
def get_connector_rancher_output(bearer_token: Optional[pulumi.Input[GetConnectorRancherBearerTokenArgs]] = None,
                          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[GetConnectorRancherResult]
Copy
func LookupConnectorRancher(ctx *Context, args *LookupConnectorRancherArgs, opts ...InvokeOption) (*LookupConnectorRancherResult, error)
func LookupConnectorRancherOutput(ctx *Context, args *LookupConnectorRancherOutputArgs, opts ...InvokeOption) LookupConnectorRancherResultOutput
Copy

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

public static class GetConnectorRancher 
{
    public static Task<GetConnectorRancherResult> InvokeAsync(GetConnectorRancherArgs args, InvokeOptions? opts = null)
    public static Output<GetConnectorRancherResult> Invoke(GetConnectorRancherInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetConnectorRancherResult> getConnectorRancher(GetConnectorRancherArgs args, InvokeOptions options)
public static Output<GetConnectorRancherResult> getConnectorRancher(GetConnectorRancherArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:platform/getConnectorRancher:getConnectorRancher
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
BearerToken GetConnectorRancherBearerToken
URL and bearer token for the rancher cluster.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
Identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
BearerToken GetConnectorRancherBearerToken
URL and bearer token for the rancher cluster.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the resource.
bearerToken GetConnectorRancherBearerToken
URL and bearer token for the rancher cluster.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
bearerToken GetConnectorRancherBearerToken
URL and bearer token for the rancher cluster.
name string
Name of the resource.
orgId string
Unique identifier of the organization.
projectId string
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
str
Unique identifier of the resource.
bearer_token GetConnectorRancherBearerToken
URL and bearer token for the rancher cluster.
name str
Name of the resource.
org_id str
Unique identifier of the organization.
project_id str
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the resource.
bearerToken Property Map
URL and bearer token for the rancher cluster.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.

getConnectorRancher Result

The following output properties are available:

DelegateSelectors List<string>
Selectors to use for the delegate.
Description string
Description of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Unique identifier of the resource.
Tags List<string>
Tags to associate with the resource.
BearerToken GetConnectorRancherBearerToken
URL and bearer token for the rancher cluster.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
DelegateSelectors []string
Selectors to use for the delegate.
Description string
Description of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Unique identifier of the resource.
Tags []string
Tags to associate with the resource.
BearerToken GetConnectorRancherBearerToken
URL and bearer token for the rancher cluster.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
delegateSelectors List<String>
Selectors to use for the delegate.
description String
Description of the resource.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Unique identifier of the resource.
tags List<String>
Tags to associate with the resource.
bearerToken GetConnectorRancherBearerToken
URL and bearer token for the rancher cluster.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.
delegateSelectors string[]
Selectors to use for the delegate.
description string
Description of the resource.
id string
The provider-assigned unique ID for this managed resource.
identifier string
Unique identifier of the resource.
tags string[]
Tags to associate with the resource.
bearerToken GetConnectorRancherBearerToken
URL and bearer token for the rancher cluster.
name string
Name of the resource.
orgId string
Unique identifier of the organization.
projectId string
Unique identifier of the project.
delegate_selectors Sequence[str]
Selectors to use for the delegate.
description str
Description of the resource.
id str
The provider-assigned unique ID for this managed resource.
identifier str
Unique identifier of the resource.
tags Sequence[str]
Tags to associate with the resource.
bearer_token GetConnectorRancherBearerToken
URL and bearer token for the rancher cluster.
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>
Selectors to use for the delegate.
description String
Description of the resource.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Unique identifier of the resource.
tags List<String>
Tags to associate with the resource.
bearerToken Property Map
URL and bearer token for the rancher cluster.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.

Supporting Types

GetConnectorRancherBearerToken

PasswordRef This property is required. string
Reference to the secret containing the bearer token for the rancher cluster. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
RancherUrl This property is required. string
The URL of the Rancher cluster.
PasswordRef This property is required. string
Reference to the secret containing the bearer token for the rancher cluster. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
RancherUrl This property is required. string
The URL of the Rancher cluster.
passwordRef This property is required. String
Reference to the secret containing the bearer token for the rancher cluster. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
rancherUrl This property is required. String
The URL of the Rancher cluster.
passwordRef This property is required. string
Reference to the secret containing the bearer token for the rancher cluster. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
rancherUrl This property is required. string
The URL of the Rancher cluster.
password_ref This property is required. str
Reference to the secret containing the bearer token for the rancher cluster. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
rancher_url This property is required. str
The URL of the Rancher cluster.
passwordRef This property is required. String
Reference to the secret containing the bearer token for the rancher cluster. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
rancherUrl This property is required. String
The URL of the Rancher cluster.

Package Details

Repository
harness pulumi/pulumi-harness
License
Apache-2.0
Notes
This Pulumi package is based on the harness Terraform Provider.