published on Monday, Apr 27, 2026 by akeyless-community
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.
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"),
})
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:
- Target
Location string - Target location in Akeyless for imported secrets
- Gateway
Migration stringHashi Id - 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)
- Target
Location string - Target location in Akeyless for imported secrets
- Gateway
Migration stringHashi Id - 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 []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)
- target
Location String - Target location in Akeyless for imported secrets
- gateway
Migration StringHashi Id - 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)
- target
Location string - Target location in Akeyless for imported secrets
- gateway
Migration stringHashi Id - 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 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)
- target_
location str - Target location in Akeyless for imported secrets
- gateway_
migration_ strhashi_ id - 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)
- target
Location String - Target location in Akeyless for imported secrets
- gateway
Migration StringHashi Id - 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)
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.
- Migration
Id 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.
- migration
Id String - Migration ID
- id string
- The provider-assigned unique ID for this managed resource.
- migration
Id 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.
- migration
Id 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) -> GatewayMigrationHashifunc 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}- 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.
- Gateway
Migration stringHashi Id - 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
- Gateway
Migration stringHashi Id - 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 []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
- gateway
Migration StringHashi Id - 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
- gateway
Migration stringHashi Id - 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 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
- gateway_
migration_ strhashi_ id - 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
- gateway
Migration StringHashi Id - 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
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeylessTerraform Provider.
published on Monday, Apr 27, 2026 by akeyless-community
