@@ -62,12 +62,6 @@ func resourceGatewayMigrationAzureKv() *schema.Resource {
6262 Optional : true ,
6363 Description : "The name of the key that protects the classic key value (if empty, the account default key will be used)" ,
6464 },
65- "target_name" : {
66- Type : schema .TypeString ,
67- Optional : true ,
68- Description : "Name of existing target to use to create the migration" ,
69- DiffSuppressFunc : common .DiffSuppressOnLeadingSlash ,
70- },
7165 "migration_id" : {
7266 Type : schema .TypeString ,
7367 Computed : true ,
@@ -90,7 +84,6 @@ func resourceGatewayMigrationAzureKvCreate(d *schema.ResourceData, m interface{}
9084 azureSecret := d .Get ("azure_secret" ).(string )
9185 azureTenantId := d .Get ("azure_tenant_id" ).(string )
9286 protectionKey := d .Get ("protection_key" ).(string )
93- targetName := d .Get ("target_name" ).(string )
9487
9588 body := akeyless_api .NewGatewayCreateMigration ("" , name , "" , "" , targetLocation )
9689 body .Token = & token
@@ -100,7 +93,6 @@ func resourceGatewayMigrationAzureKvCreate(d *schema.ResourceData, m interface{}
10093 common .GetAkeylessPtr (& body .AzureSecret , azureSecret )
10194 common .GetAkeylessPtr (& body .AzureTenantId , azureTenantId )
10295 common .GetAkeylessPtr (& body .ProtectionKey , protectionKey )
103- common .GetAkeylessPtr (& body .TargetName , targetName )
10496
10597 expirationEventInSet := d .Get ("expiration_event_in" ).([]interface {})
10698 expirationEventIn := common .ExpandStringList (expirationEventInSet )
@@ -200,7 +192,6 @@ func resourceGatewayMigrationAzureKvUpdate(d *schema.ResourceData, m interface{}
200192 azureSecret := d .Get ("azure_secret" ).(string )
201193 azureTenantId := d .Get ("azure_tenant_id" ).(string )
202194 protectionKey := d .Get ("protection_key" ).(string )
203- targetName := d .Get ("target_name" ).(string )
204195
205196 body := akeyless_api .NewGatewayUpdateMigration ("" , "" , "" , targetLocation )
206197 body .Token = & token
@@ -210,7 +201,6 @@ func resourceGatewayMigrationAzureKvUpdate(d *schema.ResourceData, m interface{}
210201 common .GetAkeylessPtr (& body .AzureSecret , azureSecret )
211202 common .GetAkeylessPtr (& body .AzureTenantId , azureTenantId )
212203 common .GetAkeylessPtr (& body .ProtectionKey , protectionKey )
213- common .GetAkeylessPtr (& body .TargetName , targetName )
214204
215205 expirationEventInSet := d .Get ("expiration_event_in" ).([]interface {})
216206 expirationEventIn := common .ExpandStringList (expirationEventInSet )
0 commit comments