terraform-provider-vra7
terraform-provider-vra7 copied to clipboard
It's not possible to use custom resource actions
vRA 7.x version 7.6 Terraform version 0.12.19 terraform-provider-vra7 plugin version 0.5.0
Describe the bug
When resource action with name Reconfigure
is not defined in resourceActions.Content.Operations
i get an error:
Update is not allowed for resource e64b02c9-6f1f-44ed-904a-eb79e17c5a5d, your entitlement has no Reconfigure action enabled
We only use custom resource actions and have disabled Reconfigure
action, because it would expose our custom VM properties, which we don't want to. Part of code responsible for throwing error:
for _, op := range resources.Operations {
if op.Name == sdk.Reconfigure {
reconfigureEnabled = true
reconfigureActionID = op.OperationID
break
}
}
// if reconfigure action is not available for any resource of the deployment
// return with an error message
if !reconfigureEnabled {
return fmt.Errorf("Update is not allowed for resource %v, your entitlement has no Reconfigure action enabled", resources.ID)
}
Are there any plans for supporting custom resource actions? Thanks