Forum Discussion

Jae_Hong_Kim_32's avatar
Jae_Hong_Kim_32
Icon for Nimbostratus rankNimbostratus
May 25, 2017

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"}'

 

No RepliesBe the first to reply