1. Registry
  2. Packages
  3. Harness Provider
  4. API Docs
  5. platform
  6. getConnectorOpenaiModel
Viewing docs for Harness v0.17.6
published on Saturday, Oct 31, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.17.6
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 dictionary
    data "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.
    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.
    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.
    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.

    getConnectorOpenaiModel Result

    The following output properties are available:

    Auths List<GetConnectorOpenaiModelAuth>
    The authentication configuration for the OpenAI connector.
    DelegateSelectors List<string>
    Tags to filter delegates for connection.
    Description string
    Description of the resource.
    ExecuteOnDelegate bool
    Execute on delegate or not.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Unique identifier of the resource.
    IgnoreTestConnection bool
    Ignore test connection when creating or updating the connector.
    Model string
    The OpenAI model to use.
    Tags List<string>
    Tags to associate with the resource.
    Url string
    URL of the OpenAI API endpoint.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Auths []GetConnectorOpenaiModelAuth
    The authentication configuration for the OpenAI connector.
    DelegateSelectors []string
    Tags to filter delegates for connection.
    Description string
    Description of the resource.
    ExecuteOnDelegate bool
    Execute on delegate or not.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Unique identifier of the resource.
    IgnoreTestConnection bool
    Ignore test connection when creating or updating the connector.
    Model string
    The OpenAI model to use.
    Tags []string
    Tags to associate with the resource.
    Url string
    URL of the OpenAI API endpoint.
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId 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_delegate bool
    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_connection bool
    Ignore test connection when creating or updating the connector.
    model string
    The OpenAI model to use.
    tags 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<GetConnectorOpenaiModelAuth>
    The authentication configuration for the OpenAI connector.
    delegateSelectors List<String>
    Tags to filter delegates for connection.
    description String
    Description of the resource.
    executeOnDelegate Boolean
    Execute on delegate or not.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Unique identifier of the resource.
    ignoreTestConnection Boolean
    Ignore test connection when creating or updating the connector.
    model String
    The OpenAI model to use.
    tags List<String>
    Tags to associate with the resource.
    url String
    URL of the OpenAI API endpoint.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    auths GetConnectorOpenaiModelAuth[]
    The authentication configuration for the OpenAI connector.
    delegateSelectors string[]
    Tags to filter delegates for connection.
    description string
    Description of the resource.
    executeOnDelegate boolean
    Execute on delegate or not.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Unique identifier of the resource.
    ignoreTestConnection boolean
    Ignore test connection when creating or updating the connector.
    model string
    The OpenAI model to use.
    tags string[]
    Tags to associate with the resource.
    url string
    URL of the OpenAI API endpoint.
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    auths Sequence[GetConnectorOpenaiModelAuth]
    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_delegate bool
    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_connection bool
    Ignore test connection when creating or updating the connector.
    model str
    The OpenAI model to use.
    tags 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.
    delegateSelectors List<String>
    Tags to filter delegates for connection.
    description String
    Description of the resource.
    executeOnDelegate Boolean
    Execute on delegate or not.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Unique identifier of the resource.
    ignoreTestConnection Boolean
    Ignore test connection when creating or updating the connector.
    model String
    The OpenAI model to use.
    tags List<String>
    Tags to associate with the resource.
    url String
    URL of the OpenAI API endpoint.
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.

    Supporting Types

    GetConnectorOpenaiModelAuth

    AuthType string
    Authentication type for the OpenAI connector.
    Tokens List<GetConnectorOpenaiModelAuthToken>
    Authenticate using an OpenAI API token.
    Vertices List<GetConnectorOpenaiModelAuthVertex>
    Authenticate using Google Vertex AI credentials.
    AuthType string
    Authentication type for the OpenAI connector.
    Tokens []GetConnectorOpenaiModelAuthToken
    Authenticate using an OpenAI API token.
    Vertices []GetConnectorOpenaiModelAuthVertex
    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.
    authType String
    Authentication type for the OpenAI connector.
    tokens List<GetConnectorOpenaiModelAuthToken>
    Authenticate using an OpenAI API token.
    vertices List<GetConnectorOpenaiModelAuthVertex>
    Authenticate using Google Vertex AI credentials.
    authType string
    Authentication type for the OpenAI connector.
    tokens GetConnectorOpenaiModelAuthToken[]
    Authenticate using an OpenAI API token.
    vertices GetConnectorOpenaiModelAuthVertex[]
    Authenticate using Google Vertex AI credentials.
    auth_type str
    Authentication type for the OpenAI connector.
    tokens Sequence[GetConnectorOpenaiModelAuthToken]
    Authenticate using an OpenAI API token.
    vertices Sequence[GetConnectorOpenaiModelAuthVertex]
    Authenticate using Google Vertex AI credentials.
    authType 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

    TokenRef string
    Reference to a secret containing the OpenAI API token.
    TokenRef string
    Reference to a secret containing the OpenAI API token.
    token_ref string
    Reference to a secret containing the OpenAI API token.
    tokenRef String
    Reference to a secret containing the OpenAI API token.
    tokenRef string
    Reference to a secret containing the OpenAI API token.
    token_ref str
    Reference to a secret containing the OpenAI API token.
    tokenRef String
    Reference to a secret containing the OpenAI API token.

    GetConnectorOpenaiModelAuthVertex

    ProjectId string
    GCP project ID.
    Region string
    GCP region for the Vertex AI endpoint.
    ServiceAccountKeyRef string
    Reference to a secret containing the GCP service account key.
    ProjectId string
    GCP project ID.
    Region string
    GCP region for the Vertex AI endpoint.
    ServiceAccountKeyRef string
    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_key_ref string
    Reference to a secret containing the GCP service account key.
    projectId String
    GCP project ID.
    region String
    GCP region for the Vertex AI endpoint.
    serviceAccountKeyRef String
    Reference to a secret containing the GCP service account key.
    projectId string
    GCP project ID.
    region string
    GCP region for the Vertex AI endpoint.
    serviceAccountKeyRef string
    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_key_ref str
    Reference to a secret containing the GCP service account key.
    projectId String
    GCP project ID.
    region String
    GCP region for the Vertex AI endpoint.
    serviceAccountKeyRef String
    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 harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.17.6
    published on Saturday, Oct 31, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial