1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getConnectorRancher
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

harness.platform.getConnectorRancher

Explore with Pulumi AI

harness logo
Harness v0.4.4 published on Tuesday, Nov 12, 2024 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getConnectorRancher:getConnectorRancher
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Identifier 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 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 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 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 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 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 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 string
    The URL of the Rancher cluster.
    PasswordRef 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 string
    The URL of the Rancher cluster.
    passwordRef 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 String
    The URL of the Rancher cluster.
    passwordRef 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 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.
    passwordRef 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 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.
    harness logo
    Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi