1. Packages
  2. Packages
  3. Akeyless Provider
  4. API Docs
  5. DynamicSecretDockerhub
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

    Dockerhub dynamic secret resource

    Create DynamicSecretDockerhub Resource

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

    Constructor syntax

    new DynamicSecretDockerhub(name: string, args?: DynamicSecretDockerhubArgs, opts?: CustomResourceOptions);
    @overload
    def DynamicSecretDockerhub(resource_name: str,
                               args: Optional[DynamicSecretDockerhubArgs] = None,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def DynamicSecretDockerhub(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               delete_protection: Optional[str] = None,
                               dockerhub_password: Optional[str] = None,
                               dockerhub_token_scopes: Optional[str] = None,
                               dockerhub_username: Optional[str] = None,
                               dynamic_secret_dockerhub_id: Optional[str] = None,
                               item_custom_fields: Optional[Mapping[str, str]] = None,
                               name: Optional[str] = None,
                               producer_encryption_key_name: Optional[str] = None,
                               tags: Optional[Sequence[str]] = None,
                               target_name: Optional[str] = None,
                               user_ttl: Optional[str] = None)
    func NewDynamicSecretDockerhub(ctx *Context, name string, args *DynamicSecretDockerhubArgs, opts ...ResourceOption) (*DynamicSecretDockerhub, error)
    public DynamicSecretDockerhub(string name, DynamicSecretDockerhubArgs? args = null, CustomResourceOptions? opts = null)
    public DynamicSecretDockerhub(String name, DynamicSecretDockerhubArgs args)
    public DynamicSecretDockerhub(String name, DynamicSecretDockerhubArgs args, CustomResourceOptions options)
    
    type: akeyless:DynamicSecretDockerhub
    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 DynamicSecretDockerhubArgs
    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 DynamicSecretDockerhubArgs
    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 DynamicSecretDockerhubArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DynamicSecretDockerhubArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DynamicSecretDockerhubArgs
    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 dynamicSecretDockerhubResource = new Akeyless.DynamicSecretDockerhub("dynamicSecretDockerhubResource", new()
    {
        DeleteProtection = "string",
        DockerhubPassword = "string",
        DockerhubTokenScopes = "string",
        DockerhubUsername = "string",
        DynamicSecretDockerhubId = "string",
        ItemCustomFields = 
        {
            { "string", "string" },
        },
        Name = "string",
        ProducerEncryptionKeyName = "string",
        Tags = new[]
        {
            "string",
        },
        TargetName = "string",
        UserTtl = "string",
    });
    
    example, err := akeyless.NewDynamicSecretDockerhub(ctx, "dynamicSecretDockerhubResource", &akeyless.DynamicSecretDockerhubArgs{
    	DeleteProtection:         pulumi.String("string"),
    	DockerhubPassword:        pulumi.String("string"),
    	DockerhubTokenScopes:     pulumi.String("string"),
    	DockerhubUsername:        pulumi.String("string"),
    	DynamicSecretDockerhubId: pulumi.String("string"),
    	ItemCustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:                      pulumi.String("string"),
    	ProducerEncryptionKeyName: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TargetName: pulumi.String("string"),
    	UserTtl:    pulumi.String("string"),
    })
    
    var dynamicSecretDockerhubResource = new DynamicSecretDockerhub("dynamicSecretDockerhubResource", DynamicSecretDockerhubArgs.builder()
        .deleteProtection("string")
        .dockerhubPassword("string")
        .dockerhubTokenScopes("string")
        .dockerhubUsername("string")
        .dynamicSecretDockerhubId("string")
        .itemCustomFields(Map.of("string", "string"))
        .name("string")
        .producerEncryptionKeyName("string")
        .tags("string")
        .targetName("string")
        .userTtl("string")
        .build());
    
    dynamic_secret_dockerhub_resource = akeyless.DynamicSecretDockerhub("dynamicSecretDockerhubResource",
        delete_protection="string",
        dockerhub_password="string",
        dockerhub_token_scopes="string",
        dockerhub_username="string",
        dynamic_secret_dockerhub_id="string",
        item_custom_fields={
            "string": "string",
        },
        name="string",
        producer_encryption_key_name="string",
        tags=["string"],
        target_name="string",
        user_ttl="string")
    
    const dynamicSecretDockerhubResource = new akeyless.DynamicSecretDockerhub("dynamicSecretDockerhubResource", {
        deleteProtection: "string",
        dockerhubPassword: "string",
        dockerhubTokenScopes: "string",
        dockerhubUsername: "string",
        dynamicSecretDockerhubId: "string",
        itemCustomFields: {
            string: "string",
        },
        name: "string",
        producerEncryptionKeyName: "string",
        tags: ["string"],
        targetName: "string",
        userTtl: "string",
    });
    
    type: akeyless:DynamicSecretDockerhub
    properties:
        deleteProtection: string
        dockerhubPassword: string
        dockerhubTokenScopes: string
        dockerhubUsername: string
        dynamicSecretDockerhubId: string
        itemCustomFields:
            string: string
        name: string
        producerEncryptionKeyName: string
        tags:
            - string
        targetName: string
        userTtl: string
    

    DynamicSecretDockerhub 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 DynamicSecretDockerhub resource accepts the following input properties:

    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    DockerhubPassword string
    DockerhubPassword is either the user's password access token to manage the repository
    DockerhubTokenScopes string
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    DockerhubUsername string
    DockerhubUsername is the name of the user in dockerhub
    DynamicSecretDockerhubId 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
    Tags List<string>
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    DockerhubPassword string
    DockerhubPassword is either the user's password access token to manage the repository
    DockerhubTokenScopes string
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    DockerhubUsername string
    DockerhubUsername is the name of the user in dockerhub
    DynamicSecretDockerhubId 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
    Tags []string
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    dockerhubPassword String
    DockerhubPassword is either the user's password access token to manage the repository
    dockerhubTokenScopes String
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    dockerhubUsername String
    DockerhubUsername is the name of the user in dockerhub
    dynamicSecretDockerhubId 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
    tags List<String>
    Add tags attached to this object
    targetName String
    Target name
    userTtl String
    User TTL
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    dockerhubPassword string
    DockerhubPassword is either the user's password access token to manage the repository
    dockerhubTokenScopes string
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    dockerhubUsername string
    DockerhubUsername is the name of the user in dockerhub
    dynamicSecretDockerhubId 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
    tags string[]
    Add tags attached to this object
    targetName string
    Target name
    userTtl string
    User TTL
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    dockerhub_password str
    DockerhubPassword is either the user's password access token to manage the repository
    dockerhub_token_scopes str
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    dockerhub_username str
    DockerhubUsername is the name of the user in dockerhub
    dynamic_secret_dockerhub_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
    tags Sequence[str]
    Add tags attached to this object
    target_name str
    Target name
    user_ttl str
    User TTL
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    dockerhubPassword String
    DockerhubPassword is either the user's password access token to manage the repository
    dockerhubTokenScopes String
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    dockerhubUsername String
    DockerhubUsername is the name of the user in dockerhub
    dynamicSecretDockerhubId 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
    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 DynamicSecretDockerhub 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 DynamicSecretDockerhub Resource

    Get an existing DynamicSecretDockerhub 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?: DynamicSecretDockerhubState, opts?: CustomResourceOptions): DynamicSecretDockerhub
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            delete_protection: Optional[str] = None,
            dockerhub_password: Optional[str] = None,
            dockerhub_token_scopes: Optional[str] = None,
            dockerhub_username: Optional[str] = None,
            dynamic_secret_dockerhub_id: Optional[str] = None,
            item_custom_fields: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            producer_encryption_key_name: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            target_name: Optional[str] = None,
            user_ttl: Optional[str] = None) -> DynamicSecretDockerhub
    func GetDynamicSecretDockerhub(ctx *Context, name string, id IDInput, state *DynamicSecretDockerhubState, opts ...ResourceOption) (*DynamicSecretDockerhub, error)
    public static DynamicSecretDockerhub Get(string name, Input<string> id, DynamicSecretDockerhubState? state, CustomResourceOptions? opts = null)
    public static DynamicSecretDockerhub get(String name, Output<String> id, DynamicSecretDockerhubState state, CustomResourceOptions options)
    resources:  _:    type: akeyless:DynamicSecretDockerhub    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:
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    DockerhubPassword string
    DockerhubPassword is either the user's password access token to manage the repository
    DockerhubTokenScopes string
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    DockerhubUsername string
    DockerhubUsername is the name of the user in dockerhub
    DynamicSecretDockerhubId 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
    Tags List<string>
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    DockerhubPassword string
    DockerhubPassword is either the user's password access token to manage the repository
    DockerhubTokenScopes string
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    DockerhubUsername string
    DockerhubUsername is the name of the user in dockerhub
    DynamicSecretDockerhubId 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
    Tags []string
    Add tags attached to this object
    TargetName string
    Target name
    UserTtl string
    User TTL
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    dockerhubPassword String
    DockerhubPassword is either the user's password access token to manage the repository
    dockerhubTokenScopes String
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    dockerhubUsername String
    DockerhubUsername is the name of the user in dockerhub
    dynamicSecretDockerhubId 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
    tags List<String>
    Add tags attached to this object
    targetName String
    Target name
    userTtl String
    User TTL
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    dockerhubPassword string
    DockerhubPassword is either the user's password access token to manage the repository
    dockerhubTokenScopes string
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    dockerhubUsername string
    DockerhubUsername is the name of the user in dockerhub
    dynamicSecretDockerhubId 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
    tags string[]
    Add tags attached to this object
    targetName string
    Target name
    userTtl string
    User TTL
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    dockerhub_password str
    DockerhubPassword is either the user's password access token to manage the repository
    dockerhub_token_scopes str
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    dockerhub_username str
    DockerhubUsername is the name of the user in dockerhub
    dynamic_secret_dockerhub_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
    tags Sequence[str]
    Add tags attached to this object
    target_name str
    Target name
    user_ttl str
    User TTL
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    dockerhubPassword String
    DockerhubPassword is either the user's password access token to manage the repository
    dockerhubTokenScopes String
    Access token scopes list (comma-separated) to give the dynamic secret valid options are in "repo:admin", "repo:write", "repo:read", "repo:public_read"
    dockerhubUsername String
    DockerhubUsername is the name of the user in dockerhub
    dynamicSecretDockerhubId 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
    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.