Forum Discussion
Executing a method under subcollection
I am trying execute the following REST code using python SDK using the code below But I get an error at the bottom
https://{{big_ip_a_mgmt}}/mgmt/tm/asm/policies/paOt-OxIl4Myt_qTjWa8dQ/cookies?ver=12.1.0
import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
from import ManagementRoot
mgmt = ManagementRoot("70.60.207.94", "admin", "admin")
p_collections = mgmt.tm.asm.policies_s.get_collection()
for p_object in p_collections:
policy=mgmt.tm.asm.policies_s.policy.load(id=p_object.id)
o1 = policy.cookies_s.update(name="*")
iControlUnexpectedHTTPError: 501 Unexpected Error: Not Implemented for uri: https://70.60.207.94:443/mgmt/tm/asm/policies/pwlpR2LJzxplAjAR3lp10g/cookies/ Text: u'{"code":501,"message":"Method not implemented.","originalRequestBody":"{\"name\": \"*\"","referer":"70.60.207.99","restOperationId":90281,"kind":":resterrorresponse"}'
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com