Checks if this user-facility attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
FacilityNotExistsException | When the facility with id doesn't exist. |
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. |
UserNotExistsException | When the User with id doesn't exist. |
WrongAttributeAssignmentException | When the attribute with id isn't user-facility attribute. |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "facility" : 9 , "user" : 52 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this facility attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
FacilityNotExistsException | When the facility with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't facility attribute. |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "facility" : 41 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this vo attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
vo | int | Vo id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
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. |
VoNotExistsException | When the vo with id doesn't exist. |
WrongAttributeAssignmentException | When the attribute isn't attribute of Vo with id . |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "vo" : 34 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this member-resource attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
member | int | Member id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberNotExistsException | When the member with id doesn't exist. |
MemberResourceMismatchException | When the member with id and resource with id aren't from the same Vo. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
ResourceNotExistsException | When the resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
WrongAttributeAssignmentException | When the attribute with id isn't member-resource attribute. |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "resource" : 79 , "member" : 88 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this group-resource attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
group | int | Group id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
GroupResourceMismatchException | When the group with id and Resource with id aren't from the same Vo. |
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. |
ResourceNotExistsException | When the resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
WrongAttributeAssignmentException | When the attribute with id isn't group-resource attribute. |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "resource" : 44 , "group" : 12 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this resource attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
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. |
ResourceNotExistsException | When the resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
WrongAttributeAssignmentException | When the attribute with id isn't attribute of Resource with id . |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "resource" : 60 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this member-group attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-group attribute. |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "member" : 59 , "group" : 56 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this member attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-resource attribute. |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "member" : 79 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this group attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't attribute of Group with id . |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of referenced attribute (if any) is not valid. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "group" : 92 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this host attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
HostNotExistsException | When the host with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't attribute of Host with id . |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of referenced attribute (if any) is not valid. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "host" : 25 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this user attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
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. |
UserNotExistsException | When the user with id doesn't exist. |
WrongAttributeAssignmentException | When the attribute with id isn't user-facility attribute. |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of referenced attribute (if any) is not valid. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "user" : 45 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this userExtSource attribute has valid semantics.
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
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. |
UserExtSourceNotExistsException | When the specified user external source with id doesn't exist. |
WrongAttributeAssignmentException | When the attribute with id isn't attribute of UserExtSource with id . |
WrongAttributeValueException | When the attribute value is wrong/illegal. |
WrongReferenceAttributeValueException | When value of referenced attribute (if any) is not valid. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSemantics
Example params
{ "userExtSource" : 43 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this user-facility attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
FacilityNotExistsException | When the facility with id doesn't exist. |
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. |
UserNotExistsException | When the User with id doesn't exist. |
WrongAttributeAssignmentException | When the attribute with id isn't user-facility attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "facility" : 89 , "user" : 16 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this facility attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
FacilityNotExistsException | When the facility with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't facility attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "facility" : 23 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this vo attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
vo | int | Vo id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
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. |
VoNotExistsException | When the vo with id doesn't exist. |
WrongAttributeAssignmentException | When the attribute isn't attribute of Vo with id . |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "vo" : 38 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this member-resource attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
member | int | Member id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberNotExistsException | When the member with id doesn't exist. |
MemberResourceMismatchException | When the member with id and resource with id aren't from the same Vo. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
ResourceNotExistsException | When the resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
WrongAttributeAssignmentException | When the attribute with id isn't member-resource attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "resource" : 34 , "member" : 70 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this group-resource attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
group | int | Group id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
GroupResourceMismatchException | When the group with id and Resource with id aren't from the same Vo. |
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. |
ResourceNotExistsException | When the resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
WrongAttributeAssignmentException | When the attribute with id isn't group-resource attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "resource" : 57 , "group" : 50 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this resource attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
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. |
ResourceNotExistsException | When the resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
WrongAttributeAssignmentException | When the attribute with id isn't attribute of Resource with id . |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "resource" : 34 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this member-group attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-group attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "member" : 12 , "group" : 79 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this member attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-resource attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "member" : 34 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this group attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't attribute of Group with id . |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "group" : 23 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this host attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
HostNotExistsException | When the host with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't attribute of Host with id . |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "host" : 82 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this user attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
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. |
UserNotExistsException | When the user with id doesn't exist. |
WrongAttributeAssignmentException | When the attribute with id isn't user-facility attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "user" : 63 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if this userExtSource attribute has valid syntax.
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource id |
attribute | Attribute | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
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. |
UserExtSourceNotExistsException | When the specified user external source with id doesn't exist. |
WrongAttributeAssignmentException | When the attribute with id isn't attribute of UserExtSource with id . |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributeSyntax
Example params
{ "userExtSource" : 10 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Checks if attributes have valid semantics. These attributes can be from namespace: member, user, member-resource and user-facility.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
resource | int | Resource id |
user | int | User id |
member | int | Member id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSemantics
Example params
{ "facility" : 33 , "resource" : 28 , "user" : 56 , "member" : 58 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these user-facility attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSemantics
Example params
{ "facility" : 81 , "user" : 89 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these facility attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSemantics
Example params
{ "facility" : 95 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these vo attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
vo | int | Vo id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSemantics
Example params
{ "vo" : 83 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these member-resource attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
member | int | Member id |
attributes | List<Attribute> | Attributes List |
workWithUserAttributes | boolean | If true , process also User and Member attributes. false is default. |
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/attributesManager/checkAttributesSemantics
Example params
{ "resource" : 86 , "member" : 34 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] , "workWithUserAttributes" : true }
Example response
null
Checks if these member-resource attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
member | int | Member id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSemantics
Example params
{ "resource" : 92 , "member" : 51 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these group-resource attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
group | int | Group id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSemantics
Example params
{ "resource" : 59 , "group" : 56 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these resource attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSemantics
Example params
{ "resource" : 19 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these member-group attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attributes | List<Attribute> | Attributes List |
workWithUserAttributes | boolean | If true , process also User and Member attributes. false is default. |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-group attribute. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributesSemantics
Example params
{ "member" : 25 , "group" : 6 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] , "workWithUserAttributes" : true }
Example response
null
Checks if these member-group attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attributes | List<Attribute> | Attributes List |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-group attribute. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributesSemantics
Example params
{ "member" : 82 , "group" : 92 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these member attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSemantics
Example params
{ "member" : 73 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these host attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSemantics
Example params
{ "host" : 54 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these user attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSemantics
Example params
{ "user" : 98 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these userExtSource attributes have valid semantics.
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSemantics
Example params
{ "userExtSource" : 3 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if attributes have valid syntax. These attributes can be from namespace: member, user, member-resource and user-facility.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
resource | int | Resource id |
user | int | User id |
member | int | Member id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSyntax
Example params
{ "facility" : 46 , "resource" : 64 , "user" : 76 , "member" : 9 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these user-facility attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSyntax
Example params
{ "facility" : 65 , "user" : 29 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these facility attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSyntax
Example params
{ "facility" : 28 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these vo attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
vo | int | Vo id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSyntax
Example params
{ "vo" : 21 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these member-resource attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
member | int | Member id |
attributes | List<Attribute> | Attributes List |
workWithUserAttributes | boolean | If true , process also User and Member attributes. false is default. |
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/attributesManager/checkAttributesSyntax
Example params
{ "resource" : 30 , "member" : 39 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] , "workWithUserAttributes" : true }
Example response
null
Checks if these member-resource attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
member | int | Member id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSyntax
Example params
{ "resource" : 90 , "member" : 89 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these group-resource attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
group | int | Group id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSyntax
Example params
{ "resource" : 54 , "group" : 97 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these resource attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSyntax
Example params
{ "resource" : 19 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these member-group attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attributes | List<Attribute> | Attributes List |
workWithUserAttributes | boolean | If true , process also User and Member attributes. false is default. |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-group attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributesSyntax
Example params
{ "member" : 20 , "group" : 88 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] , "workWithUserAttributes" : true }
Example response
null
Checks if these member-group attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attributes | List<Attribute> | Attributes List |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-group attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/checkAttributesSyntax
Example params
{ "member" : 18 , "group" : 22 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these member attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSyntax
Example params
{ "member" : 67 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these host attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSyntax
Example params
{ "host" : 7 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these user attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSyntax
Example params
{ "user" : 71 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Checks if these userExtSource attributes have valid syntax.
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource id |
attributes | List<Attribute> | Attributes List |
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/attributesManager/checkAttributesSyntax
Example params
{ "userExtSource" : 11 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Converts attribute to nonunique - unmarks unique flag from attribute definition, and deletes all values from a special table with unique constraint that ensures that all values remain unique.
Parameter name | Data type | Description |
---|---|---|
attrDefId | int | AttributeDefinition id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When Attribute with id doesn't exist. |
AttributeNotMarkedUniqueException | When Attribute with id is not unique. |
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/attributesManager/convertAttributeToNonunique
Example params
{ "attrDefId" : 83 }
Example response
null
Converts attribute to unique - marks its definition as unique and ensures that all its values are unique. Entityless attributes cannot be converted to unique, only attributes attached to PerunBeans or pairs of PerunBeans.
Parameter name | Data type | Description |
---|---|---|
attrDefId | int | AttributeDefinition id |
Thrown exception | Description |
---|---|
AttributeAlreadymarkedUniqueException | When Attribute is already marked as unique. |
AttributeNotExistsException | When Attribute with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
InternalErrorException | when some attribute values are not unique |
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/attributesManager/convertAttributeToUnique
Example params
{ "attrDefId" : 36 }
Example response
null
Creates AttributeDefinition AttributeDefinition object must contain: namespace, friendlyName, type. Description, displayName and unique are optional. Other Parameters are ignored.
Parameter name | Data type | Description |
---|---|---|
attribute | AttributeDefinition | 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 |
---|---|
AttributeDefinition | Created AttributeDefinition |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/createAttribute
Example params
{ "attribute" : { "friendlyName": "kerberosLogins", "namespace": "urn:perun:user:attribute-def:def", "type": "java.util.ArrayList" } }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" }
Creates AttributeDefinition
Parameter name | Data type | Description |
---|---|---|
friendlyName | String | friendlyName |
namespace | String | namespace in URN format |
description | String | description |
type | String | type which is one of the: "java.lang.String", "java.lang.Integer", "java.lang.Boolean", "java .util.ArrayList", "java.util.LinkedHashMap" |
displayName | String | displayName |
unique | Boolean | unique |
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 |
---|---|
AttributeDefinition | Created AttributeDefinition |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/createAttribute
Example params
{ "friendlyName" : "kerberosLogins" , "namespace" : "urn:perun:user:attribute-def:def" , "description" : "text" , "type" : "java.util.ArrayList" , "displayName" : "text" , "unique" : {...} }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" }
Deletes attribute definition from Perun including all values set for any entity
Parameter name | Data type | Description |
---|---|---|
attribute | int | AttributeDefinition 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. |
RelationExistsException | When attribute definition has any relation to some application form item or to some service as a required attribute |
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/attributesManager/deleteAttribute
Example params
{ "attribute" : 5 }
Example response
null
Deletes multiple attribute definitions from Perun including all values set for any entity.
Parameter name | Data type | Description |
---|---|---|
attributes | List<int> | AttributeDefinition 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/attributesManager/deleteAttributes
Example params
{ "attributes" : {...} }
Example response
null
Takes all Member related attributes (Member, User, Member-Resource, User-Facility) and tries to fill them and set them.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberNotExistsException | When Member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When we try to fill/set Attribute from unrelated namespace. |
WrongAttributeValueException | When value of some Attribute is not correct. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/doTheMagic
Example params
{ "member" : 62 }
Example response
null
Tries to fill host attribute.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attribute | int | Attribute 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 |
---|---|
Attribute | attribute which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttribute
Example params
{ "host" : 70 , "attribute" : 92 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Tries to fill group-resource attribute.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
group | int | Group id |
attribute | int | Attribute 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 |
---|---|
Attribute | attribute which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttribute
Example params
{ "resource" : 30 , "group" : 12 , "attribute" : 39 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Tries to fill member-resource attribute.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
member | int | Member id |
attribute | int | Attribute 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 |
---|---|
Attribute | attribute which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttribute
Example params
{ "resource" : 62 , "member" : 69 , "attribute" : 56 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Tries to fill resource attribute.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attribute | int | Attribute 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 |
---|---|
Attribute | attribute which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttribute
Example params
{ "resource" : 61 , "attribute" : 44 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Tries to fill user-facility attribute.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
facility | int | Facility id |
attribute | int | Attribute 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 |
---|---|
Attribute | attribute which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttribute
Example params
{ "user" : 91 , "facility" : 70 , "attribute" : 9 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Tries to fill user attribute.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attribute | int | Attribute 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 |
---|---|
Attribute | attribute which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttribute
Example params
{ "user" : 54 , "attribute" : 84 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Tries to fill member-group attribute.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attribute | int | Attribute id |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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 |
---|---|
Attribute | attribute which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttribute
Example params
{ "member" : 89 , "group" : 96 , "attribute" : 22 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Tries to fill member attribute.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attribute | int | Attribute 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 |
---|---|
Attribute | attribute which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttribute
Example params
{ "member" : 77 , "attribute" : 67 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Tries to fill group attribute.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
attribute | int | Attribute 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 |
---|---|
Attribute | attribute which may have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttribute
Example params
{ "group" : 4 , "attribute" : 38 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Tries to fill host attributes.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attributes | List<Attribute> | List of attributes |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "host" : 74 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Tries to fill group-resource attributes.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
group | int | Group id |
attributes | List<Attribute> | List of attributes |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "resource" : 72 , "group" : 39 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Tries to fill user, member, member-resource and user-facility attributes.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
resource | int | Resource id |
user | int | User id |
member | int | Member id |
attributes | List<Attribute> | List of attributes |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "facility" : 74 , "resource" : 15 , "user" : 50 , "member" : 83 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Tries to fill member-resource attributes and also user and user-facility attributes, if workWithUserAttributes == true.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
member | int | Member id |
attributes | List<Attribute> | List of attributes |
workWithUserAttributes | boolean | Work with user attributes. False is default value. |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "resource" : 0 , "member" : 42 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Tries to fill member-resource attributes.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
member | int | Member id |
attributes | List<Attribute> | List of attributes |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "resource" : 13 , "member" : 51 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Tries to fill resource attributes.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attributes | List<Attribute> | List of attributes |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "resource" : 13 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Tries to fill member-group attributes and also member and user attributes, if workWithUserAttributes == true.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attributes | List<Attribute> | List of attributes |
workWithUserAttributes | boolean | If true , process also User and Member attributes. False is default. |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "member" : 63 , "group" : 84 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Tries to fill member-group attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attributes | List<Attribute> | List of attributes |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "member" : 38 , "group" : 54 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Tries to fill member attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attributes | List<Attribute> | List of attributes |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "member" : 55 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Tries to fill user-facility attributes.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
attributes | List<Attribute> | List of attributes |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "facility" : 55 , "user" : 88 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Tries to fill user attributes.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attributes | List<Attribute> | List of attributes |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "user" : 65 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Tries to fill group attributes.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
attributes | List<Attribute> | List of attributes |
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<Attribute> | attributes which MAY have filled value |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/fillAttributes
Example params
{ "group" : 4 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns list of all possible namespaces
Parameter name | Data type | Description |
---|---|---|
sess | session |
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 | of namespaces |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAllNamespaces
Example params
{ "sess" : {...} }
Example response
{ ... TODO ... }
Returns an Attribute by its id
.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
attributeId | int | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "facility" : 81 , "user" : 77 , "attributeId" : 35 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its id
.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
attributeId | int | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "facility" : 62 , "attributeId" : 55 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its id
.
Parameter name | Data type | Description |
---|---|---|
vo | int | VO id |
attributeId | int | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "vo" : 47 , "attributeId" : 29 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its id
.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resource | int | Resource id |
attributeId | int | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "member" : 87 , "resource" : 33 , "attributeId" : 85 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its id
.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
resource | int | Resource id |
attributeId | int | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "group" : 95 , "resource" : 7 , "attributeId" : 90 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its id
.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attributeId | int | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "resource" : 27 , "attributeId" : 53 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its id
.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attributeId | int | Attribute id |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "member" : 7 , "group" : 76 , "attributeId" : 65 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its id
.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attributeId | int | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "member" : 2 , "attributeId" : 7 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its id
.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attributeId | int | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "user" : 54 , "attributeId" : 27 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its id
.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attributeId | int | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "host" : 10 , "attributeId" : 41 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its id
.
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource id |
attributeId | int | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "userExtSource" : 31 , "attributeId" : 12 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
attributeName | String | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "facility" : 58 , "user" : 1 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
attributeName | String | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "facility" : 76 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
vo | int | VO id |
attributeName | String | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "vo" : 69 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resource | int | Resource id |
attributeName | String | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "member" : 56 , "resource" : 76 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
resource | int | Resource id |
attributeName | String | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "group" : 67 , "resource" : 20 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
attributeName | String | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "group" : 75 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attributeName | String | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "resource" : 87 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attributeName | String | Attribute name |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "member" : 4 , "group" : 85 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attributeName | String | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "member" : 5 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attributeName | String | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "user" : 26 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attributeName | String | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "host" : 64 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns an Attribute by its name.
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource id |
attributeName | String | Attribute 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 |
---|---|
Attribute | Found Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttribute
Example params
{ "userExtSource" : 7 , "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" }
Returns AttributeDefinition.
Parameter name | Data type | Description |
---|---|---|
attributeName | String | Attribute 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 |
---|---|
AttributeDefinition | Definition of an Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributeDefinition
Example params
{ "attributeName" : "text" }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" }
Returns AttributeDefinition.
Parameter name | Data type | Description |
---|---|---|
id | int | Attribute 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 |
---|---|
AttributeDefinition | Definition of an Attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributeDefinitionById
Example params
{ "id" : 49 }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" }
Generates text file describing dependencies between attribute modules. The format of text file can be specified by parameter. Modules that has no dependency relations are omitted.
Parameter name | Data type | Description |
---|---|---|
format | String | Currently supported formats are DOT and TGF. |
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
InternalErrorException | when some internal error happens. |
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/attributesManager/getAttributeModulesDependenciesGraphText
Example params
{ "format" : [ "DOT" ] }
Example response
null
Generates image file describing dependencies of given attribute. The format of text file can be specified by parameter. Modules that has no dependency relations are omitted.
Parameter name | Data type | Description |
---|---|---|
attrName | attribute | name which dependencies will be found. |
format | String | Currently supported formats are DOT and TGF. |
Thrown exception | Description |
---|---|
AttributeNotExistsException | when specified attribute doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
InternalErrorException | when some internal error happens. |
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/attributesManager/getAttributeModulesDependenciesGraphText
Example params
{ "attrName" : [ "urn:perun:resource:attribute-def:virt:unixGID" ] , "format" : [ "DOT" ] }
Example response
null
Gets attribute policy collections for an attribute definition with given id.
Parameter name | Data type | Description |
---|---|---|
attributeId | int | AttributeDefinition id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When AttributeDefinition with id doesn't exist. |
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<AttributePolicyCollection> | all policy collections of attribute definition |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributePolicyCollections
Example params
{ "attributeId" : 58 }
Example response
[ { "id" : 10 , "attributeId" : 2220 , "action" : "READ" , "policies" : [ { "id" : 290 , "role" : "RESOURCEADMIN" , "object" : "Resource" , "policyCollectionId" : 10 } , {...} , {...} ] } , {...} , {...} ]
Gets AttributeRights for specified Attribute. Rights specify which Role can do particular actions (read / write) with Attribute. Method always return rights for following roles: VOADMIN, GROUPADMIN, FACILITYADMIN, SELF.
Parameter name | Data type | Description |
---|---|---|
attributeId | int | Attribute id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When Attribute with id doesn't exist. |
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<AttributeRights> | all rights of the attribute |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributeRights
Example params
{ "attributeId" : 48 }
Example response
[ { "attributeId" : 5 , "role" : "VOADMIN", "rights" : [ "READ" , "WRITE"] } , {...} , {...} ]
Gets attribute rules containing policy collections and critical actions for an attribute definition with given id
Parameter name | Data type | Description |
---|---|---|
sess | perun | session |
attributeDefinition | id | of the attribute definition |
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. |
s | AttributeNotExistsException when there is no attribute definition with such id |
Return type | Description |
---|---|
attribute | rules of the attribute definition |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributeRules
Example params
{ "sess" : {...} , "attributeDefinition" : {...} }
Example response
{ ... TODO ... }
Returns all non-empty User-Facility attributes for selected User and Facility.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
Thrown exception | Description |
---|---|
FacilityNotExistsException | When Facility with id doesn't exist. |
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. |
UserNotExistsException | When User with id doesn't exist. |
Return type | Description |
---|---|
List<Attribute> | All non-empty User-Facility attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "facility" : 44 , "user" : 64 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Facility attributes for selected Facility.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
Thrown exception | Description |
---|---|
FacilityNotExistsException | When Facility with id doesn't exist. |
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<Attribute> | All non-empty Facility attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "facility" : 69 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all specified Facility attributes for selected Facility If attrNames
is empty, it returns empty list of attributes
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
attrNames | List<String> | Attribute names |
Thrown exception | Description |
---|---|
FacilityNotExistsException | When Facility with id doesn't exist. |
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<Attribute> | Specified Facility attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "facility" : 17 , "attrNames" : [ "text" , "text" ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Vo attributes for selected Vo.
Parameter name | Data type | Description |
---|---|---|
vo | int | Vo 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. |
VoNotExistsException | When Vo with id doesn't exist. |
Return type | Description |
---|---|
List<Attribute> | All non-empty Vo attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "vo" : 14 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all specified Vo attributes for selected Vo.
Parameter name | Data type | Description |
---|---|---|
vo | int | VO id |
attrNames | List<String> | Attribute names |
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. |
VoNotExistsException | When Vo with id doesn't exist. |
Return type | Description |
---|---|
List<Attribute> | Specified Vo attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "vo" : 32 , "attrNames" : [ "urn:perun:vo:attribute-def:def:contactEmail" , "urn:perun:vo:attribute-def:core:shortName" ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty UserExtSource attributes for selected UserExtSource.
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource 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. |
UserExtSourceNotExistsException | When Ues with id doesn't exist. |
Return type | Description |
---|---|
List<Attribute> | All non-empty UserExtSource attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "userExtSource" : 72 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all specified UserExtSource attributes for selected UserExtSource.
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource id |
attrNames | List<String> | Attribute names |
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. |
UserExtSourceNotExistsException | When userExtSource with id doesn't exist. |
Return type | Description |
---|---|
List<Attribute> | Specified UserExtSource attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "userExtSource" : 18 , "attrNames" : [ "urn:perun:ues:attribute-def:opt:optionalAttribute" ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Member-Resource attributes for selected Member and Resource.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resource | int | Resource id |
workWithUserAttributes | boolean | If true , return also User and Member attributes. False is default. |
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberNotExistsException | When Member with id doesn't exist. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
ResourceNotExistsException | When Resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Attribute> | All non-empty Member-Resource attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "member" : 58 , "resource" : 65 , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns selected non-empty Member, User, Member-Resource and User-Facility attributes (by list of attribute names) for selected Member and Resource.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resource | int | Resource id |
workWithUserAttributes | boolean | If true , return also user and user-facility attributes. False is default. |
attrNames | List<String> | List of attribute names |
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberNotExistsException | When Member with id doesn't exist. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
ResourceNotExistsException | When Resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Attribute> | Selected non-empty User, Member, Member-Resource, User-Facility attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "member" : 80 , "resource" : 42 , "workWithUserAttributes" : true , "attrNames" : [ "text" , "text" ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Member-Resource attributes for selected Member and Resource.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resource | int | Resource id |
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberNotExistsException | When Member with id doesn't exist. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
ResourceNotExistsException | When Resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Attribute> | All non-empty Member-Resource attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "member" : 63 , "resource" : 8 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Get all attributes by the list of attrNames if they are in one of these namespaces: - member - group - member-group - resource - member-resource - group-resource - user (get from member object) - facility (get from resource object) - user-facility
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
resource | int | Resource id |
attrNames | List<String> | Attribute names |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group with id doesn't exist. |
GroupResourceMismatchException | When Group is not from the same Vo as Resource. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member with id doesn't exist. |
MemberResourceMismatchException | When Member is not from the same Vo as Resource. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
ResourceNotExistsException | When Resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Attribute> | All attributes from supported namespaces. |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "member" : 48 , "group" : 35 , "resource" : 76 , "attrNames" : [ "text" , "text" ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Group-Resource attributes for selected Group and Resource.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
resource | int | Resource id |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group with id doesn't exist. |
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. |
ResourceNotExistsException | When Resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Attribute> | All non-empty Group-Resource attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "group" : 96 , "resource" : 10 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Group-Resource attributes for selected Group and Resource. If workWithGroupAttributes == true
then also all non-empty Group attributes are returned.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
resource | int | Resource id |
workWithGroupAttributes | boolean | If true , return also Group attributes. False is default. |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group with id doesn't exist. |
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. |
ResourceNotExistsException | When Resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Attribute> | All non-empty Group-Resource attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "group" : 12 , "resource" : 55 , "workWithGroupAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all specified Group-Resource attributes for selected Group and Resource. If attrNames
is empty, it returns all non-empty attributes. If workWithGroupAttributes == true
then also Group attributes are returned. False
is default.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
resource | int | Resource id |
attrNames | List<String> | Attribute names |
workWithGroupAttributes | boolean | If true , return also Group attributes. False is default. |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group with id doesn't exist. |
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. |
ResourceNotExistsException | When Resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Attribute> | Specified Group-Resource attributes and (if workWithGroupAttributes == true) also Group attributes. |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "group" : 13 , "resource" : 69 , "attrNames" : [ "text" , "text" ] , "workWithGroupAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Resource attributes for selected Resource.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource 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. |
ResourceNotExistsException | When Resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Attribute> | All non-empty Resource attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "resource" : 46 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all specified Resource attributes for selected Resource.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attrNames | List<String> | Attribute names |
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. |
ResourceNotExistsException | When Resource with id doesn't exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Attribute> | Specified Resource attributes. |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "resource" : 60 , "attrNames" : [ "text" , "text" ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all specified Member-Group attributes for selected Member and Group. If workWithUserAttribute == true
then also all non-empty User attributes are returned.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attrNames | List<String> | Attribute names |
workWithUserAttributes | boolean | If true , return also User and Member attributes. False is default. |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member with id doesn't exist. |
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<Attribute> | Specified Member-Group attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "member" : 76 , "group" : 42 , "attrNames" : [ "text" , "text" ] , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Member attributes for selected Member.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberNotExistsException | When Member with id doesn't exist. |
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<Attribute> | All non-empty Member attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "member" : 78 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Member attributes for selected Member. If workWithUserAttributes == true
then also all non-empty User attributes are returned.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
workWithUserAttributes | boolean | If true , return also User attributes. False is default. |
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberNotExistsException | When Member with id doesn't exist. |
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<Attribute> | All non-empty Member attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "member" : 38 , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all specified Member-Group attributes for selected Member and Group
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attrNames | List<String> | Attribute names |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member with id doesn't exist. |
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<Attribute> | Specified Member-Group attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "member" : 80 , "group" : 46 , "attrNames" : [ "text" , "text" ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all specified Member attributes for selected Member.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attrNames | List<String> | Attribute names |
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberNotExistsException | When Member with id doesn't exist. |
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<Attribute> | Specified Member attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "member" : 9 , "attrNames" : [ "urn:perun:member:attribute-def:def:mail" , "urn:perun:member:attribute-def:def:membershipExpiration" ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Member-Group attributes for selected Member and Group.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member with id doesn't exist. |
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<Attribute> | All Member-Group attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "member" : 65 , "group" : 52 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty User attributes for selected User.
Parameter name | Data type | Description |
---|---|---|
user | int | User 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. |
UserNotExistsException | When User with id doesn't exist. |
Return type | Description |
---|---|
List<Attribute> | All non-empty User attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "user" : 81 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all specified User attributes for selected User.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attrNames | List<String> | Attribute names |
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. |
UserNotExistsException | When User with id doesn't exist. |
Return type | Description |
---|---|
List<Attribute> | Specified User attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "user" : 30 , "attrNames" : [ "urn:perun:user:attribute-def:def:phone" , "urn:perun:user:attribute-def:def:preferredMail" ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Group attributes for selected Group.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group with id doesn't exist. |
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<Attribute> | All non-empty Group attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "group" : 30 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all specified Group attributes for selected Group.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
attrNames | List<String> | Attribute names |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group with id doesn't exist. |
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<Attribute> | Specified Group attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "group" : 28 , "attrNames" : [ "urn:perun:user:attribute-def:core:description" , "urn:perun:user:attribute-def:def:synchronizationEnabled" ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Host attributes for selected Host.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
Thrown exception | Description |
---|---|
HostNotExistsException | When Group with id doesn't exist. |
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<Attribute> | All non-empty Host attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "host" : 49 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all Host attributes for selected Host which have name in list attrNames (empty too). Empty list attrNames will return no attributes.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attrNames | List<String> | Attribute names |
Thrown exception | Description |
---|---|
HostNotExistsException | When Group with id doesn't exist. |
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<Attribute> | All non-empty Host attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "host" : 19 , "attrNames" : [ "urn:perun:host:attribute-def:core:hostname" , "urn:perun:host:attribute-def:def:frontend" ] }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all non-empty Entityless attributes with subject equaled key
.
Parameter name | Data type | Description |
---|---|---|
key | String | String key |
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<Attribute> | All non-empty Entityless attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributes
Example params
{ "key" : "text" }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns all AttributeDefinitions.
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<AttributeDefinition> | Definitions of Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributesDefinition
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ]
Returns all AttributeDefinitions in a namespace.
Parameter name | Data type | Description |
---|---|---|
namespace | String | Namespace |
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<AttributeDefinition> | Definitions of Attributes in a namespace |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributesDefinitionByNamespace
Example params
{ "namespace" : "text" }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ]
Returns all AttributeDefinitions for every entity and possible combination of entities with rights. Only attribute definition of attributes user can read (or write) you will get. Combination of entities is based on provided parameters, which are optional (at least one must be present).
Parameter name | Data type | Description |
---|---|---|
member | int | id of Member |
user | int | id of User |
vo | int | id of Virtual organization |
group | int | id of Group |
resource | int | id of Resource |
facility | int | id of Facility |
host | int | id of Host |
userExtSource | int | id of UserExtSource |
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<AttributeDefinition> | Definitions of Attributes for entities |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getAttributesDefinitionWithRights
Example params
{ "member" : 40 , "user" : 86 , "vo" : 84 , "group" : 14 , "resource" : 27 , "facility" : 55 , "host" : 53 , "userExtSource" : 3 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ]
Returns all entityless attributes with attrName
(for all namespaces of same attribute).
Parameter name | Data type | Description |
---|---|---|
attrName | String | Attribute 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 |
---|---|
List<Attribute> | All entityless attributes with same name |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getEntitylessAttributes
Example params
{ "attrName" : "urn:perun:entityless:attribute-def:def:namespace-minUID" }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Get entityless attributes mapped by their keys.
Parameter name | Data type | Description |
---|---|---|
attrName | String | Attribute name |
Thrown exception | Description |
---|---|
AttributeNotExistsException | when the attribute definition for attrName doesn't exist |
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. |
PrivilegeException | insufficient permissions |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
WrongAttributeAssignmentException | when passed non-entityless attribute |
Return type | Description |
---|---|
Map<String,Attribute> | of entityless attributes mapped by their keys |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getEntitylessAttributesWithKeys
Example params
{ "attrName" : "text" }
Example response
{ "key" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , "key2" : {...} }
Get entityless attributes mapped by their keys. Returns only attributes for specified keys.
Parameter name | Data type | Description |
---|---|---|
attrName | String | Attribute name |
keys | List<String> | keys |
Thrown exception | Description |
---|---|
AttributeNotExistsException | when the attribute definition for attrName doesn't exist, or when there is no such attribute for one of the specified keys |
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. |
PrivilegeException | insufficient permissions |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
WrongAttributeAssignmentException | when passed non-entityless attribute |
Return type | Description |
---|---|
Map<String,Attribute> | of entityless attributes mapped by their keys |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getEntitylessAttributesWithKeys
Example params
{ "attrName" : "text" , "keys" : [ "text" , "text" ] }
Example response
{ "key" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , "key2" : {...} }
Returns list of Keys which fits the attributeDefinition.
Parameter name | Data type | Description |
---|---|---|
attributeDefinition | id | of the attributeDefinition |
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<String> | All keys for attributeDefinition |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getEntitylessKeys
Example params
{ "attributeDefinition" : {...} }
Example response
{ ... TODO ... }
Returns list of definitions of IdP attributes that are filled to fedInfo
Parameter name | Data type | Description |
---|---|---|
sess | session |
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 | of attribute definitions |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getIdpAttributeDefinitions
Example params
{ "sess" : {...} }
Example response
{ ... TODO ... }
Get all users logins as Attributes. Meaning it returns all non-empty User attributes with URN starting with: "urn:perun:user:attribute-def:def:login-namespace:".
Parameter name | Data type | Description |
---|---|---|
user | int | User 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. |
UserNotExistsException | When User with id doesn't exist. |
Return type | Description |
---|---|
List<Attribute> | List of users logins as Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getLogins
Example params
{ "user" : 14 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns member and member-resource attributes required by the specified service.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
service | int | Service id |
resource | int | Resource 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "member" : 0 , "service" : 77 , "resource" : 36 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns member and member-resource attributes required by the specified service. If workWithUserAttributes == TRUE, then returns also user attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
service | int | Service id |
resource | int | Resource id |
workWithUserAttributes | boolean | Work with user attributes. False is default value. |
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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "member" : 44 , "service" : 32 , "resource" : 9 , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns group-resource attributes required by specified service.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
service | int | Service id |
resource | int | Resource 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "group" : 21 , "service" : 3 , "resource" : 71 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns resource attributes required by specified service.
Parameter name | Data type | Description |
---|---|---|
service | int | Service id |
resource | int | Resource 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "service" : 11 , "resource" : 38 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns member, member-group and member-resource attributes required by specified service. If workWithUserAttributes == TRUE, then returns also user and user-facility attributes.
Parameter name | Data type | Description |
---|---|---|
service | int | Service id |
resource | int | Resource id |
group | int | Group id |
member | int | Member id |
workWithUserAttributes | boolean | If true , return also User and User-facility attributes. False is default. |
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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "service" : 94 , "resource" : 57 , "group" : 50 , "member" : 98 , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns member, member-group and member-resource attributes required by specified service.
Parameter name | Data type | Description |
---|---|---|
service | int | Service id |
resource | int | Resource id |
group | int | Group id |
member | int | Member 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "service" : 98 , "resource" : 66 , "group" : 41 , "member" : 44 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns member-group attributes required by specified service. If workWithUserAttributes == TRUE, then returns also member and user attributes.
Parameter name | Data type | Description |
---|---|---|
service | int | Service id |
member | int | Member id |
group | int | Group id |
workWithUserAttributes | boolean | If true , return also User and Member attributes. False is default. |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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. |
ServiceNotExistsException | When Service not exists by its id . |
Return type | Description |
---|---|
List<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "service" : 65 , "member" : 64 , "group" : 88 , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns member-group attributes required by specified service.
Parameter name | Data type | Description |
---|---|---|
service | int | Service id |
member | int | Member id |
group | int | Group id |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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. |
ServiceNotExistsException | When Service not exists by its id . |
Return type | Description |
---|---|
List<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "service" : 77 , "member" : 31 , "group" : 22 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns facility attributes required by specified service.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
service | int | Service 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "facility" : 0 , "service" : 70 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns facility attributes required by specified list of services.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
services | List<int> | list of Service IDs |
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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "facility" : 44 , "services" : {...} }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns resource attributes required by specified list of services.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
services | List<int> | list of Service IDs |
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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "resource" : 54 , "services" : {...} }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns required host attributes.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
service | int | Service 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "host" : 60 , "service" : 19 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns required vo attributes.
Parameter name | Data type | Description |
---|---|---|
vo | int | Vo id |
service | int | Service 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "vo" : 75 , "service" : 19 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns required member and member-resource attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resource | int | Resource 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "member" : 44 , "resource" : 50 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns required member and member-resource attributes. If workWithUserAttributes == TRUE, then returns also user attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resource | int | Resource id |
workWithUserAttributes | boolean | Work with user attributes. False is default value. |
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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "member" : 20 , "resource" : 41 , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns required resource attributes.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "resource" : 75 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns required user-facility attributes.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "facility" : 33 , "user" : 70 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns required facility attributes.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "facility" : 63 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns required member attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "member" : 24 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns required member attributes. If workWithUserAttributes == TRUE, then returns also user attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
workWithUserAttributes | boolean | Work with user attributes. False is default value. |
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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "member" : 13 , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns member and member-group required attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "member" : 29 , "group" : 16 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns member and member-group required attributes. If workWithUserAttributes == TRUE, then returns also user attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
workWithUserAttributes | boolean | Work with user attributes. False is default value. |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "member" : 26 , "group" : 72 , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns required user attributes.
Parameter name | Data type | Description |
---|---|---|
user | int | User 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<Attribute> | Required Attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributes
Example params
{ "user" : 83 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Returns required attributes definition for a Service.
Parameter name | Data type | Description |
---|---|---|
service | int | Service 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<AttributeDefinition> | Attributes definitions |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getRequiredAttributesDefinition
Example params
{ "service" : 86 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ]
Gets member, user, member-resource and user-facility attributes. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
facility | int | Facility id |
resource | int | Resource id |
user | int | User id |
member | int | Member 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<Attribute> | Member, user, member-resource and user-facility attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 12 , "facility" : 28 , "resource" : 98 , "user" : 34 , "member" : 88 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets member-resource attributes and also user, user-facility and member attributes, if workWithUserAttributes == true. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
resource | int | Resource id |
member | int | Member id |
workWithUserAttributes | boolean | Work with user attributes. False is default value. |
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<Attribute> | Member-resource attributes (if workWithUserAttributes == true also user, user-facility and member attributes) |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 62 , "resource" : 87 , "member" : 34 , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets member-resource attributes. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
resource | int | Resource id |
member | int | Member 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<Attribute> | Member-resource attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 98 , "resource" : 86 , "member" : 27 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets member-group attributes and also user and member attributes, if workWithUserAttributes == true. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
member | int | Member id |
group | int | Group id |
workWithUserAttributes | boolean | If true , return also User and Member attributes. False is default. |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
ResourceNotExistsException | When Resource not exists by its id . |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Attribute> | Member-group attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 52 , "member" : 31 , "group" : 30 , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets member-group attributes. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
member | int | Member id |
group | int | Group id |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
ResourceNotExistsException | When Resource not exists by its id . |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Attribute> | Member-group attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 60 , "member" : 7 , "group" : 87 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets member attributes. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resourceToGetServicesFrom | int | Resource to get services from 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<Attribute> | Member attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "member" : 37 , "resourceToGetServicesFrom" : 62 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets user-facility attributes. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
facility | int | Facility id |
user | int | User 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<Attribute> | User-facility attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 77 , "facility" : 1 , "user" : 12 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets user attributes. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
resourceToGetServicesFrom | int | Resource to get services from 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<Attribute> | User's attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "user" : 20 , "resourceToGetServicesFrom" : 82 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets group-resource and also group attributes, if workWithGroupAttributes == true. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
group | int | Group id |
resource | int | Resource id |
workWithGroupAttributes | boolean | Work with group attributes. False is default value. |
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<Attribute> | Group-resource and (if workWithGroupAttributes == true) group required attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 25 , "group" : 91 , "resource" : 35 , "workWithGroupAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets group-resource attributes. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
resource | int | Resource id |
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<Attribute> | Group-resource attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 81 , "resource" : 18 , "group" : 40 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets member-group and member-resource attributes. If workWithUserAttributes == TRUE then return also member, user, user-facility attributes. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
resource | int | Resource id |
group | int | Group id |
member | int | Member id |
workWithUserAttributes | boolean | Work with member, user, user-facility attributes. False is default value. |
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<Attribute> | Member-group and member-resource attributes, if workWithUserAttributes == TRUE, member, user and user-facility attributes are returned too. |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 98 , "resource" : 46 , "group" : 79 , "member" : 97 , "workWithUserAttributes" : true }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets member-group and member-resource attributes. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
resource | int | Resource id |
group | int | Group id |
member | int | Member 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<Attribute> | Member-group and member-resource attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 72 , "resource" : 87 , "group" : 52 , "member" : 95 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets group attributes. It returns attributes required by all services assigned to specified resource. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
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<Attribute> | Group's attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 47 , "group" : 67 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Gets host attributes. It returns attributes required by all services assigned to specified host. Both empty and non-empty attributes are returned.
Parameter name | Data type | Description |
---|---|---|
resourceToGetServicesFrom | int | Resource to get services from id |
host | int | Host 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<Attribute> | Group's attributes |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/getResourceRequiredAttributes
Example params
{ "resourceToGetServicesFrom" : 40 , "host" : 89 }
Example response
[ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ]
Unset all attributes for the user on the facility.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User 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/attributesManager/removeAllAttributes
Example params
{ "facility" : 57 , "user" : 47 }
Example response
null
Unset all attributes for the facility and also user-facility attributes if workWithUserAttributes == true.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
workWithUserAttributes | boolean | Remove also user facility attributes. False is default value. |
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/attributesManager/removeAllAttributes
Example params
{ "facility" : 93 , "workWithUserAttributes" : true }
Example response
null
Unset all attributes for the facility.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility 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/attributesManager/removeAllAttributes
Example params
{ "facility" : 5 }
Example response
null
Unset all attributes for the vo.
Parameter name | Data type | Description |
---|---|---|
vo | int | Vo 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/attributesManager/removeAllAttributes
Example params
{ "vo" : 17 }
Example response
null
Unset all attributes for the member on the resource.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resource | int | Resource 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/attributesManager/removeAllAttributes
Example params
{ "member" : 3 , "resource" : 57 }
Example response
null
Unset all group-resource attributes and also group attributes if WorkWithGroupAttributes == true.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
resource | int | Resource id |
workWithGroupAttributes | boolean | Work with group attributes. False is default value. |
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/attributesManager/removeAllAttributes
Example params
{ "group" : 10 , "resource" : 65 , "workWithGroupAttributes" : true }
Example response
null
Unset all group-resource attributes.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
resource | int | Resource 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/attributesManager/removeAllAttributes
Example params
{ "group" : 83 , "resource" : 63 }
Example response
null
Unset all resource attributes.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource 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/attributesManager/removeAllAttributes
Example params
{ "resource" : 70 }
Example response
null
Unset all member-group attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-group attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/removeAllAttributes
Example params
{ "member" : 76 , "group" : 58 }
Example response
null
Unset all member attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member 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/attributesManager/removeAllAttributes
Example params
{ "member" : 72 }
Example response
null
Unset all user attributes.
Parameter name | Data type | Description |
---|---|---|
user | int | User 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/attributesManager/removeAllAttributes
Example params
{ "user" : 77 }
Example response
null
Unset all group attributes.
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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/removeAllAttributes
Example params
{ "group" : 98 }
Example response
null
Unset all host attributes.
Parameter name | Data type | Description |
---|---|---|
host | int | Host 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/attributesManager/removeAllAttributes
Example params
{ "host" : 62 }
Example response
null
Unset all attributes for the userExtSource.
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource 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/attributesManager/removeAllAttributes
Example params
{ "userExtSource" : 7 }
Example response
null
Remove attribute of namespace: user-facility
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "facility" : 84 , "user" : 0 , "attribute" : 89 }
Example response
null
Remove attribute of namespace: facility
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "facility" : 77 , "attribute" : 43 }
Example response
null
Remove attribute of namespace: vo
Parameter name | Data type | Description |
---|---|---|
vo | int | VO id |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "vo" : 58 , "attribute" : 56 }
Example response
null
Remove attribute of namespace: resource
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "resource" : 48 , "attribute" : 71 }
Example response
null
Remove attribute of namespace: group-resource
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
group | int | Group id |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "resource" : 23 , "group" : 79 , "attribute" : 81 }
Example response
null
Remove attribute of namespace: member-resource
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
member | int | Member id |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "resource" : 84 , "member" : 70 , "attribute" : 45 }
Example response
null
Remove attribute of namespace: member-group
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attribute | int | id of attribute to remove |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-group attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/removeAttribute
Example params
{ "member" : 56 , "group" : 78 , "attribute" : 51 }
Example response
null
Remove attribute of namespace: member
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "member" : 79 , "attribute" : 43 }
Example response
null
Remove attribute of namespace: group
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "group" : 11 , "attribute" : 58 }
Example response
null
Remove attribute of namespace: host
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "host" : 2 , "attribute" : 91 }
Example response
null
Remove attribute of namespace: user
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "user" : 93 , "attribute" : 13 }
Example response
null
Remove attribute of namespace: userExtSource
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource id |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "userExtSource" : 46 , "attribute" : 38 }
Example response
null
Remove entityless attribute key
Parameter name | Data type | Description |
---|---|---|
key | String | key for entityless attribute |
attribute | int | id of attribute to remove |
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/attributesManager/removeAttribute
Example params
{ "key" : "text" , "attribute" : 47 }
Example response
null
Remove attributes of namespace: user, user-facility, member, member-resource
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
member | int | Member id |
resource | int | Resource id |
attributes | List<Integer> | List of attributes IDs to remove |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
FacilityNotExistsException | When the Facility with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
UserNotExistsException | When the User with id doesn't exist. |
WrongAttributeAssignmentException | When the attribute with id isn't member-group attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/removeAttributes
Example params
{ "facility" : 80 , "user" : 92 , "member" : 49 , "resource" : 34 , "attributes" : [ 56 , 20 ] }
Example response
null
Remove attributes of namespace: user, user-facility, member, member-resource, member-group
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
member | int | Member id |
resource | int | Resource id |
group | int | Group id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "facility" : 49 , "user" : 7 , "member" : 98 , "resource" : 37 , "group" : 24 , "attributes" : [ 30 , 49 ] }
Example response
null
Remove attributes of namespace: user-facility
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "facility" : 73 , "user" : 47 , "attributes" : [ 31 , 75 ] }
Example response
null
Remove attributes of namespace: facility
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "facility" : 87 , "attributes" : [ 31 , 60 ] }
Example response
null
Remove attributes of namespace: vo
Parameter name | Data type | Description |
---|---|---|
vo | int | VO id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "vo" : 49 , "attributes" : [ 4 , 70 ] }
Example response
null
Remove attributes of namespace: resource
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "resource" : 83 , "attributes" : [ 31 , 51 ] }
Example response
null
Remove attributes of namespace: group-resource, group (optional)
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
group | int | Group id |
workWithGroupAttributes | boolean | Work with group attributes. False is default value. |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "resource" : 41 , "group" : 21 , "workWithGroupAttributes" : true , "attributes" : [ 21 , 76 ] }
Example response
null
Remove attributes of namespace: group-resource
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
group | int | Group id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "resource" : 36 , "group" : 83 , "attributes" : [ 40 , 50 ] }
Example response
null
Remove attributes of namespace: member-resource
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
member | int | Member id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "resource" : 52 , "member" : 38 , "attributes" : [ 27 , 95 ] }
Example response
null
Remove attributes of namespace: member, user (optional)
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
workWithUserAttributes | boolean | Set to true if you want to remove also user attributes. False is default value. |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "member" : 61 , "workWithUserAttributes" : true , "attributes" : [ 67 , 65 ] }
Example response
null
Remove attributes of namespace: member-group
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attributes | List<Integer> | List of attributes IDs to remove |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-group attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/removeAttributes
Example params
{ "member" : 64 , "group" : 16 , "attributes" : [ 59 , 35 ] }
Example response
null
Remove attributes of namespace: member-group, optionally also member and user
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
workWithUserAttributes | boolean | If true , process also User and Member attributes. false is default. |
attributes | List<Integer> | List of attributes IDs to remove |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When the attribute with id doesn't exist. |
GroupNotExistsException | When the group with id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When the member with id doesn't exist. |
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. |
WrongAttributeAssignmentException | When the attribute with id isn't member-group attribute. |
WrongAttributeValueException | When the attribute value has wrong/illegal syntax. |
WrongReferenceAttributeValueException | When value of some Attribute is not correct regarding to other Attribute value. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/removeAttributes
Example params
{ "member" : 77 , "group" : 58 , "workWithUserAttributes" : true , "attributes" : [ 61 , 70 ] }
Example response
null
Remove attributes of namespace: member
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "member" : 75 , "attributes" : [ 29 , 84 ] }
Example response
null
Remove attributes of namespace: group
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "group" : 69 , "attributes" : [ 79 , 8 ] }
Example response
null
Remove attributes of namespace: host
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "host" : 79 , "attributes" : [ 97 , 8 ] }
Example response
null
Remove attributes of namespace: user
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "user" : 14 , "attributes" : [ 67 , 11 ] }
Example response
null
Remove attributes of namespace: userExtSource
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource id |
attributes | List<Integer> | List of attributes IDs to remove |
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/attributesManager/removeAttributes
Example params
{ "userExtSource" : 85 , "attributes" : [ 91 , 64 ] }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
attribute | Attribute | 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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttribute
Example params
{ "facility" : 89 , "user" : 11 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
attribute | Attribute | 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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttribute
Example params
{ "facility" : 43 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
vo | int | VO id |
attribute | Attribute | 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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttribute
Example params
{ "vo" : 86 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resource | int | Resource id |
attribute | Attribute | 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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttribute
Example params
{ "member" : 33 , "resource" : 2 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
resource | int | Resource id |
attribute | Attribute | 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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttribute
Example params
{ "group" : 47 , "resource" : 79 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attribute | Attribute | 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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttribute
Example params
{ "resource" : 0 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attribute | Attribute | JSON object |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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/attributesManager/setAttribute
Example params
{ "member" : 28 , "group" : 21 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attribute | Attribute | 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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttribute
Example params
{ "member" : 41 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attribute | Attribute | 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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttribute
Example params
{ "user" : 69 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
attribute | Attribute | 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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttribute
Example params
{ "group" : 35 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attribute | Attribute | 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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttribute
Example params
{ "host" : 20 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Sets an Attribute.
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource id |
attribute | Attribute | 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 |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttribute
Example params
{ "userExtSource" : 50 , "attribute" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } }
Example response
null
Marks the action on attribute as critical, which may require additional authentication of user performing that action on attribute.
Parameter name | Data type | Description |
---|---|---|
sess | session | |
attributeDefinition | attribute | definition id |
action | critical | action |
critical | true | if action should be set critical, false to non-critical |
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. |
s | RelationExistsException if trying to mark already critical action |
s | RelationNotExistsException if trying to unmark not critical action |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttributeActionCriticality
Example params
{ "sess" : {...} , "attributeDefinition" : {...} , "action" : {...} , "critical" : {...} }
Example response
null
Marks the action on attribute as critical, which may require additional authentication of user performing that action on attribute.
Parameter name | Data type | Description |
---|---|---|
sess | session | |
attributeDefinition | attribute | definition id |
action | critical | action |
critical | true | if action should be set critical, false to non-critical |
global | true | if action should be globally critical, false if action should be critical only for critical objects |
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. |
s | RelationExistsException if trying to mark already critical action |
s | RelationNotExistsException if trying to unmark not critical action |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttributeActionCriticality
Example params
{ "sess" : {...} , "attributeDefinition" : {...} , "action" : {...} , "critical" : {...} , "global" : {...} }
Example response
null
Deletes old attribute policy collections and sets all new attribute policy collections.
Parameter name | Data type | Description |
---|---|---|
policyCollections | List<AttributePolicyCollection> | list of AttributePolicyCollection to set |
attributeId | int | attribute for which policies are set |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When Attribute with id doesn't exist. |
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. |
RoleNotSupportedException | When some of the AttributePolicyCollection does have a role which does not exist |
RoleObjectCombinationInvalidException | when the combination role + RoleObject of any included policy isn't valid |
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/attributesManager/setAttributePolicyCollections
Example params
{ "policyCollections" : [ { "id" : 10 , "attributeId" : 2220 , "action" : "READ" , "policies" : [ { "id" : 290 , "role" : "RESOURCEADMIN" , "object" : "Resource" , "policyCollectionId" : 10 } , {...} , {...} ] } , {...} , {...} ] , "attributeId" : 75 }
Example response
null
Sets all AttributeRights in the list given as a parameter. Allowed Roles to set rights for are: VOADMIN, GROUPADMIN, FACILITYADMIN, SELF.
Parameter name | Data type | Description |
---|---|---|
rights | List<AttributeRights> | List of AttributeRights to set. |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When Attribute with id doesn't exist. |
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/attributesManager/setAttributeRights
Example params
{ "rights" : [ { "attributeId" : 5 , "role" : "VOADMIN", "rights" : [ "READ" , "WRITE"] } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
member | int | Member id |
resource | int | Resource id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "facility" : 70 , "user" : 60 , "member" : 21 , "resource" : 54 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
member | int | Member id |
resource | int | Resource id |
group | in | Group id |
attributes | List<Attribute> | List of attributes |
Thrown exception | Description |
---|---|
FacilityNotExistsException | When Facility not exists by its id . |
GroupNotExistsException | When Group not exists by its id . |
GroupResourceMismatchException | When Group is not from the same Vo as Resource. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
MemberResourceMismatchException | When Member is not from the same Vo as Resource. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
ResourceNotExistsException | When Resource not exists by its id . |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
UserNotExistsException | When User not exists by its id . |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/setAttributes
Example params
{ "facility" : 76 , "user" : 15 , "member" : 52 , "resource" : 62 , "group" : {...} , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
user | int | User id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "facility" : 84 , "user" : 32 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
facility | int | Facility id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "facility" : 19 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
vo | int | VO id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "vo" : 89 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
userExtSource | int | UserExtSource id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "userExtSource" : 73 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resource | int | Resource id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "member" : 30 , "resource" : 39 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
resource | int | Resource id |
workWithUserAttributes | boolean | Work with user attributes. False is default value. |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "member" : 92 , "resource" : 93 , "workWithUserAttributes" : true , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
resource | int | Resource id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "group" : 74 , "resource" : 31 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
resource | int | Resource id |
workWithGroupAttributes | boolean | Work with group attributes. False is default value. |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "group" : 66 , "resource" : 90 , "workWithGroupAttributes" : true , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
resource | int | Resource id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "resource" : 25 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attributes | List<Attribute> | List of attributes |
workWithUserAttributes | boolean | If true , store also User and Member attributes. False is default. |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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/attributesManager/setAttributes
Example params
{ "member" : 28 , "group" : 75 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] , "workWithUserAttributes" : true }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
workWithUserAttributes | boolean | Work with user attributes. False is default value. |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "member" : 1 , "workWithUserAttributes" : true , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
group | int | Group id |
attributes | List<Attribute> | List of attributes |
Thrown exception | Description |
---|---|
GroupNotExistsException | When Group not exists by its id . |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
MemberGroupMismatchException | When Member is not from the same Vo as Group. |
MemberNotExistsException | When Member not exists by its id . |
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/attributesManager/setAttributes
Example params
{ "member" : 59 , "group" : 26 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
member | int | Member id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "member" : 35 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "user" : 48 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
group | int | Group id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "group" : 66 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Sets the attributes.
Parameter name | Data type | Description |
---|---|---|
host | int | Host id |
attributes | List<Attribute> | List of attributes |
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/attributesManager/setAttributes
Example params
{ "host" : 12 , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "value" : "2011-05-17 00:50:06.3" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "Attribute" } , {...} , {...} ] }
Example response
null
Updates AttributeDefinition in Perun based on provided object. Update is done on AttributeDefinition selected by its id
.
Parameter name | Data type | Description |
---|---|---|
attributeDefinition | AttributeDefinition | AttributeDefinition with updated properties to store in DB |
Thrown exception | Description |
---|---|
AttributeNotExistsException | When AttributeDefinition with id in object doesn't exist. |
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 |
---|---|
AttributeDefinition | updated AttributeDefinition |
Example URL
https://[hostname]/krb/rpc/json/attributesManager/updateAttributeDefinition
Example params
{ "attributeDefinition" : { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } }
Example response
{ "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" }