1. Packages
  2. Packages
  3. Akeyless Provider
  4. API Docs
  5. DynamicSecretOpenai
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community

    OpenAI dynamic secret resource

    Create DynamicSecretOpenai Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DynamicSecretOpenai(name: string, args?: DynamicSecretOpenaiArgs, opts?: CustomResourceOptions);
    @overload
    def DynamicSecretOpenai(resource_name: str,
                            args: Optional[DynamicSecretOpenaiArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DynamicSecretOpenai(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            custom_username_template: Optional[str] = None,
                            delete_protection: Optional[str] = None,
                            description: Optional[str] = None,
                            dynamic_secret_openai_id: Optional[str] = None,
                            item_custom_fields: Optional[Mapping[str, str]] = None,
                            name: Optional[str] = None,
                            producer_encryption_key_name: Optional[str] = None,
                            project_id: Optional[str] = None,
                            tags: Optional[Sequence[str]] = None,
                            target_name: Optional[str] = None,
                            user_ttl: Optional[str] = None)
    func NewDynamicSecretOpenai(ctx *Context, name string, args *DynamicSecretOpenaiArgs, opts ...ResourceOption) (*DynamicSecretOpenai, error)
    public DynamicSecretOpenai(string name, DynamicSecretOpenaiArgs? args = null, CustomResourceOptions? opts = null)
    public DynamicSecretOpenai(String name, DynamicSecretOpenaiArgs args)
    public DynamicSecretOpenai(String name, DynamicSecretOpenaiArgs args, CustomResourceOptions options)
    
    type: akeyless:DynamicSecretOpenai
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DynamicSecretOpenaiArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DynamicSecretOpenaiArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DynamicSecretOpenaiArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DynamicSecretOpenaiArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DynamicSecretOpenaiArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dynamicSecretOpenaiResource = new Akeyless.DynamicSecretOpenai("dynamicSecretOpenaiResource", new()
    {
        CustomUsernameTemplate = "string",
        DeleteProtection = "string",
        Description = "string",
        DynamicSecretOpenaiId = "string",
        ItemCustomFields = 
        {
            { "string", "string" },
        },
        Name = "string",
        ProducerEncryptionKeyName = "string",
        ProjectId = "string",
        Tags = new[]
        {
            "string",
        },
        TargetName = "string",
        UserTtl = "string",
    });
    
    example, err := akeyless.NewDynamicSecretOpenai(ctx, "dynamicSecretOpenaiResource", &akeyless.DynamicSecretOpenaiArgs{
    	CustomUsernameTemplate: pulumi.String("string"),
    	DeleteProtection:       pulumi.String("string"),
    	Description:            pulumi.String("string"),
    	DynamicSecretOpenaiId:  pulumi.String("string"),
    	ItemCustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:                      pulumi.String("string"),
    	ProducerEncryptionKeyName: pulumi.String("string"),
    	ProjectId:                 pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TargetName: pulumi.String("string"),
    	UserTtl:    pulumi.String("string"),
    })
    
    var dynamicSecretOpenaiResource = new DynamicSecretOpenai("dynamicSecretOpenaiResource", DynamicSecretOpenaiArgs.builder()
        .customUsernameTemplate("string")
        .deleteProtection("string")
        .description("string")
        .dynamicSecretOpenaiId("string")
        .itemCustomFields(Map.of("string", "string"))
        .name("string")
        .producerEncryptionKeyName("string")
        .projectId("string")
        .tags("string")
        .targetName("string")
        .userTtl("string")
        .build());
    
    dynamic_secret_openai_resource = akeyless.DynamicSecretOpenai("dynamicSecretOpenaiResource",
        custom_username_template="string",
        delete_protection="string",
        description="string",
        dynamic_secret_openai_id="string",
        item_custom_fields={
            "string": "string",
        },
        name="string",
        producer_encryption_key_name="string",
        project_id="string",
        tags=["string"],
        target_name="string",
        user_ttl="string")
    
    const dynamicSecretOpenaiResource = new akeyless.DynamicSecretOpenai("dynamicSecretOpenaiResource", {
        customUsernameTemplate: "string",
        deleteProtection: "string",
        description: "string",
        dynamicSecretOpenaiId: "string",
        itemCustomFields: {
            string: "string",
        },
        name: "string",
        producerEncryptionKeyName: "string",
        projectId: "string",
        tags: ["string"],
        targetName: "string",
        userTtl: "string",
    });
    
    type: akeyless:DynamicSecretOpenai
    properties:
        customUsernameTemplate: string
        deleteProtection: string
        description: string
        dynamicSecretOpenaiId: string
        itemCustomFields:
            string: string
        name: string
        producerEncryptionKeyName: string
        projectId: string
        tags:
            - string
        targetName: string
        userTtl: string
    

    DynamicSecretOpenai Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DynamicSecretOpenai resource accepts the following input properties:

    CustomUsernameTemplate string
    Customize how temporary usernames are generated using go template
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    DynamicSecretOpenaiId string
    The ID of this resource.
    ItemCustomFields Dictionary<string, string>
    Additional custom fields to associate with the item
    Name string
    Dynamic secret name
    ProducerEncryptionKeyName string
    Dynamic producer encryption key
    ProjectId string
    Project ID
    Tags List<string>
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    CustomUsernameTemplate string
    Customize how temporary usernames are generated using go template
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    DynamicSecretOpenaiId string
    The ID of this resource.
    ItemCustomFields map[string]string
    Additional custom fields to associate with the item
    Name string
    Dynamic secret name
    ProducerEncryptionKeyName string
    Dynamic producer encryption key
    ProjectId string
    Project ID
    Tags []string
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    customUsernameTemplate String
    Customize how temporary usernames are generated using go template
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    dynamicSecretOpenaiId String
    The ID of this resource.
    itemCustomFields Map<String,String>
    Additional custom fields to associate with the item
    name String
    Dynamic secret name
    producerEncryptionKeyName String
    Dynamic producer encryption key
    projectId String
    Project ID
    tags List<String>
    Add tags attached to this object
    targetName String
    Target name
    userTtl String
    User TTL
    customUsernameTemplate string
    Customize how temporary usernames are generated using go template
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    dynamicSecretOpenaiId string
    The ID of this resource.
    itemCustomFields {[key: string]: string}
    Additional custom fields to associate with the item
    name string
    Dynamic secret name
    producerEncryptionKeyName string
    Dynamic producer encryption key
    projectId string
    Project ID
    tags string[]
    Add tags attached to this object
    targetName string
    Target name
    userTtl string
    User TTL
    custom_username_template str
    Customize how temporary usernames are generated using go template
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    description str
    Description of the object
    dynamic_secret_openai_id str
    The ID of this resource.
    item_custom_fields Mapping[str, str]
    Additional custom fields to associate with the item
    name str
    Dynamic secret name
    producer_encryption_key_name str
    Dynamic producer encryption key
    project_id str
    Project ID
    tags Sequence[str]
    Add tags attached to this object
    target_name str
    Target name
    user_ttl str
    User TTL
    customUsernameTemplate String
    Customize how temporary usernames are generated using go template
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    dynamicSecretOpenaiId String
    The ID of this resource.
    itemCustomFields Map<String>
    Additional custom fields to associate with the item
    name String
    Dynamic secret name
    producerEncryptionKeyName String
    Dynamic producer encryption key
    projectId String
    Project ID
    tags List<String>
    Add tags attached to this object
    targetName String
    Target name
    userTtl String
    User TTL

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DynamicSecretOpenai resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DynamicSecretOpenai Resource

    Get an existing DynamicSecretOpenai resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DynamicSecretOpenaiState, opts?: CustomResourceOptions): DynamicSecretOpenai
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            custom_username_template: Optional[str] = None,
            delete_protection: Optional[str] = None,
            description: Optional[str] = None,
            dynamic_secret_openai_id: Optional[str] = None,
            item_custom_fields: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            producer_encryption_key_name: Optional[str] = None,
            project_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            target_name: Optional[str] = None,
            user_ttl: Optional[str] = None) -> DynamicSecretOpenai
    func GetDynamicSecretOpenai(ctx *Context, name string, id IDInput, state *DynamicSecretOpenaiState, opts ...ResourceOption) (*DynamicSecretOpenai, error)
    public static DynamicSecretOpenai Get(string name, Input<string> id, DynamicSecretOpenaiState? state, CustomResourceOptions? opts = null)
    public static DynamicSecretOpenai get(String name, Output<String> id, DynamicSecretOpenaiState state, CustomResourceOptions options)
    resources:  _:    type: akeyless:DynamicSecretOpenai    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CustomUsernameTemplate string
    Customize how temporary usernames are generated using go template
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    DynamicSecretOpenaiId string
    The ID of this resource.
    ItemCustomFields Dictionary<string, string>
    Additional custom fields to associate with the item
    Name string
    Dynamic secret name
    ProducerEncryptionKeyName string
    Dynamic producer encryption key
    ProjectId string
    Project ID
    Tags List<string>
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    CustomUsernameTemplate string
    Customize how temporary usernames are generated using go template
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    DynamicSecretOpenaiId string
    The ID of this resource.
    ItemCustomFields map[string]string
    Additional custom fields to associate with the item
    Name string
    Dynamic secret name
    ProducerEncryptionKeyName string
    Dynamic producer encryption key
    ProjectId string
    Project ID
    Tags []string
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    customUsernameTemplate String
    Customize how temporary usernames are generated using go template
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    dynamicSecretOpenaiId String
    The ID of this resource.
    itemCustomFields Map<String,String>
    Additional custom fields to associate with the item
    name String
    Dynamic secret name
    producerEncryptionKeyName String
    Dynamic producer encryption key
    projectId String
    Project ID
    tags List<String>
    Add tags attached to this object
    targetName String
    Target name
    userTtl String
    User TTL
    customUsernameTemplate string
    Customize how temporary usernames are generated using go template
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    dynamicSecretOpenaiId string
    The ID of this resource.
    itemCustomFields {[key: string]: string}
    Additional custom fields to associate with the item
    name string
    Dynamic secret name
    producerEncryptionKeyName string
    Dynamic producer encryption key
    projectId string
    Project ID
    tags string[]
    Add tags attached to this object
    targetName string
    Target name
    userTtl string
    User TTL
    custom_username_template str
    Customize how temporary usernames are generated using go template
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    description str
    Description of the object
    dynamic_secret_openai_id str
    The ID of this resource.
    item_custom_fields Mapping[str, str]
    Additional custom fields to associate with the item
    name str
    Dynamic secret name
    producer_encryption_key_name str
    Dynamic producer encryption key
    project_id str
    Project ID
    tags Sequence[str]
    Add tags attached to this object
    target_name str
    Target name
    user_ttl str
    User TTL
    customUsernameTemplate String
    Customize how temporary usernames are generated using go template
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    dynamicSecretOpenaiId String
    The ID of this resource.
    itemCustomFields Map<String>
    Additional custom fields to associate with the item
    name String
    Dynamic secret name
    producerEncryptionKeyName String
    Dynamic producer encryption key
    projectId String
    Project ID
    tags List<String>
    Add tags attached to this object
    targetName String
    Target name
    userTtl String
    User TTL

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    Viewing docs for akeyless 2.0.1
    published on Monday, Apr 27, 2026 by akeyless-community
      Try Pulumi Cloud free. Your team will thank you.