1. Packages
  2. DigitalOcean Provider
  3. API Docs
  4. getGenaiOpenaiApiKey
DigitalOcean v4.51.0 published on Thursday, Aug 14, 2025 by Pulumi

digitalocean.getGenaiOpenaiApiKey

Explore with Pulumi AI

digitalocean logo
DigitalOcean v4.51.0 published on Thursday, Aug 14, 2025 by Pulumi

    Using getGenaiOpenaiApiKey

    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 getGenaiOpenaiApiKey(args: GetGenaiOpenaiApiKeyArgs, opts?: InvokeOptions): Promise<GetGenaiOpenaiApiKeyResult>
    function getGenaiOpenaiApiKeyOutput(args: GetGenaiOpenaiApiKeyOutputArgs, opts?: InvokeOptions): Output<GetGenaiOpenaiApiKeyResult>
    def get_genai_openai_api_key(uuid: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetGenaiOpenaiApiKeyResult
    def get_genai_openai_api_key_output(uuid: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetGenaiOpenaiApiKeyResult]
    func LookupGenaiOpenaiApiKey(ctx *Context, args *LookupGenaiOpenaiApiKeyArgs, opts ...InvokeOption) (*LookupGenaiOpenaiApiKeyResult, error)
    func LookupGenaiOpenaiApiKeyOutput(ctx *Context, args *LookupGenaiOpenaiApiKeyOutputArgs, opts ...InvokeOption) LookupGenaiOpenaiApiKeyResultOutput

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

    public static class GetGenaiOpenaiApiKey 
    {
        public static Task<GetGenaiOpenaiApiKeyResult> InvokeAsync(GetGenaiOpenaiApiKeyArgs args, InvokeOptions? opts = null)
        public static Output<GetGenaiOpenaiApiKeyResult> Invoke(GetGenaiOpenaiApiKeyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGenaiOpenaiApiKeyResult> getGenaiOpenaiApiKey(GetGenaiOpenaiApiKeyArgs args, InvokeOptions options)
    public static Output<GetGenaiOpenaiApiKeyResult> getGenaiOpenaiApiKey(GetGenaiOpenaiApiKeyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: digitalocean:index/getGenaiOpenaiApiKey:getGenaiOpenaiApiKey
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Uuid string
    Uuid string
    uuid String
    uuid string
    uuid str
    uuid String

    getGenaiOpenaiApiKey Result

    The following output properties are available:

    CreatedAt string
    CreatedBy string
    DeletedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Models List<Pulumi.DigitalOcean.Outputs.GetGenaiOpenaiApiKeyModel>
    Name string
    UpdatedAt string
    Uuid string
    CreatedAt string
    CreatedBy string
    DeletedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Models []GetGenaiOpenaiApiKeyModel
    Name string
    UpdatedAt string
    Uuid string
    createdAt String
    createdBy String
    deletedAt String
    id String
    The provider-assigned unique ID for this managed resource.
    models List<GetGenaiOpenaiApiKeyModel>
    name String
    updatedAt String
    uuid String
    createdAt string
    createdBy string
    deletedAt string
    id string
    The provider-assigned unique ID for this managed resource.
    models GetGenaiOpenaiApiKeyModel[]
    name string
    updatedAt string
    uuid string
    created_at str
    created_by str
    deleted_at str
    id str
    The provider-assigned unique ID for this managed resource.
    models Sequence[GetGenaiOpenaiApiKeyModel]
    name str
    updated_at str
    uuid str
    createdAt String
    createdBy String
    deletedAt String
    id String
    The provider-assigned unique ID for this managed resource.
    models List<Property Map>
    name String
    updatedAt String
    uuid String

    Supporting Types

    GetGenaiOpenaiApiKeyModel

    CreatedAt string
    Created At timestamp for the Knowledge Base
    UpdatedAt string
    Timestamp when the Knowledge Base was updated
    Agreements List<Pulumi.DigitalOcean.Inputs.GetGenaiOpenaiApiKeyModelAgreement>
    Agreement information for the model
    InferenceName string
    Inference name of the model
    InferenceVersion string
    Infernce version of the model
    IsFoundational bool
    Indicates if the Model Base is foundational
    Name string
    Name of the Knowledge Base
    ParentUuid string
    Parent UUID of the Model
    Provider string
    Provider of the Model
    UploadComplete bool
    Indicates if the Model upload is complete
    Url string
    URL of the Model
    Usecases List<string>
    List of Usecases for the Model
    Versions List<Pulumi.DigitalOcean.Inputs.GetGenaiOpenaiApiKeyModelVersion>
    URL of the Model
    CreatedAt string
    Created At timestamp for the Knowledge Base
    UpdatedAt string
    Timestamp when the Knowledge Base was updated
    Agreements []GetGenaiOpenaiApiKeyModelAgreement
    Agreement information for the model
    InferenceName string
    Inference name of the model
    InferenceVersion string
    Infernce version of the model
    IsFoundational bool
    Indicates if the Model Base is foundational
    Name string
    Name of the Knowledge Base
    ParentUuid string
    Parent UUID of the Model
    Provider string
    Provider of the Model
    UploadComplete bool
    Indicates if the Model upload is complete
    Url string
    URL of the Model
    Usecases []string
    List of Usecases for the Model
    Versions []GetGenaiOpenaiApiKeyModelVersion
    URL of the Model
    createdAt String
    Created At timestamp for the Knowledge Base
    updatedAt String
    Timestamp when the Knowledge Base was updated
    agreements List<GetGenaiOpenaiApiKeyModelAgreement>
    Agreement information for the model
    inferenceName String
    Inference name of the model
    inferenceVersion String
    Infernce version of the model
    isFoundational Boolean
    Indicates if the Model Base is foundational
    name String
    Name of the Knowledge Base
    parentUuid String
    Parent UUID of the Model
    provider String
    Provider of the Model
    uploadComplete Boolean
    Indicates if the Model upload is complete
    url String
    URL of the Model
    usecases List<String>
    List of Usecases for the Model
    versions List<GetGenaiOpenaiApiKeyModelVersion>
    URL of the Model
    createdAt string
    Created At timestamp for the Knowledge Base
    updatedAt string
    Timestamp when the Knowledge Base was updated
    agreements GetGenaiOpenaiApiKeyModelAgreement[]
    Agreement information for the model
    inferenceName string
    Inference name of the model
    inferenceVersion string
    Infernce version of the model
    isFoundational boolean
    Indicates if the Model Base is foundational
    name string
    Name of the Knowledge Base
    parentUuid string
    Parent UUID of the Model
    provider string
    Provider of the Model
    uploadComplete boolean
    Indicates if the Model upload is complete
    url string
    URL of the Model
    usecases string[]
    List of Usecases for the Model
    versions GetGenaiOpenaiApiKeyModelVersion[]
    URL of the Model
    created_at str
    Created At timestamp for the Knowledge Base
    updated_at str
    Timestamp when the Knowledge Base was updated
    agreements Sequence[GetGenaiOpenaiApiKeyModelAgreement]
    Agreement information for the model
    inference_name str
    Inference name of the model
    inference_version str
    Infernce version of the model
    is_foundational bool
    Indicates if the Model Base is foundational
    name str
    Name of the Knowledge Base
    parent_uuid str
    Parent UUID of the Model
    provider str
    Provider of the Model
    upload_complete bool
    Indicates if the Model upload is complete
    url str
    URL of the Model
    usecases Sequence[str]
    List of Usecases for the Model
    versions Sequence[GetGenaiOpenaiApiKeyModelVersion]
    URL of the Model
    createdAt String
    Created At timestamp for the Knowledge Base
    updatedAt String
    Timestamp when the Knowledge Base was updated
    agreements List<Property Map>
    Agreement information for the model
    inferenceName String
    Inference name of the model
    inferenceVersion String
    Infernce version of the model
    isFoundational Boolean
    Indicates if the Model Base is foundational
    name String
    Name of the Knowledge Base
    parentUuid String
    Parent UUID of the Model
    provider String
    Provider of the Model
    uploadComplete Boolean
    Indicates if the Model upload is complete
    url String
    URL of the Model
    usecases List<String>
    List of Usecases for the Model
    versions List<Property Map>
    URL of the Model

    GetGenaiOpenaiApiKeyModelAgreement

    Description string
    Description of the agreement
    Name string
    Name of the agreement
    Url string
    URL of the agreement
    Uuid string
    UUID of the agreement
    Description string
    Description of the agreement
    Name string
    Name of the agreement
    Url string
    URL of the agreement
    Uuid string
    UUID of the agreement
    description String
    Description of the agreement
    name String
    Name of the agreement
    url String
    URL of the agreement
    uuid String
    UUID of the agreement
    description string
    Description of the agreement
    name string
    Name of the agreement
    url string
    URL of the agreement
    uuid string
    UUID of the agreement
    description str
    Description of the agreement
    name str
    Name of the agreement
    url str
    URL of the agreement
    uuid str
    UUID of the agreement
    description String
    Description of the agreement
    name String
    Name of the agreement
    url String
    URL of the agreement
    uuid String
    UUID of the agreement

    GetGenaiOpenaiApiKeyModelVersion

    Major int
    Major version of the model
    Minor int
    Minor version of the model
    Patch int
    Patch version of the model
    Major int
    Major version of the model
    Minor int
    Minor version of the model
    Patch int
    Patch version of the model
    major Integer
    Major version of the model
    minor Integer
    Minor version of the model
    patch Integer
    Patch version of the model
    major number
    Major version of the model
    minor number
    Minor version of the model
    patch number
    Patch version of the model
    major int
    Major version of the model
    minor int
    Minor version of the model
    patch int
    Patch version of the model
    major Number
    Major version of the model
    minor Number
    Minor version of the model
    patch Number
    Patch version of the model

    Package Details

    Repository
    DigitalOcean pulumi/pulumi-digitalocean
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the digitalocean Terraform Provider.
    digitalocean logo
    DigitalOcean v4.51.0 published on Thursday, Aug 14, 2025 by Pulumi