f5-common-python icon indicating copy to clipboard operation
f5-common-python copied to clipboard

load an ASM resource

Open z4nD4R opened this issue 5 years ago • 0 comments

Hi All,

I'm trying to interact with ASM module through f5-sdk. Unfortunately I'm not able to .load() or test if resource exitsts without passing id param. The same functionality although is working in LTM module.

Could you please advice where am I doing anything wrong (it doesn't make sense to pass id to load or exists)?

Working on LTM module

pool = mgmt.tm.ltm.pools.pool.load(name='mypool', partition='Common')

NOT working on ASM module

policy = mgmt.tm.asm.policies_s.policy.load(name='test', partition='Common')
Raises:
f5.sdk_exception.MissingRequiredReadParameter: Missing required params: ['id']

Thx

Y

z4nD4R avatar May 20 '20 14:05 z4nD4R