Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs
harness.platform.getKubernetesConnector
Explore with Pulumi AI
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.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Identifier string
- Unique identifier of the resource.
- 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.
- 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.
- 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.
- 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.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
getKubernetesConnector Result
The following output properties are available:
- Client
Key List<Lbrlabs.Certs Pulumi Package. Harness. Platform. Outputs. Get Kubernetes Connector Client Key Cert> - Client key and certificate config for the connector.
- 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.
- Inherit
From List<Lbrlabs.Delegates Pulumi Package. Harness. Platform. Outputs. Get Kubernetes Connector Inherit From Delegate> - Credentials are inherited from the delegate.
- Openid
Connects List<Lbrlabs.Pulumi Package. Harness. Platform. Outputs. Get Kubernetes Connector Openid Connect> - OpenID configuration for the connector.
- Service
Accounts List<Lbrlabs.Pulumi Package. Harness. Platform. Outputs. Get Kubernetes Connector Service Account> - Service account for the connector.
- List<string>
- Tags to associate with the resource.
- Username
Passwords List<Lbrlabs.Pulumi Package. Harness. Platform. Outputs. Get Kubernetes Connector Username Password> - Username and password for the connector.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Client
Key []GetCerts Kubernetes Connector Client Key Cert - Client key and certificate config for the connector.
- 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.
- Inherit
From []GetDelegates Kubernetes Connector Inherit From Delegate - Credentials are inherited from the delegate.
- Openid
Connects []GetKubernetes Connector Openid Connect - OpenID configuration for the connector.
- Service
Accounts []GetKubernetes Connector Service Account - Service account for the connector.
- []string
- Tags to associate with the resource.
- Username
Passwords []GetKubernetes Connector Username Password - Username and password for the connector.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- client
Key List<GetCerts Kubernetes Connector Client Key Cert> - Client key and certificate config for the connector.
- 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.
- inherit
From List<GetDelegates Kubernetes Connector Inherit From Delegate> - Credentials are inherited from the delegate.
- openid
Connects List<GetKubernetes Connector Openid Connect> - OpenID configuration for the connector.
- service
Accounts List<GetKubernetes Connector Service Account> - Service account for the connector.
- List<String>
- Tags to associate with the resource.
- username
Passwords List<GetKubernetes Connector Username Password> - Username and password for the connector.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- client
Key GetCerts Kubernetes Connector Client Key Cert[] - Client key and certificate config for the connector.
- 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.
- inherit
From GetDelegates Kubernetes Connector Inherit From Delegate[] - Credentials are inherited from the delegate.
- openid
Connects GetKubernetes Connector Openid Connect[] - OpenID configuration for the connector.
- service
Accounts GetKubernetes Connector Service Account[] - Service account for the connector.
- string[]
- Tags to associate with the resource.
- username
Passwords GetKubernetes Connector Username Password[] - Username and password for the connector.
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- client_
key_ Sequence[Getcerts Kubernetes Connector Client Key Cert] - 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_ Sequence[Getdelegates Kubernetes Connector Inherit From Delegate] - Credentials are inherited from the delegate.
- openid_
connects Sequence[GetKubernetes Connector Openid Connect] - OpenID configuration for the connector.
- service_
accounts Sequence[GetKubernetes Connector Service Account] - Service account for the connector.
- Sequence[str]
- Tags to associate with the resource.
- username_
passwords Sequence[GetKubernetes Connector Username Password] - 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.
- client
Key List<Property Map>Certs - Client key and certificate config for the connector.
- 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.
- inherit
From List<Property Map>Delegates - Credentials are inherited from the delegate.
- openid
Connects List<Property Map> - OpenID configuration for the connector.
- service
Accounts List<Property Map> - Service account for the connector.
- List<String>
- Tags to associate with the resource.
- username
Passwords List<Property Map> - Username and password for the connector.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
Supporting Types
GetKubernetesConnectorClientKeyCert
- Ca
Cert stringRef - Client
Cert stringRef - Client
Key stringAlgorithm - Client
Key stringPassphrase Ref - Client
Key stringRef - Master
Url string
- Ca
Cert stringRef - Client
Cert stringRef - Client
Key stringAlgorithm - Client
Key stringPassphrase Ref - Client
Key stringRef - Master
Url string
- ca
Cert StringRef - client
Cert StringRef - client
Key StringAlgorithm - client
Key StringPassphrase Ref - client
Key StringRef - master
Url String
- ca
Cert stringRef - client
Cert stringRef - client
Key stringAlgorithm - client
Key stringPassphrase Ref - client
Key stringRef - master
Url string
- ca_
cert_ strref - client_
cert_ strref - client_
key_ stralgorithm - client_
key_ strpassphrase_ ref - client_
key_ strref - master_
url str
- ca
Cert StringRef - client
Cert StringRef - client
Key StringAlgorithm - client
Key StringPassphrase Ref - client
Key StringRef - master
Url String
GetKubernetesConnectorInheritFromDelegate
- Delegate
Selectors List<string> - Selectors to use for the delegate.
- Delegate
Selectors []string - Selectors to use for the delegate.
- delegate
Selectors List<String> - Selectors to use for the delegate.
- delegate
Selectors string[] - Selectors to use for the delegate.
- delegate_
selectors Sequence[str] - Selectors to use for the delegate.
- delegate
Selectors List<String> - Selectors to use for the delegate.
GetKubernetesConnectorOpenidConnect
- Client
Id stringRef - Issuer
Url string - Master
Url string - Password
Ref string - Scopes List<string>
- Secret
Ref string - Username string
- Username
Ref string
- Client
Id stringRef - Issuer
Url string - Master
Url string - Password
Ref string - Scopes []string
- Secret
Ref string - Username string
- Username
Ref string
- client
Id StringRef - issuer
Url String - master
Url String - password
Ref String - scopes List<String>
- secret
Ref String - username String
- username
Ref String
- client
Id stringRef - issuer
Url string - master
Url string - password
Ref string - scopes string[]
- secret
Ref string - username string
- username
Ref string
- client_
id_ strref - issuer_
url str - master_
url str - password_
ref str - scopes Sequence[str]
- secret_
ref str - username str
- username_
ref str
- client
Id StringRef - issuer
Url String - master
Url String - password
Ref String - scopes List<String>
- secret
Ref String - username String
- username
Ref String
GetKubernetesConnectorServiceAccount
- Master
Url string - Service
Account stringToken Ref
- Master
Url string - Service
Account stringToken Ref
- master
Url String - service
Account StringToken Ref
- master
Url string - service
Account stringToken Ref
- master
Url String - service
Account StringToken Ref
GetKubernetesConnectorUsernamePassword
- Master
Url string - Password
Ref string - Username string
- Username
Ref string
- Master
Url string - Password
Ref string - Username string
- Username
Ref string
- master
Url String - password
Ref String - username String
- username
Ref String
- master
Url string - password
Ref string - username string
- username
Ref string
- master_
url str - password_
ref str - username str
- username_
ref str
- master
Url String - password
Ref String - username String
- username
Ref String
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.