Hi everyone,
I need to create an user and a team with the awx cli.
exemple :
awx users create test
I’ve got this error :
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): AWXURL
DEBUG:urllib3.connectionpool:https://AWXURL “GET /api/ HTTP/1.1” 200 198
DEBUG:awxkit.api.client:“GET https://AWXURL/api/” elapsed: 0:00:00.059704
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.api.ApiV2’> by url: /api/v2/
DEBUG:urllib3.connectionpool:https://AWXURL “GET /api/v2/ HTTP/1.1” 200 1708
DEBUG:awxkit.api.client:“GET https://AWXURL/api/v2/” elapsed: 0:00:00.041160
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.users.Users’> by url: /api/v2/users/
DEBUG:urllib3.connectionpool:https://AWXURL “OPTIONS /api/v2/users/ HTTP/1.1” 200 10005
DEBUG:awxkit.api.client:“OPTIONS https://AWXURL/api/v2/users/” elapsed: 0:00:00.070306
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.users.Users’> by url: /api/v2/users/
DEBUG:urllib3.connectionpool:https://AWXURL “OPTIONS /api/v2/users/1/ HTTP/1.1” 200 3897
DEBUG:awxkit.api.client:“OPTIONS https://AWXURL/api/v2/users/1/” elapsed: 0:00:00.066209
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.organizations.Organizations’> by url: /api/v2/organizations/
DEBUG:urllib3.connectionpool:https://AWXURL “OPTIONS /api/v2/organizations/ HTTP/1.1” 200 10075
DEBUG:awxkit.api.client:“OPTIONS https://AWXURL/api/v2/organizations/” elapsed: 0:00:00.142011
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.organizations.Organizations’> by url: /api/v2/organizations/
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.projects.Projects’> by url: /api/v2/projects/
DEBUG:urllib3.connectionpool:https://AWXURL “OPTIONS /api/v2/projects/ HTTP/1.1” 200 18626
DEBUG:awxkit.api.client:“OPTIONS https://AWXURL/api/v2/projects/” elapsed: 0:00:00.077585
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.projects.Projects’> by url: /api/v2/projects/
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.inventory.Inventories’> by url: /api/v2/inventories/
DEBUG:urllib3.connectionpool:https://AWXURL “OPTIONS /api/v2/inventories/ HTTP/1.1” 200 13332
DEBUG:awxkit.api.client:“OPTIONS https://AWXURL/api/v2/inventories/” elapsed: 0:00:00.065026
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.inventory.Inventories’> by url: /api/v2/inventories/
DEBUG:awxkit.api.registry:Retrieved <class ‘awxkit.api.pages.inventory.InventoryScripts’> by url: /api/v2/inventory_scripts/
DEBUG:urllib3.connectionpool:https://AWXURL “OPTIONS /api/v2/inventory_scripts/ HTTP/1.1” 404 55
DEBUG:awxkit.api.client:“OPTIONS https://AWXURL/api/v2/inventory_scripts/” elapsed: 0:00:00.034487
Traceback (most recent call last):
File “/home/jonathan/.local/lib/python3.8/site-packages/awxkit/cli/init.py”, line 25, in run
cli.parse_resource()
File “/home/jonathan/.local/lib/python3.8/site-packages/awxkit/cli/client.py”, line 168, in parse_resource
response = self.parse_action(resource)
File “/home/jonathan/.local/lib/python3.8/site-packages/awxkit/cli/client.py”, line 229, in parse_action
parser = ResourceOptionsParser(self.v2, page, self.resource, subparsers)
File “/home/jonathan/.local/lib/python3.8/site-packages/awxkit/cli/options.py”, line 103, in init
self.handle_custom_actions()
File “/home/jonathan/.local/lib/python3.8/site-packages/awxkit/cli/options.py”, line 286, in handle_custom_actions
action(self.page).add_arguments(self.parser, self)
File “/home/jonathan/.local/lib/python3.8/site-packages/awxkit/cli/custom.py”, line 412, in add_arguments
options = self.page.class(
File “/home/jonathan/.local/lib/python3.8/site-packages/awxkit/api/pages/page.py”, line 511, in options
return self._create().options()
File “/home/jonathan/.local/lib/python3.8/site-packages/awxkit/api/pages/page.py”, line 296, in options
return self.page_identity(r)
File “/home/jonathan/.local/lib/python3.8/site-packages/awxkit/api/pages/page.py”, line 211, in page_identity
raise exception(exc_str, data)
awxkit.exceptions.NotFound: Not Found (404) received - {‘detail’: ‘The requested resource could not be found.’}
<_io.TextIOWrapper name=‘’ mode=‘w’ encoding=‘utf-8’>
{“detail”: “The requested resource could not be found.”}
I’ve got an 404 with “inventory_scripts”.
I’ve missed something ?
Thanks
awx version : 21.4.0
awx cli version : 3.8.6