Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
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",
});
import pulumi
import pulumi_harness as harness
example = harness.platform.get_connector_rancher(identifier="identifier")
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
})
}
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",
});
});
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());
}
}
variables:
example:
fn::invoke:
function: harness:platform:getConnectorRancher
arguments:
identifier: identifier
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>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]func LookupConnectorRancher(ctx *Context, args *LookupConnectorRancherArgs, opts ...InvokeOption) (*LookupConnectorRancherResult, error)
func LookupConnectorRancherOutput(ctx *Context, args *LookupConnectorRancherOutputArgs, opts ...InvokeOption) LookupConnectorRancherResultOutput> 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)
}public static CompletableFuture<GetConnectorRancherResult> getConnectorRancher(GetConnectorRancherArgs args, InvokeOptions options)
public static Output<GetConnectorRancherResult> getConnectorRancher(GetConnectorRancherArgs args, InvokeOptions options)
fn::invoke:
function: harness:platform/getConnectorRancher:getConnectorRancher
arguments:
# arguments dictionaryThe following arguments are supported:
- Identifier string
- Unique identifier of the resource.
- Bearer
Token GetConnector Rancher Bearer Token - URL and bearer token for the rancher cluster.
- 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.
- Bearer
Token GetConnector Rancher Bearer Token - URL and bearer token for the rancher cluster.
- 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.
- bearer
Token GetConnector Rancher Bearer Token - URL and bearer token for the rancher cluster.
- 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.
- bearer
Token GetConnector Rancher Bearer Token - URL and bearer token for the rancher cluster.
- 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.
- bearer_
token GetConnector Rancher Bearer Token - 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 String
- Unique identifier of the resource.
- bearer
Token Property Map - URL and bearer token for the rancher cluster.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
getConnectorRancher Result
The following output properties are available:
- Delegate
Selectors 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.
- List<string>
- Tags to associate with the resource.
- Bearer
Token GetConnector Rancher Bearer Token - URL and bearer token for the rancher cluster.
- 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 - 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.
- []string
- Tags to associate with the resource.
- Bearer
Token GetConnector Rancher Bearer Token - URL and bearer token for the rancher cluster.
- 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> - 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.
- List<String>
- Tags to associate with the resource.
- bearer
Token GetConnector Rancher Bearer Token - URL and bearer token for the rancher cluster.
- 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[] - 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.
- string[]
- Tags to associate with the resource.
- bearer
Token GetConnector Rancher Bearer Token - URL and bearer token for the rancher cluster.
- 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] - 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.
- Sequence[str]
- Tags to associate with the resource.
- bearer_
token GetConnector Rancher Bearer Token - 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.
- delegate
Selectors 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.
- List<String>
- Tags to associate with the resource.
- bearer
Token Property Map - URL and bearer token for the rancher cluster.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
Supporting Types
GetConnectorRancherBearerToken
- Password
Ref 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}.
- Rancher
Url string - The URL of the Rancher cluster.
- Password
Ref 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}.
- Rancher
Url string - The URL of the Rancher cluster.
- password
Ref 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}.
- rancher
Url String - The URL of the Rancher cluster.
- password
Ref 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}.
- rancher
Url string - The URL of the Rancher cluster.
- password_
ref 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 str - The URL of the Rancher cluster.
- password
Ref 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}.
- rancher
Url 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
harnessTerraform Provider.
Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
