RPC API documentation v34.4.0

Back to Documentation Version:  General How to use RPC Managers AttributesManagerAuditMessagesManagerAuthzResolverCabinetManagerConfigManagerConsentsManagerDatabaseManagerExtSourcesManagerFacilitiesManagerGroupsManagerIntegrationManagerMembersManagerNotificationManagerOwnersManagerRTMessagesManagerRegistrarManagerResourcesManagerSearcherSecurityTeamsManagerServicesManagerTasksManagerUsersManagerVosManager

ExtSourcesManager

Associate an external source definition with a VO.

Parameter nameData typeDescription
vointVO id
sourceintExtSource id
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
void

Example URL

https://[hostname]/krb/rpc/json/extSourcesManager/addExtSource

Example params

{ "vo" : 7 , "source" : 14 }

Example response

null

Associate an external source definition with a GROUP.

Parameter nameData typeDescription
groupintGROUP id
sourceintExtSource id
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
void

Example URL

https://[hostname]/krb/rpc/json/extSourcesManager/addExtSource

Example params

{ "group" : 31 , "source" : 45 }

Example response

null

Associate external source definitions with a VO.

Parameter nameData typeDescription
vointVO id
sourceIdsList<Integer>ExtSource id
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
void

Example URL

https://[hostname]/krb/rpc/json/extSourcesManager/addExtSources

Example params

{ "vo" : 29 , "sourceIds" : [ 85 , 80 ] }

Example response

null

Associate external source definitions with a GROUP.

Parameter nameData typeDescription
groupintGROUP id
extSourcesList<Integer>ExtSource id
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
void

Example URL

https://[hostname]/krb/rpc/json/extSourcesManager/addExtSources

Example params

{ "group" : 73 , "extSources" : [ 15 , 49 ] }

Example response

null

Creates an external source. ExtSource object must contain: name, type. Other parameters are ignored.

Parameter nameData typeDescription
extSourceExtSourceJSON object
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
ExtSourceCreated 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 nameData typeDescription
nameStringname of ExtSource
typeStringtype of ExtSource
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
ExtSourceCreated 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 nameData typeDescription
nameStringExtSource name
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
ExtSourceFound 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 exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
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 nameData typeDescription
groupintGROUP id
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
List<ExtSource>GROUP external sources

Example URL

https://[hostname]/krb/rpc/json/extSourcesManager/getGroupExtSources

Example params

{ "group" : 99 }

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 exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
void

Example URL

https://[hostname]/krb/rpc/json/extSourcesManager/loadExtSourcesDefinitions

Example response

null

Remove an association of an external source from a VO.

Parameter nameData typeDescription
vointVO id
sourceintExtSource id
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
void

Example URL

https://[hostname]/krb/rpc/json/extSourcesManager/removeExtSource

Example params

{ "vo" : 84 , "source" : 15 }

Example response

null

Remove an association of an external source from a GROUP.

Parameter nameData typeDescription
groupintGROUP id
sourceintExtSource id
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
void

Example URL

https://[hostname]/krb/rpc/json/extSourcesManager/removeExtSource

Example params

{ "group" : 49 , "source" : 2 }

Example response

null

Remove associations of external sources from a VO.

Parameter nameData typeDescription
vointVO id
sourceIdsList<Integer>ExtSource id
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
void

Example URL

https://[hostname]/krb/rpc/json/extSourcesManager/removeExtSources

Example params

{ "vo" : 83 , "sourceIds" : [ 90 , 99 ] }

Example response

null

Remove associations of external sources from a GROUP.

Parameter nameData typeDescription
groupintGROUP id
extSourcesList<Integer>ExtSource id
Thrown exceptionDescription
InternalErrorExceptionWhen unspecified error occur. See exception param message for explanation.
PrivilegeExceptionWhen caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values.
RpcExceptionWrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation.
Return typeDescription
void

Example URL

https://[hostname]/krb/rpc/json/extSourcesManager/removeExtSources

Example params

{ "group" : 52 , "extSources" : [ 48 , 43 ] }

Example response

null