Associate an external source definition with a VO.
| Parameter name | Data type | Description |
|---|---|---|
| vo | int | VO id |
| source | int | ExtSource id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/addExtSource
Example params
{ "vo" : 46 , "source" : 67 }Example response
nullAssociate an external source definition with a GROUP.
| Parameter name | Data type | Description |
|---|---|---|
| group | int | GROUP id |
| source | int | ExtSource id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/addExtSource
Example params
{ "group" : 13 , "source" : 57 }Example response
nullAssociate external source definitions with a VO.
| Parameter name | Data type | Description |
|---|---|---|
| vo | int | VO id |
| sourceIds | List<Integer> | ExtSource id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/addExtSources
Example params
{ "vo" : 45 , "sourceIds" : [ 7 , 54 ] }Example response
nullAssociate external source definitions with a GROUP.
| Parameter name | Data type | Description |
|---|---|---|
| group | int | GROUP id |
| extSources | List<Integer> | ExtSource id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/addExtSources
Example params
{ "group" : 46 , "extSources" : [ 29 , 22 ] }Example response
nullCreates an external source. ExtSource object must contain: name, type. Other parameters are ignored.
| Parameter name | Data type | Description |
|---|---|---|
| extSource | ExtSource | JSON object |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| ExtSource | Created ExtSource |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/createExtSource
Example params
{ "extSource" : { "name" : "PERUNPEOPLE" , "type" : "cz.metacentrum.perun.core.impl.ExtSourceSql" , "attributes" : {} , "id" : 2 , "beanName" : "ExtSource" } }Example response
{ "name" : "PERUNPEOPLE" , "type" : "cz.metacentrum.perun.core.impl.ExtSourceSql" , "attributes" : {} , "id" : 2 , "beanName" : "ExtSource" }Creates an external source.
| Parameter name | Data type | Description |
|---|---|---|
| name | String | name of ExtSource |
| type | String | type of ExtSource |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| ExtSource | Created ExtSource |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/createExtSource
Example params
{ "name" : "text" , "type" : "text" }Example response
{ "name" : "PERUNPEOPLE" , "type" : "cz.metacentrum.perun.core.impl.ExtSourceSql" , "attributes" : {} , "id" : 2 , "beanName" : "ExtSource" }Returns an external source by its name.
| Parameter name | Data type | Description |
|---|---|---|
| name | String | ExtSource name |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| ExtSource | Found ExtSource |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/getExtSourceByName
Example params
{ "name" : "text" }Example response
{ "name" : "PERUNPEOPLE" , "type" : "cz.metacentrum.perun.core.impl.ExtSourceSql" , "attributes" : {} , "id" : 2 , "beanName" : "ExtSource" }Returns the list of all external sources.
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<ExtSource> | all external sources |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/getExtSources
Example response
[ { "name" : "PERUNPEOPLE" , "type" : "cz.metacentrum.perun.core.impl.ExtSourceSql" , "attributes" : {} , "id" : 2 , "beanName" : "ExtSource" } , {...} , {...} ]Returns the list of external sources associated with a GROUP.
| Parameter name | Data type | Description |
|---|---|---|
| group | int | GROUP id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| List<ExtSource> | GROUP external sources |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/getGroupExtSources
Example params
{ "group" : 25 }Example response
[ { "name" : "PERUNPEOPLE" , "type" : "cz.metacentrum.perun.core.impl.ExtSourceSql" , "attributes" : {} , "id" : 2 , "beanName" : "ExtSource" } , {...} , {...} ]Loads ext source definitions from the configuration file and updates entries stored in the DB.
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/loadExtSourcesDefinitions
Example response
nullRemove an association of an external source from a VO.
| Parameter name | Data type | Description |
|---|---|---|
| vo | int | VO id |
| source | int | ExtSource id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/removeExtSource
Example params
{ "vo" : 54 , "source" : 85 }Example response
nullRemove an association of an external source from a GROUP.
| Parameter name | Data type | Description |
|---|---|---|
| group | int | GROUP id |
| source | int | ExtSource id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/removeExtSource
Example params
{ "group" : 3 , "source" : 0 }Example response
nullRemove associations of external sources from a VO.
| Parameter name | Data type | Description |
|---|---|---|
| vo | int | VO id |
| sourceIds | List<Integer> | ExtSource id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/removeExtSources
Example params
{ "vo" : 46 , "sourceIds" : [ 35 , 24 ] }Example response
nullRemove associations of external sources from a GROUP.
| Parameter name | Data type | Description |
|---|---|---|
| group | int | GROUP id |
| extSources | List<Integer> | ExtSource id |
| Thrown exception | Description |
|---|---|
| InternalErrorException | When unspecified error occur. See exception param message for explanation. |
| PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
| RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
| Return type | Description |
|---|---|
| void |
Example URL
https://[hostname]/krb/rpc/json/extSourcesManager/removeExtSources
Example params
{ "group" : 8 , "extSources" : [ 46 , 60 ] }Example response
null