mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
update shared client code for api v2
This commit is contained in:
parent
7a0a2fb54c
commit
5987aafb82
@ -20,7 +20,7 @@
|
||||
*
|
||||
* ```
|
||||
* /api/v2/inventories/9/
|
||||
* /api/v2/credentials/?name=SSH Key&kind=ssh
|
||||
* /api/v2/credentials/?name=SSH Key&credential_type__namespace=ssh
|
||||
* ```
|
||||
*
|
||||
* When constructing the URL be sure to use the GetBasePath() method found in js/shared/Utilities.js. GetBasePath uses the response objects from /api and
|
||||
|
||||
@ -654,13 +654,13 @@ function(SettingsUtils, i18n, $rootScope) {
|
||||
else {
|
||||
switch(base) {
|
||||
case 'credential':
|
||||
query += '&kind=ssh&role_level=use_role';
|
||||
query += '&credential_type__namespace=ssh&role_level=use_role';
|
||||
break;
|
||||
case 'scm_credential':
|
||||
query += '&kind=scm&role_level=use_role';
|
||||
query += '&redential_type__namespace=scm&role_level=use_role';
|
||||
break;
|
||||
case 'network_credential':
|
||||
query += '&kind=net&role_level=use_role';
|
||||
query += '&redential_type__namespace=net&role_level=use_role';
|
||||
break;
|
||||
case 'cloud_credential':
|
||||
query += '&cloud=true&role_level=use_role';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user