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

    HashiCorp Vault Migration resource

    Create GatewayMigrationHashi Resource

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

    Constructor syntax

    new GatewayMigrationHashi(name: string, args: GatewayMigrationHashiArgs, opts?: CustomResourceOptions);
    @overload
    def GatewayMigrationHashi(resource_name: str,
                              args: GatewayMigrationHashiArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def GatewayMigrationHashi(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              target_location: Optional[str] = None,
                              gateway_migration_hashi_id: Optional[str] = None,
                              hashi_json: Optional[str] = None,
                              hashi_ns: Optional[Sequence[str]] = None,
                              hashi_token: Optional[str] = None,
                              hashi_url: Optional[str] = None,
                              name: Optional[str] = None,
                              protection_key: Optional[str] = None)
    func NewGatewayMigrationHashi(ctx *Context, name string, args GatewayMigrationHashiArgs, opts ...ResourceOption) (*GatewayMigrationHashi, error)
    public GatewayMigrationHashi(string name, GatewayMigrationHashiArgs args, CustomResourceOptions? opts = null)
    public GatewayMigrationHashi(String name, GatewayMigrationHashiArgs args)
    public GatewayMigrationHashi(String name, GatewayMigrationHashiArgs args, CustomResourceOptions options)
    
    type: akeyless:GatewayMigrationHashi
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "akeyless_gatewaymigrationhashi" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args GatewayMigrationHashiArgs
    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 GatewayMigrationHashiArgs
    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 GatewayMigrationHashiArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GatewayMigrationHashiArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GatewayMigrationHashiArgs
    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 gatewayMigrationHashiResource = new Akeyless.GatewayMigrationHashi("gatewayMigrationHashiResource", new()
    {
        TargetLocation = "string",
        GatewayMigrationHashiId = "string",
        HashiJson = "string",
        HashiNs = new[]
        {
            "string",
        },
        HashiToken = "string",
        HashiUrl = "string",
        Name = "string",
        ProtectionKey = "string",
    });
    
    example, err := akeyless.NewGatewayMigrationHashi(ctx, "gatewayMigrationHashiResource", &akeyless.GatewayMigrationHashiArgs{
    	TargetLocation:          pulumi.String("string"),
    	GatewayMigrationHashiId: pulumi.String("string"),
    	HashiJson:               pulumi.String("string"),
    	HashiNs: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	HashiToken:    pulumi.String("string"),
    	HashiUrl:      pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	ProtectionKey: pulumi.String("string"),
    })
    
    resource "akeyless_gatewaymigrationhashi" "gatewayMigrationHashiResource" {
      target_location            = "string"
      gateway_migration_hashi_id = "string"
      hashi_json                 = "string"
      hashi_ns                   = ["string"]
      hashi_token                = "string"
      hashi_url                  = "string"
      name                       = "string"
      protection_key             = "string"
    }
    
    var gatewayMigrationHashiResource = new GatewayMigrationHashi("gatewayMigrationHashiResource", GatewayMigrationHashiArgs.builder()
        .targetLocation("string")
        .gatewayMigrationHashiId("string")
        .hashiJson("string")
        .hashiNs("string")
        .hashiToken("string")
        .hashiUrl("string")
        .name("string")
        .protectionKey("string")
        .build());
    
    gateway_migration_hashi_resource = akeyless.GatewayMigrationHashi("gatewayMigrationHashiResource",
        target_location="string",
        gateway_migration_hashi_id="string",
        hashi_json="string",
        hashi_ns=["string"],
        hashi_token="string",
        hashi_url="string",
        name="string",
        protection_key="string")
    
    const gatewayMigrationHashiResource = new akeyless.GatewayMigrationHashi("gatewayMigrationHashiResource", {
        targetLocation: "string",
        gatewayMigrationHashiId: "string",
        hashiJson: "string",
        hashiNs: ["string"],
        hashiToken: "string",
        hashiUrl: "string",
        name: "string",
        protectionKey: "string",
    });
    
    type: akeyless:GatewayMigrationHashi
    properties:
        gatewayMigrationHashiId: string
        hashiJson: string
        hashiNs:
            - string
        hashiToken: string
        hashiUrl: string
        name: string
        protectionKey: string
        targetLocation: string
    

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

    TargetLocation string
    Target location in Akeyless for imported secrets
    GatewayMigrationHashiId string
    The ID of this resource.
    HashiJson string
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    HashiNs List<string>
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    HashiToken string
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    HashiUrl string
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    Name string
    Migration name
    ProtectionKey string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    TargetLocation string
    Target location in Akeyless for imported secrets
    GatewayMigrationHashiId string
    The ID of this resource.
    HashiJson string
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    HashiNs []string
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    HashiToken string
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    HashiUrl string
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    Name string
    Migration name
    ProtectionKey string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    target_location string
    Target location in Akeyless for imported secrets
    gateway_migration_hashi_id string
    The ID of this resource.
    hashi_json string
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    hashi_ns list(string)
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    hashi_token string
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    hashi_url string
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    name string
    Migration name
    protection_key string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    targetLocation String
    Target location in Akeyless for imported secrets
    gatewayMigrationHashiId String
    The ID of this resource.
    hashiJson String
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    hashiNs List<String>
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    hashiToken String
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    hashiUrl String
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    name String
    Migration name
    protectionKey String
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    targetLocation string
    Target location in Akeyless for imported secrets
    gatewayMigrationHashiId string
    The ID of this resource.
    hashiJson string
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    hashiNs string[]
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    hashiToken string
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    hashiUrl string
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    name string
    Migration name
    protectionKey string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    target_location str
    Target location in Akeyless for imported secrets
    gateway_migration_hashi_id str
    The ID of this resource.
    hashi_json str
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    hashi_ns Sequence[str]
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    hashi_token str
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    hashi_url str
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    name str
    Migration name
    protection_key str
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    targetLocation String
    Target location in Akeyless for imported secrets
    gatewayMigrationHashiId String
    The ID of this resource.
    hashiJson String
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    hashiNs List<String>
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    hashiToken String
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    hashiUrl String
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    name String
    Migration name
    protectionKey String
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)

    Outputs

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

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

    Look up Existing GatewayMigrationHashi Resource

    Get an existing GatewayMigrationHashi 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?: GatewayMigrationHashiState, opts?: CustomResourceOptions): GatewayMigrationHashi
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            gateway_migration_hashi_id: Optional[str] = None,
            hashi_json: Optional[str] = None,
            hashi_ns: Optional[Sequence[str]] = None,
            hashi_token: Optional[str] = None,
            hashi_url: Optional[str] = None,
            migration_id: Optional[str] = None,
            name: Optional[str] = None,
            protection_key: Optional[str] = None,
            target_location: Optional[str] = None) -> GatewayMigrationHashi
    func GetGatewayMigrationHashi(ctx *Context, name string, id IDInput, state *GatewayMigrationHashiState, opts ...ResourceOption) (*GatewayMigrationHashi, error)
    public static GatewayMigrationHashi Get(string name, Input<string> id, GatewayMigrationHashiState? state, CustomResourceOptions? opts = null)
    public static GatewayMigrationHashi get(String name, Output<String> id, GatewayMigrationHashiState state, CustomResourceOptions options)
    resources:  _:    type: akeyless:GatewayMigrationHashi    get:      id: ${id}
    import {
      to = akeyless_gatewaymigrationhashi.example
      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:
    GatewayMigrationHashiId string
    The ID of this resource.
    HashiJson string
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    HashiNs List<string>
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    HashiToken string
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    HashiUrl string
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    MigrationId string
    Migration ID
    Name string
    Migration name
    ProtectionKey string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    TargetLocation string
    Target location in Akeyless for imported secrets
    GatewayMigrationHashiId string
    The ID of this resource.
    HashiJson string
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    HashiNs []string
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    HashiToken string
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    HashiUrl string
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    MigrationId string
    Migration ID
    Name string
    Migration name
    ProtectionKey string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    TargetLocation string
    Target location in Akeyless for imported secrets
    gateway_migration_hashi_id string
    The ID of this resource.
    hashi_json string
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    hashi_ns list(string)
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    hashi_token string
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    hashi_url string
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    migration_id string
    Migration ID
    name string
    Migration name
    protection_key string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    target_location string
    Target location in Akeyless for imported secrets
    gatewayMigrationHashiId String
    The ID of this resource.
    hashiJson String
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    hashiNs List<String>
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    hashiToken String
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    hashiUrl String
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    migrationId String
    Migration ID
    name String
    Migration name
    protectionKey String
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    targetLocation String
    Target location in Akeyless for imported secrets
    gatewayMigrationHashiId string
    The ID of this resource.
    hashiJson string
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    hashiNs string[]
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    hashiToken string
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    hashiUrl string
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    migrationId string
    Migration ID
    name string
    Migration name
    protectionKey string
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    targetLocation string
    Target location in Akeyless for imported secrets
    gateway_migration_hashi_id str
    The ID of this resource.
    hashi_json str
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    hashi_ns Sequence[str]
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    hashi_token str
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    hashi_url str
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    migration_id str
    Migration ID
    name str
    Migration name
    protection_key str
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    target_location str
    Target location in Akeyless for imported secrets
    gatewayMigrationHashiId String
    The ID of this resource.
    hashiJson String
    Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
    hashiNs List<String>
    HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration)
    hashiToken String
    HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration)
    hashiUrl String
    HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration)
    migrationId String
    Migration ID
    name String
    Migration name
    protectionKey String
    The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    targetLocation String
    Target location in Akeyless for imported secrets

    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.