Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXE-4111 Not able to find wrappers for v2 cloudlets version rule #207

Open
udita-chakraborty opened this issue Jul 29, 2024 · 3 comments
Open

Comments

@udita-chakraborty
Copy link

Not able to find below in
https://techdocs.akamai.com/cloudlets/v2/reference/post-policy-version-rules
https://techdocs.akamai.com/cloudlets/v2/reference/get-policy-version-rule
https://techdocs.akamai.com/cloudlets/v2/reference/put-policy-version-rule

Does the package doesn't support these 3 ?? But i do objects for match-rules but no get,post,put only validate

@udita-chakraborty
Copy link
Author

I was unable to trace those three here :- https://github.com/akamai/AkamaiOPEN-edgegrid-golang/blob/master/pkg/cloudlets/match_rule.go
I am using v8 of Akamai OPEN EdgeGrid

@mgwoj
Copy link
Contributor

mgwoj commented Jul 29, 2024

Hello,

Please consider using "Policy versions" which has similar functionality or provide use case when it is required. In the V3 of the API we do not have such functions at all.

@udita-chakraborty
Copy link
Author

Hello ,
I am dealing with Application Load Balancer cloudlet and its only available in v2 .
My usecase is , to create a new policy version by cloning last active prod version and add a match rule which will contain matchCriteria of Type Urlpath and range. Further on the user requirement I have to edit that specific path value or range value .

Now in the package there is no mention of akaRuleId . Creating a match rule doesn't require the need of akaRuleId but when I have to edit the specific mathRule I have to then iterate over array and check for the name to find the required one .
In the scenario where the array of match rules exceeds 2000 or 3000 it will just increase the iteration time . However , after adding the match rule if somehow I store the akaRuleId in my DB and can call this https://techdocs.akamai.com/cloudlets/v2/reference/put-policy-version-rule it just makes things easier for me

So if package involes the use of akaRuleId and makes it a part of MatchRuleALB struct that would be helpful .

@mgwoj mgwoj changed the title Not able to find wrappers for v2 cloudlets version rule DXE-4111 Not able to find wrappers for v2 cloudlets version rule Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants