1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. getKubernetesConnector
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.getKubernetesConnector

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Datasource for looking up a Kubernetes connector.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Harness.Platform.GetKubernetesConnector.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.LookupKubernetesConnector(ctx, &platform.LookupKubernetesConnectorArgs{
    			Identifier: "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.GetKubernetesConnectorArgs;
    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.getKubernetesConnector(GetKubernetesConnectorArgs.builder()
                .identifier("identifier")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.get_kubernetes_connector(identifier="identifier")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = harness.platform.getKubernetesConnector({
        identifier: "identifier",
    });
    
    variables:
      example:
        fn::invoke:
          Function: harness:platform:getKubernetesConnector
          Arguments:
            identifier: identifier
    

    Using getKubernetesConnector

    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 getKubernetesConnector(args: GetKubernetesConnectorArgs, opts?: InvokeOptions): Promise<GetKubernetesConnectorResult>
    function getKubernetesConnectorOutput(args: GetKubernetesConnectorOutputArgs, opts?: InvokeOptions): Output<GetKubernetesConnectorResult>
    def get_kubernetes_connector(identifier: Optional[str] = None,
                                 name: Optional[str] = None,
                                 org_id: Optional[str] = None,
                                 project_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetKubernetesConnectorResult
    def get_kubernetes_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[GetKubernetesConnectorResult]
    func LookupKubernetesConnector(ctx *Context, args *LookupKubernetesConnectorArgs, opts ...InvokeOption) (*LookupKubernetesConnectorResult, error)
    func LookupKubernetesConnectorOutput(ctx *Context, args *LookupKubernetesConnectorOutputArgs, opts ...InvokeOption) LookupKubernetesConnectorResultOutput

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

    public static class GetKubernetesConnector 
    {
        public static Task<GetKubernetesConnectorResult> InvokeAsync(GetKubernetesConnectorArgs args, InvokeOptions? opts = null)
        public static Output<GetKubernetesConnectorResult> Invoke(GetKubernetesConnectorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubernetesConnectorResult> getKubernetesConnector(GetKubernetesConnectorArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getKubernetesConnector:getKubernetesConnector
      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.

    getKubernetesConnector Result

    The following output properties are available:

    ClientKeyCerts List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.GetKubernetesConnectorClientKeyCert>
    Client key and certificate config for the connector.
    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.
    InheritFromDelegates List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.GetKubernetesConnectorInheritFromDelegate>
    Credentials are inherited from the delegate.
    OpenidConnects List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.GetKubernetesConnectorOpenidConnect>
    OpenID configuration for the connector.
    ServiceAccounts List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.GetKubernetesConnectorServiceAccount>
    Service account for the connector.
    Tags List<string>
    Tags to associate with the resource.
    UsernamePasswords List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.GetKubernetesConnectorUsernamePassword>
    Username and password for the connector.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ClientKeyCerts []GetKubernetesConnectorClientKeyCert
    Client key and certificate config for the connector.
    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.
    InheritFromDelegates []GetKubernetesConnectorInheritFromDelegate
    Credentials are inherited from the delegate.
    OpenidConnects []GetKubernetesConnectorOpenidConnect
    OpenID configuration for the connector.
    ServiceAccounts []GetKubernetesConnectorServiceAccount
    Service account for the connector.
    Tags []string
    Tags to associate with the resource.
    UsernamePasswords []GetKubernetesConnectorUsernamePassword
    Username and password for the connector.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    clientKeyCerts List<GetKubernetesConnectorClientKeyCert>
    Client key and certificate config for the connector.
    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.
    inheritFromDelegates List<GetKubernetesConnectorInheritFromDelegate>
    Credentials are inherited from the delegate.
    openidConnects List<GetKubernetesConnectorOpenidConnect>
    OpenID configuration for the connector.
    serviceAccounts List<GetKubernetesConnectorServiceAccount>
    Service account for the connector.
    tags List<String>
    Tags to associate with the resource.
    usernamePasswords List<GetKubernetesConnectorUsernamePassword>
    Username and password for the connector.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    clientKeyCerts GetKubernetesConnectorClientKeyCert[]
    Client key and certificate config for the connector.
    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.
    inheritFromDelegates GetKubernetesConnectorInheritFromDelegate[]
    Credentials are inherited from the delegate.
    openidConnects GetKubernetesConnectorOpenidConnect[]
    OpenID configuration for the connector.
    serviceAccounts GetKubernetesConnectorServiceAccount[]
    Service account for the connector.
    tags string[]
    Tags to associate with the resource.
    usernamePasswords GetKubernetesConnectorUsernamePassword[]
    Username and password for the connector.
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    client_key_certs Sequence[GetKubernetesConnectorClientKeyCert]
    Client key and certificate config for the connector.
    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.
    inherit_from_delegates Sequence[GetKubernetesConnectorInheritFromDelegate]
    Credentials are inherited from the delegate.
    openid_connects Sequence[GetKubernetesConnectorOpenidConnect]
    OpenID configuration for the connector.
    service_accounts Sequence[GetKubernetesConnectorServiceAccount]
    Service account for the connector.
    tags Sequence[str]
    Tags to associate with the resource.
    username_passwords Sequence[GetKubernetesConnectorUsernamePassword]
    Username and password for the connector.
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    clientKeyCerts List<Property Map>
    Client key and certificate config for the connector.
    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.
    inheritFromDelegates List<Property Map>
    Credentials are inherited from the delegate.
    openidConnects List<Property Map>
    OpenID configuration for the connector.
    serviceAccounts List<Property Map>
    Service account for the connector.
    tags List<String>
    Tags to associate with the resource.
    usernamePasswords List<Property Map>
    Username and password for the connector.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.

    Supporting Types

    GetKubernetesConnectorClientKeyCert

    GetKubernetesConnectorInheritFromDelegate

    DelegateSelectors List<string>
    Selectors to use for the delegate.
    DelegateSelectors []string
    Selectors to use for the delegate.
    delegateSelectors List<String>
    Selectors to use for the delegate.
    delegateSelectors string[]
    Selectors to use for the delegate.
    delegate_selectors Sequence[str]
    Selectors to use for the delegate.
    delegateSelectors List<String>
    Selectors to use for the delegate.

    GetKubernetesConnectorOpenidConnect

    ClientIdRef string
    IssuerUrl string
    MasterUrl string
    PasswordRef string
    Scopes List<string>
    SecretRef string
    Username string
    UsernameRef string
    ClientIdRef string
    IssuerUrl string
    MasterUrl string
    PasswordRef string
    Scopes []string
    SecretRef string
    Username string
    UsernameRef string
    clientIdRef String
    issuerUrl String
    masterUrl String
    passwordRef String
    scopes List<String>
    secretRef String
    username String
    usernameRef String
    clientIdRef string
    issuerUrl string
    masterUrl string
    passwordRef string
    scopes string[]
    secretRef string
    username string
    usernameRef string
    clientIdRef String
    issuerUrl String
    masterUrl String
    passwordRef String
    scopes List<String>
    secretRef String
    username String
    usernameRef String

    GetKubernetesConnectorServiceAccount

    GetKubernetesConnectorUsernamePassword

    MasterUrl string
    PasswordRef string
    Username string
    UsernameRef string
    MasterUrl string
    PasswordRef string
    Username string
    UsernameRef string
    masterUrl String
    passwordRef String
    username String
    usernameRef String
    masterUrl string
    passwordRef string
    username string
    usernameRef string
    masterUrl String
    passwordRef String
    username String
    usernameRef String

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs