Viewing docs for Harness v0.17.6
published on Saturday, Oct 31, 2026 by Pulumi
published on Saturday, Oct 31, 2026 by Pulumi
Viewing docs for Harness v0.17.6
published on Saturday, Oct 31, 2026 by Pulumi
published on Saturday, Oct 31, 2026 by Pulumi
Datasource for looking up an OpenAI Model connector.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = harness.platform.getConnectorOpenaiModel({
identifier: "example_openai_token",
});
import pulumi
import pulumi_harness as harness
example = harness.platform.get_connector_openai_model(identifier="example_openai_token")
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.LookupConnectorOpenaiModel(ctx, &platform.LookupConnectorOpenaiModelArgs{
Identifier: "example_openai_token",
}, 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.GetConnectorOpenaiModel.Invoke(new()
{
Identifier = "example_openai_token",
});
});
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.GetConnectorOpenaiModelArgs;
import java.util.ArrayList;
import java.util.Arrays;
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.getConnectorOpenaiModel(GetConnectorOpenaiModelArgs.builder()
.identifier("example_openai_token")
.build());
}
}
variables:
example:
fn::invoke:
function: harness:platform:getConnectorOpenaiModel
arguments:
identifier: example_openai_token
terraform {
required_providers {
harness = {
source = "pulumi/harness"
}
}
}
data "harness_platform_connector_openai_model" "example" {
identifier = "example_openai_token"
}
Using getConnectorOpenaiModel
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 getConnectorOpenaiModel(args: GetConnectorOpenaiModelArgs, opts?: InvokeOptions): Promise<GetConnectorOpenaiModelResult>
function getConnectorOpenaiModelOutput(args: GetConnectorOpenaiModelOutputArgs, opts?: InvokeOutputOptions): Output<GetConnectorOpenaiModelResult>def get_connector_openai_model(identifier: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectorOpenaiModelResult
def get_connector_openai_model_output(identifier: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
org_id: pulumi.Input[Optional[str]] = None,
project_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetConnectorOpenaiModelResult]func LookupConnectorOpenaiModel(ctx *Context, args *LookupConnectorOpenaiModelArgs, opts ...InvokeOption) (*LookupConnectorOpenaiModelResult, error)
func LookupConnectorOpenaiModelOutput(ctx *Context, args *LookupConnectorOpenaiModelOutputArgs, opts ...InvokeOption) LookupConnectorOpenaiModelResultOutput> Note: This function is named LookupConnectorOpenaiModel in the Go SDK.
public static class GetConnectorOpenaiModel
{
public static Task<GetConnectorOpenaiModelResult> InvokeAsync(GetConnectorOpenaiModelArgs args, InvokeOptions? opts = null)
public static Output<GetConnectorOpenaiModelResult> Invoke(GetConnectorOpenaiModelInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetConnectorOpenaiModelResult> Invoke(GetConnectorOpenaiModelInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetConnectorOpenaiModelResult> getConnectorOpenaiModel(GetConnectorOpenaiModelArgs args, InvokeOptions options)
public static Output<GetConnectorOpenaiModelResult> getConnectorOpenaiModel(GetConnectorOpenaiModelArgs args, InvokeOptions options)
public static Output<GetConnectorOpenaiModelResult> getConnectorOpenaiModel(GetConnectorOpenaiModelArgs args, InvokeOutputOptions options)
fn::invoke:
function: harness:platform/getConnectorOpenaiModel:getConnectorOpenaiModel
arguments:
# arguments dictionarydata "harness_platform_get_connector_openai_model" "name" {
# arguments
}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 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.
getConnectorOpenaiModel Result
The following output properties are available:
- Auths
List<Get
Connector Openai Model Auth> - The authentication configuration for the OpenAI connector.
- Delegate
Selectors List<string> - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Execute
On boolDelegate - Execute on delegate or not.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource.
- Ignore
Test boolConnection - Ignore test connection when creating or updating the connector.
- Model string
- The OpenAI model to use.
- List<string>
- Tags to associate with the resource.
- Url string
- URL of the OpenAI API endpoint.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Auths
[]Get
Connector Openai Model Auth - The authentication configuration for the OpenAI connector.
- Delegate
Selectors []string - Tags to filter delegates for connection.
- Description string
- Description of the resource.
- Execute
On boolDelegate - Execute on delegate or not.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource.
- Ignore
Test boolConnection - Ignore test connection when creating or updating the connector.
- Model string
- The OpenAI model to use.
- []string
- Tags to associate with the resource.
- Url string
- URL of the OpenAI API endpoint.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- auths list(object)
- The authentication configuration for the OpenAI connector.
- delegate_
selectors list(string) - Tags to filter delegates for connection.
- description string
- Description of the resource.
- execute_
on_ booldelegate - Execute on delegate or not.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Unique identifier of the resource.
- ignore_
test_ boolconnection - Ignore test connection when creating or updating the connector.
- model string
- The OpenAI model to use.
- list(string)
- Tags to associate with the resource.
- url string
- URL of the OpenAI API endpoint.
- name string
- Name of the resource.
- org_
id string - Unique identifier of the organization.
- project_
id string - Unique identifier of the project.
- auths
List<Get
Connector Openai Model Auth> - The authentication configuration for the OpenAI connector.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- execute
On BooleanDelegate - Execute on delegate or not.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource.
- ignore
Test BooleanConnection - Ignore test connection when creating or updating the connector.
- model String
- The OpenAI model to use.
- List<String>
- Tags to associate with the resource.
- url String
- URL of the OpenAI API endpoint.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- auths
Get
Connector Openai Model Auth[] - The authentication configuration for the OpenAI connector.
- delegate
Selectors string[] - Tags to filter delegates for connection.
- description string
- Description of the resource.
- execute
On booleanDelegate - Execute on delegate or not.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Unique identifier of the resource.
- ignore
Test booleanConnection - Ignore test connection when creating or updating the connector.
- model string
- The OpenAI model to use.
- string[]
- Tags to associate with the resource.
- url string
- URL of the OpenAI API endpoint.
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- auths
Sequence[Get
Connector Openai Model Auth] - The authentication configuration for the OpenAI connector.
- delegate_
selectors Sequence[str] - Tags to filter delegates for connection.
- description str
- Description of the resource.
- execute_
on_ booldelegate - Execute on delegate or not.
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Unique identifier of the resource.
- ignore_
test_ boolconnection - Ignore test connection when creating or updating the connector.
- model str
- The OpenAI model to use.
- Sequence[str]
- Tags to associate with the resource.
- url str
- URL of the OpenAI API endpoint.
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- auths List<Property Map>
- The authentication configuration for the OpenAI connector.
- delegate
Selectors List<String> - Tags to filter delegates for connection.
- description String
- Description of the resource.
- execute
On BooleanDelegate - Execute on delegate or not.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource.
- ignore
Test BooleanConnection - Ignore test connection when creating or updating the connector.
- model String
- The OpenAI model to use.
- List<String>
- Tags to associate with the resource.
- url String
- URL of the OpenAI API endpoint.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
Supporting Types
GetConnectorOpenaiModelAuth
- Auth
Type string - Authentication type for the OpenAI connector.
- Tokens
List<Get
Connector Openai Model Auth Token> - Authenticate using an OpenAI API token.
- Vertices
List<Get
Connector Openai Model Auth Vertex> - Authenticate using Google Vertex AI credentials.
- Auth
Type string - Authentication type for the OpenAI connector.
- Tokens
[]Get
Connector Openai Model Auth Token - Authenticate using an OpenAI API token.
- Vertices
[]Get
Connector Openai Model Auth Vertex - Authenticate using Google Vertex AI credentials.
- auth_
type string - Authentication type for the OpenAI connector.
- tokens list(object)
- Authenticate using an OpenAI API token.
- vertices list(object)
- Authenticate using Google Vertex AI credentials.
- auth
Type String - Authentication type for the OpenAI connector.
- tokens
List<Get
Connector Openai Model Auth Token> - Authenticate using an OpenAI API token.
- vertices
List<Get
Connector Openai Model Auth Vertex> - Authenticate using Google Vertex AI credentials.
- auth
Type string - Authentication type for the OpenAI connector.
- tokens
Get
Connector Openai Model Auth Token[] - Authenticate using an OpenAI API token.
- vertices
Get
Connector Openai Model Auth Vertex[] - Authenticate using Google Vertex AI credentials.
- auth_
type str - Authentication type for the OpenAI connector.
- tokens
Sequence[Get
Connector Openai Model Auth Token] - Authenticate using an OpenAI API token.
- vertices
Sequence[Get
Connector Openai Model Auth Vertex] - Authenticate using Google Vertex AI credentials.
- auth
Type String - Authentication type for the OpenAI connector.
- tokens List<Property Map>
- Authenticate using an OpenAI API token.
- vertices List<Property Map>
- Authenticate using Google Vertex AI credentials.
GetConnectorOpenaiModelAuthToken
- Token
Ref string - Reference to a secret containing the OpenAI API token.
- Token
Ref string - Reference to a secret containing the OpenAI API token.
- token_
ref string - Reference to a secret containing the OpenAI API token.
- token
Ref String - Reference to a secret containing the OpenAI API token.
- token
Ref string - Reference to a secret containing the OpenAI API token.
- token_
ref str - Reference to a secret containing the OpenAI API token.
- token
Ref String - Reference to a secret containing the OpenAI API token.
GetConnectorOpenaiModelAuthVertex
- Project
Id string - GCP project ID.
- Region string
- GCP region for the Vertex AI endpoint.
- Service
Account stringKey Ref - Reference to a secret containing the GCP service account key.
- Project
Id string - GCP project ID.
- Region string
- GCP region for the Vertex AI endpoint.
- Service
Account stringKey Ref - Reference to a secret containing the GCP service account key.
- project_
id string - GCP project ID.
- region string
- GCP region for the Vertex AI endpoint.
- service_
account_ stringkey_ ref - Reference to a secret containing the GCP service account key.
- project
Id String - GCP project ID.
- region String
- GCP region for the Vertex AI endpoint.
- service
Account StringKey Ref - Reference to a secret containing the GCP service account key.
- project
Id string - GCP project ID.
- region string
- GCP region for the Vertex AI endpoint.
- service
Account stringKey Ref - Reference to a secret containing the GCP service account key.
- project_
id str - GCP project ID.
- region str
- GCP region for the Vertex AI endpoint.
- service_
account_ strkey_ ref - Reference to a secret containing the GCP service account key.
- project
Id String - GCP project ID.
- region String
- GCP region for the Vertex AI endpoint.
- service
Account StringKey Ref - Reference to a secret containing the GCP service account key.
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.17.6
published on Saturday, Oct 31, 2026 by Pulumi
published on Saturday, Oct 31, 2026 by Pulumi