# ansible ucs intersight error

**URL:** <https://forum.ansible.com/t/ansible-ucs-intersight-error/38441>\
**Category:** Ansible Project\
**Created:** [September 14, 2023, 5:09pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441 "2023-09-14T17:09:14Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [September 14, 2023, 5:09pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/1 "2023-09-14T17:09:14Z")

</div>

any idea why I keep getting this error with this pb?

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [September 14, 2023, 5:15pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/2 "2023-09-14T17:15:07Z")

</div>

dictionary list is

uuid\_pools:

- name\_of\_uuid\_pool: “UUID Pool 1”  
uuid\_prefix: “00000000-0000-0000”  
uuid\_size: 100  
uuid\_from: “0000-000000000001”

- name\_of\_uuid\_pool: “UUID Pool 2”  
uuid\_prefix: “11111111-1111-1111”  
uuid\_size: 50  
uuid\_from: “1111-111111111101”

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [September 14, 2023, 7:48pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/3 "2023-09-14T19:48:58Z")

</div>

It says malformed json, so that’s pretty obvious.  
Try running with -v to (hopefully) see what’s being posted as json and there should be your solution.

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [September 14, 2023, 8:40pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/4 "2023-09-14T20:40:13Z")

</div>

The full traceback is:  
File “/var/folders/\_f/psbm0b654t9c729qy7r\_xl240000gn/T/ansible\_cisco.intersight.intersight\_rest\_api\_payload\_zqzy7erf/ansible\_cisco.intersight.intersight\_rest\_api\_payload.zip/ansible\_collections/cisco/intersight/plugins/module\_utils/intersight.py”, line 243, in call\_api  
raise RuntimeError(info[‘status’], info[‘msg’], info[‘body’])  
failed: [localhost] (item={‘name\_of\_uuid\_pool’: ‘UUID Pool 1’, ‘uuid\_prefix’: ‘00000000-0000-0000’, ‘uuid\_size’: 100, ‘uuid\_from’: ‘0000-000000000001’}) =\> {  
“ansible\_loop\_var”: “item”,  
“changed”: false,  
“invocation”: {  
“module\_args”: {  
“api\_body”: {  
“AssignmentOrder”: “default”,  
“Description”: “UUID Pool 1”,  
“Name”: “UUID Pool 1”,  
“Organization”: {  
“Moid”: “64fb3cc06972653301785b28”  
},  
“Prefix”: “00000000-0000-0000”,  
“Tags”: [  
{  
“Key”: “configmode”,  
“Value”: “ansible”  
},  
{  
“Key”: “prefix”,  
“Value”: “PKXXXPK”  
}  
],  
“UuidSuffixBlocks”: [  
{  
“From”: “0000-000000000001”,  
“Size”: “100”  
}  
]  
},  
“api\_key\_id”: “64fb3cbd7564613301d27632/64fb3cbe7564613301d27636/64fe94c77564613301f091c2”,  
“api\_private\_key”: “VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER”,  
“api\_uri”: “[https://intersight.com/api/v1](https://intersight.com/api/v1)”,  
“list\_body”: null,  
“query\_params”: {  
“$filter”: “Name eq ‘UUID Pool 1’”  
},  
“resource\_path”: “/uuidpool/Pools”,  
“return\_list”: false,  
“state”: “present”,  
“update\_method”: “patch”,  
“use\_proxy”: true,  
“validate\_certs”: true  
}  
},  
“item”: {  
“name\_of\_uuid\_pool”: “UUID Pool 1”,  
“uuid\_from”: “0000-000000000001”,  
“uuid\_prefix”: “00000000-0000-0000”,  
“uuid\_size”: 100  
},  
“msg”: "API error: (400, ‘HTTP Error 400: Bad Request’, b’{"code":"InvalidRequest","message":"Cannot execute the request. The JSON document is malformed.","messageId":"barcelona\_request\_malformed\_json","traceId":"2wMlVD0eKFBFiksN2fyS47UyPFHNB4WiXSwqP\_pg8FP7QZ-s81Tb1A==","cause":{"code":"InternalServerError","message":"Cannot execute the request due to an error. Retry later.","messageId":"barcelona\_request\_internal\_error","traceId":"2wMlVD0eKFBFiksN2fyS47UyPFHNB4WiXSwqP\_pg8FP7QZ-s81Tb1A=="}}') "  
}

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [September 14, 2023, 10:30pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/5 "2023-09-14T22:30:03Z")

</div>

The dictionary loop is not working. But when I specify the parameters not in a dictionary and not in a loop it works.

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [September 15, 2023, 7:37am UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/6 "2023-09-15T07:37:23Z")

</div>

Run that with -v, and then compare the invocation dict with the one above that fails.

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [September 15, 2023, 2:15pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/7 "2023-09-15T14:15:07Z")

</div>

TASK [create\_pools : Create UUID Pool] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [localhost] (item={‘name\_of\_uuid\_pool’: ‘UUID Pool 1’, ‘uuid\_prefix’: ‘00000000-0000-0000’, ‘uuid\_size’: 100, ‘uuid\_from’: ‘0000-000000000001’}) =\> {“ansible\_loop\_var”: “item”, “changed”: false, “item”: {“name\_of\_uuid\_pool”: “UUID Pool 1”, “uuid\_from”: “0000-000000000001”, “uuid\_prefix”: “00000000-0000-0000”, “uuid\_size”: 100}, “msg”: "API error: (400, ‘HTTP Error 400: Bad Request’, b’{"code":"InvalidRequest","message":"Cannot execute the request. The JSON document is malformed.","messageId":"barcelona\_request\_malformed\_json","traceId":"3W5INgQdjpSiG4-JcJ4GUxrlpnuU7Ksyjj2zDfhbucx5\_enmAf2wHw==","cause":{"code":"InternalServerError","message":"Cannot execute the request due to an error. Retry later.","messageId":"barcelona\_request\_internal\_error","traceId":"3W5INgQdjpSiG4-JcJ4GUxrlpnuU7Ksyjj2zDfhbucx5\_enmAf2wHw=="}}‘) "}  
failed: [localhost] (item={‘name\_of\_uuid\_pool’: ‘UUID Pool 2’, ‘uuid\_prefix’: ‘11111111-1111-1111’, ‘uuid\_size’: 50, ‘uuid\_from’: ‘1111-111111111101’}) =\> {“ansible\_loop\_var”: “item”, “changed”: false, “item”: {“name\_of\_uuid\_pool”: “UUID Pool 2”, “uuid\_from”: “1111-111111111101”, “uuid\_prefix”: “11111111-1111-1111”, “uuid\_size”: 50}, “msg”: "API error: (400, ‘HTTP Error 400: Bad Request’, b’{"code":"InvalidRequest","message":"Cannot execute the request. The JSON document is malformed.","messageId":"barcelona\_request\_malformed\_json","traceId":"VZYagTdrbBl92Gj4ePwQdT1-Ttwce57ZJYiCdkZ0bmz1CFpzsJ1h-A==","cause":{"code":"InternalServerError","message":"Cannot execute the request due to an error. Retry later.","messageId":"barcelona\_request\_internal\_error","traceId":"VZYagTdrbBl92Gj4ePwQdT1-Ttwce57ZJYiCdkZ0bmz1CFpzsJ1h-A=="}}') "}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=10 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [September 15, 2023, 6:59pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/8 "2023-09-15T18:59:57Z")

</div>

This looks like another failed attempt.  
Compare a failed attempt with a successful attempt using -v and look closely at the payload.

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [September 15, 2023, 8:08pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/9 "2023-09-15T20:08:14Z")

</div>

this is from the successful attempt without loop

TASK [create\_pools : Create UUID Pool1] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost] =\> {“api\_response”: {“AccountMoid”: “64fb3cbd7564613301d27632”, “Ancestors”: , “Assigned”: 0, “AssignmentOrder”: “default”, “BlockHeads”: [{“ClassId”: “mo.MoRef”, “Moid”: “65036e7069627531010b73cc”, “ObjectType”: “uuidpool.Block”, “link”: “[https://www.intersight.com/api/v1/uuidpool/Blocks/65036e7069627531010b73cc](https://www.intersight.com/api/v1/uuidpool/Blocks/65036e7069627531010b73cc)”}], “ClassId”: “uuidpool.Pool”, “CreateTime”: “2023-09-14T20:34:56.056Z”, “Description”: “UUID\_default\_01”, “DomainGroupMoid”: “64fb3cbd7564613301d27633”, “ModTime”: “2023-09-14T20:34:56.064Z”, “Moid”: “65036e7069627531010b73c9”, “Name”: “UUID\_default\_01”, “ObjectType”: “uuidpool.Pool”, “Organization”: {“ClassId”: “mo.MoRef”, “Moid”: “64fb3cc06972653301785b28”, “ObjectType”: “organization.Organization”, “link”: “[https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28](https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28)”}, “Owners”: [“64fb3cbd7564613301d27632”], “PermissionResources”: [{“ClassId”: “mo.MoRef”, “Moid”: “64fb3cc06972653301785b28”, “ObjectType”: “organization.Organization”, “link”: “[https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28](https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28)”}], “Prefix”: “00000000-0000-0000”, “Reservations”: , “Reserved”: 0, “SharedScope”: “”, “Size”: 100, “Tags”: [{“Key”: “configmode”, “Value”: “ansible”}, {“Key”: “prefix”, “Value”: “PKXXXPK”}], “UuidSuffixBlocks”: [{“ClassId”: “uuidpool.UuidBlock”, “From”: “0000-000000000001”, “ObjectType”: “uuidpool.UuidBlock”, “Size”: 100, “To”: “0000-000000000064”}]}, “changed”: false, “trace\_id”: “Cvz\_QEUlWzAC1sIt\_gToSQMndG0T9FtgfA7\_j4r87Gdy62jJzp\_eTQ==”}

TASK [create\_pools : Create UUID Pool2] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost] =\> {“api\_response”: {“AccountMoid”: “64fb3cbd7564613301d27632”, “Ancestors”: , “Assigned”: 0, “AssignmentOrder”: “default”, “BlockHeads”: [{“ClassId”: “mo.MoRef”, “Moid”: “65036e7169627531010b73d2”, “ObjectType”: “uuidpool.Block”, “link”: “[https://www.intersight.com/api/v1/uuidpool/Blocks/65036e7169627531010b73d2](https://www.intersight.com/api/v1/uuidpool/Blocks/65036e7169627531010b73d2)”}], “ClassId”: “uuidpool.Pool”, “CreateTime”: “2023-09-14T20:34:57.18Z”, “Description”: “liprd-uuid-pool”, “DomainGroupMoid”: “64fb3cbd7564613301d27633”, “ModTime”: “2023-09-14T20:34:57.187Z”, “Moid”: “65036e7169627531010b73cf”, “Name”: “liprd-uuid-pool”, “ObjectType”: “uuidpool.Pool”, “Organization”: {“ClassId”: “mo.MoRef”, “Moid”: “64fb3cc06972653301785b28”, “ObjectType”: “organization.Organization”, “link”: “[https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28](https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28)”}, “Owners”: [“64fb3cbd7564613301d27632”], “PermissionResources”: [{“ClassId”: “mo.MoRef”, “Moid”: “64fb3cc06972653301785b28”, “ObjectType”: “organization.Organization”, “link”: “[https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28](https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28)”}], “Prefix”: “00000000-3000-0000”, “Reservations”: , “Reserved”: 0, “SharedScope”: “”, “Size”: 20, “Tags”: [{“Key”: “configmode”, “Value”: “ansible”}, {“Key”: “prefix”, “Value”: “PKXXXPK”}], “UuidSuffixBlocks”: [{“ClassId”: “uuidpool.UuidBlock”, “From”: “0000-000000000001”, “ObjectType”: “uuidpool.UuidBlock”, “Size”: 20, “To”: “0000-000000000014”}]}, “changed”: false, “trace\_id”: “3QF47O7jzsQWGHSx5Loo0HE-KXuV5G9G\_gj2WzdUGSmPAOCYJBrxTg==”}

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [September 15, 2023, 9:17pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/10 "2023-09-15T21:17:45Z")

</div>

added debug to the loop

The full traceback is:  
File “/var/folders/\_f/psbm0b654t9c729qy7r\_xl240000gn/T/ansible\_cisco.intersight.intersight\_rest\_api\_payload\_dxt4y\_\_0/ansible\_cisco.intersight.intersight\_rest\_api\_payload.zip/ansible\_collections/cisco/intersight/plugins/module\_utils/intersight.py”, line 243, in call\_api  
raise RuntimeError(info[‘status’], info[‘msg’], info[‘body’])  
failed: [localhost] (item={‘name\_of\_uuid\_pool’: ‘UUID Pool 1’, ‘uuid\_prefix’: ‘00000000-0000-0000’, ‘uuid\_size’: 100, ‘uuid\_from’: ‘0000-000000000001’}) =\> {  
“ansible\_loop\_var”: “item”,  
“changed”: false,  
“invocation”: {  
“module\_args”: {  
“api\_body”: {  
“AssignmentOrder”: “default”,  
“Description”: “UUID Pool 1”,  
“Name”: “UUID Pool 1”,  
“Organization”: {  
“Moid”: “64fb3cc06972653301785b28”  
},  
“Prefix”: “00000000-0000-0000”,  
“Tags”: [  
{  
“Key”: “configmode”,  
“Value”: “ansible”  
},  
{  
“Key”: “prefix”,  
“Value”: “PKXXXPK”  
}  
],  
“UuidSuffixBlocks”: [  
{  
“From”: “0000-000000000001”,  
“Size”: “100”  
}  
]  
},  
“api\_key\_id”: “64fb3cbd7564613301d27632/64fb3cbe7564613301d27636/64fe94c77564613301f091c2”,  
“api\_private\_key”: “VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER”,  
“api\_uri”: “[https://intersight.com/api/v1](https://intersight.com/api/v1)”,  
“list\_body”: null,  
“query\_params”: {  
“$filter”: “Name eq ‘UUID Pool 1’”  
},  
“resource\_path”: “/uuidpool/Pools”,  
“return\_list”: false,  
“state”: “present”,  
“update\_method”: “patch”,  
“use\_proxy”: true,  
“validate\_certs”: true  
}  
},  
“item”: {  
“name\_of\_uuid\_pool”: “UUID Pool 1”,  
“uuid\_from”: “0000-000000000001”,  
“uuid\_prefix”: “00000000-0000-0000”,  
“uuid\_size”: 100  
},  
“msg”: "API error: (400, ‘HTTP Error 400: Bad Request’, b’{"code":"InvalidRequest","message":"Cannot execute the request. The JSON document is malformed.","messageId":"barcelona\_request\_malformed\_json","traceId":"ur4PRfwWJ10NUyohmov0beVOPV4DCu\_Mkab1JyqRHBL371h-FJKcEQ==","cause":{"code":"InternalServerError","message":"Cannot execute the request due to an error. Retry later.","messageId":"barcelona\_request\_internal\_error","traceId":"ur4PRfwWJ10NUyohmov0beVOPV4DCu\_Mkab1JyqRHBL371h-FJKcEQ=="}}') "

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [September 16, 2023, 5:16am UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/11 "2023-09-16T05:16:27Z")

</div>

This is again a failed attempt…

To summarise, a task is failing with an error about malformed JSON, if you run it in a loop. And it succeeds without a loop.  
So, if you run both of them using -v, this will allow you to compare their invocation (to be precise, the api\_body key).

You should compare that value between the failed and successful run.

---

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [September 16, 2023, 5:11pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/12 "2023-09-16T17:11:37Z")

</div>

i already posted this without the loop: please see below. I am not sure why the loop is not working.

this is from the successful attempt without loop

TASK [create\_pools : Create UUID Pool1] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost] =\> {“api\_response”: {“AccountMoid”: “64fb3cbd7564613301d27632”, “Ancestors”: , “Assigned”: 0, “AssignmentOrder”: “default”, “BlockHeads”: [{“ClassId”: “mo.MoRef”, “Moid”: “65036e7069627531010b73cc”, “ObjectType”: “uuidpool.Block”, “link”: “[https://www.intersight.com/api/v1/uuidpool/Blocks/65036e7069627531010b73cc](https://www.intersight.com/api/v1/uuidpool/Blocks/65036e7069627531010b73cc)”}], “ClassId”: “uuidpool.Pool”, “CreateTime”: “2023-09-14T20:34:56.056Z”, “Description”: “UUID\_default\_01”, “DomainGroupMoid”: “64fb3cbd7564613301d27633”, “ModTime”: “2023-09-14T20:34:56.064Z”, “Moid”: “65036e7069627531010b73c9”, “Name”: “UUID\_default\_01”, “ObjectType”: “uuidpool.Pool”, “Organization”: {“ClassId”: “mo.MoRef”, “Moid”: “64fb3cc06972653301785b28”, “ObjectType”: “organization.Organization”, “link”: “[https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28](https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28)”}, “Owners”: [“64fb3cbd7564613301d27632”], “PermissionResources”: [{“ClassId”: “mo.MoRef”, “Moid”: “64fb3cc06972653301785b28”, “ObjectType”: “organization.Organization”, “link”: “[https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28](https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28)”}], “Prefix”: “00000000-0000-0000”, “Reservations”: , “Reserved”: 0, “SharedScope”: “”, “Size”: 100, “Tags”: [{“Key”: “configmode”, “Value”: “ansible”}, {“Key”: “prefix”, “Value”: “PKXXXPK”}], “UuidSuffixBlocks”: [{“ClassId”: “uuidpool.UuidBlock”, “From”: “0000-000000000001”, “ObjectType”: “uuidpool.UuidBlock”, “Size”: 100, “To”: “0000-000000000064”}]}, “changed”: false, “trace\_id”: “Cvz\_QEUlWzAC1sIt\_gToSQMndG0T9FtgfA7\_j4r87Gdy62jJzp\_eTQ==”}

TASK [create\_pools : Create UUID Pool2] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost] =\> {“api\_response”: {“AccountMoid”: “64fb3cbd7564613301d27632”, “Ancestors”: , “Assigned”: 0, “AssignmentOrder”: “default”, “BlockHeads”: [{“ClassId”: “mo.MoRef”, “Moid”: “65036e7169627531010b73d2”, “ObjectType”: “uuidpool.Block”, “link”: “[https://www.intersight.com/api/v1/uuidpool/Blocks/65036e7169627531010b73d2](https://www.intersight.com/api/v1/uuidpool/Blocks/65036e7169627531010b73d2)”}], “ClassId”: “uuidpool.Pool”, “CreateTime”: “2023-09-14T20:34:57.18Z”, “Description”: “liprd-uuid-pool”, “DomainGroupMoid”: “64fb3cbd7564613301d27633”, “ModTime”: “2023-09-14T20:34:57.187Z”, “Moid”: “65036e7169627531010b73cf”, “Name”: “liprd-uuid-pool”, “ObjectType”: “uuidpool.Pool”, “Organization”: {“ClassId”: “mo.MoRef”, “Moid”: “64fb3cc06972653301785b28”, “ObjectType”: “organization.Organization”, “link”: “[https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28](https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28)”}, “Owners”: [“64fb3cbd7564613301d27632”], “PermissionResources”: [{“ClassId”: “mo.MoRef”, “Moid”: “64fb3cc06972653301785b28”, “ObjectType”: “organization.Organization”, “link”: “[https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28](https://www.intersight.com/api/v1/organization/Organizations/64fb3cc06972653301785b28)”}], “Prefix”: “00000000-3000-0000”, “Reservations”: , “Reserved”: 0, “SharedScope”: “”, “Size”: 20, “Tags”: [{“Key”: “configmode”, “Value”: “ansible”}, {“Key”: “prefix”, “Value”: “PKXXXPK”}], “UuidSuffixBlocks”: [{“ClassId”: “uuidpool.UuidBlock”, “From”: “0000-000000000001”, “ObjectType”: “uuidpool.UuidBlock”, “Size”: 20, “To”: “0000-000000000014”}]}, “changed”: false, “trace\_id”: “3QF47O7jzsQWGHSx5Loo0HE-KXuV5G9G\_gj2WzdUGSmPAOCYJBrxTg==”}

![](https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif)

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [September 16, 2023, 5:39pm UTC](https://forum.ansible.com/t/ansible-ucs-intersight-error/38441/13 "2023-09-16T17:39:02Z")

</div>

Try with -vv or with -vvv until you see the invocation structure
