Description
When adding multiple VLANs using intersight_fabric_vlan resource to a VLAN policy attached to a UCS domain profile, the following error is returned after the first few VLANs are created:
Error: error occurred while creating FabricVlan: 400 Bad Request Response from endpoint: {"code":"InvalidRequest","message":"The VLAN policy is attached to profiles in Validating state. Wait for validation to complete and retry. Use bulk API for editing multiple VLANs.","messageId":"gobi_fabric_vlan_create_error","traceId":"I6lpTAE11lv54PRU56wLIN_Sm1qlcHSsIm7J_tTeTW6GnrMs5nka9Q=="}
https://community.cisco.com/t5/unified-computing-system-ucs/intersight-bulk-policy-changes/td-p/5255213
The VLAN policy is validated after every VLAN is added causing the API to reject additional updates while the policy is in a validating state.
Terraform-provider-intersight version
TF provider version 1.0.55. Using SaaS version of Intersight
Workaround
Is there a resource or way to utilise the bulk intersight API (such as the intersight_bulk_request resource) to create multiple VLANs?