Change the policy attribute value using config.json apigee-maven-plugin build

I need to update the count value in quota policy using the config.json in maven build. I am able set all other xml tag values but couldn't set the attributes of an xml tag.

<Allow count="value"/>

"value" must be set using config.json.

Solved Solved
0 1 233
1 ACCEPTED SOLUTION

@Ranjith Babu Daruman

Assuming your Quota policy is Check-Quota.xml, config will look like

{
    "name": "Check-Quota.xml",
    "tokens": [
        {
            "xpath": "/Quota/Allow/@count",
            "value": "500"
        }
    ]
}

Please check if this works

View solution in original post

1 REPLY 1

@Ranjith Babu Daruman

Assuming your Quota policy is Check-Quota.xml, config will look like

{
    "name": "Check-Quota.xml",
    "tokens": [
        {
            "xpath": "/Quota/Allow/@count",
            "value": "500"
        }
    ]
}

Please check if this works