Skip to content

Commit d48b9f2

Browse files
authored
fix(cfw): add the fw_instance_id query parameter in the URL for the create domain name group request (#6106)
1 parent 37b9428 commit d48b9f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

huaweicloud/services/cfw/resource_huaweicloud_cfw_domain_name_group.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ func resourceDomainNameGroupCreate(ctx context.Context, d *schema.ResourceData,
144144

145145
createDomainNameGroupPath := createDomainNameGroupClient.Endpoint + createDomainNameGroupHttpUrl
146146
createDomainNameGroupPath = strings.ReplaceAll(createDomainNameGroupPath, "{project_id}", createDomainNameGroupClient.ProjectID)
147+
createDomainNameGroupPath += fmt.Sprintf("?fw_instance_id=%v", d.Get("fw_instance_id"))
147148

148149
createDomainNameGroupOpt := golangsdk.RequestOpts{
149150
KeepResponseBody: true,

0 commit comments

Comments
 (0)