terraform-provider-akamai icon indicating copy to clipboard operation
terraform-provider-akamai copied to clipboard

how to get security policy name

Open BAu0002 opened this issue 2 years ago • 2 comments

akamai_appsec_security_policy return a set of policy id and no json. is there an easy way to get policy name based on pollicy id?

BAu0002 avatar Oct 20 '22 08:10 BAu0002

The akamai_appsec_security_policy data source does not currently return policy names as part of its security_policy_id_list attribute. As a workaround, you can parse the output_text attribute, which will contain a few header rows followed by a sequence of ID, NAME columns.

JPLodineAK avatar Oct 20 '22 16:10 JPLodineAK

in coding that's a pain to code. as an improvement, can we have it return a json output.

BAu0002 avatar Oct 21 '22 06:10 BAu0002

We will add a "json" computed output to this resource in the next release, to include the ID & name information in JSON form. [SECKSD-17112]

JPLodineAK avatar Oct 24 '22 18:10 JPLodineAK

This issue should be now addressed with most recent release. Closing the ticket.

lkowalsk-akamai-com avatar Dec 19 '22 13:12 lkowalsk-akamai-com