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" : 15 , "user" : 3 , "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" : 94 , "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" : 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 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" : 7 , "member" : 74 , "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" : 21 , "group" : 33 , "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" : 28 , "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" : 91 , "group" : 39 , "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" : 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
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" : 80 , "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" : 68 , "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" : 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 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" : 94 , "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" : 64 , "user" : 98 , "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" : 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 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" : 24 , "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" : 33 , "member" : 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 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" : 95 , "group" : 6 , "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" : 9 , "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" : 43 , "group" : 26 , "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" : 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 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" : 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
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" : 37 , "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" : 77 , "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" : 65 , "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" : 76 , "resource" : 62 , "user" : 35 , "member" : 45 , "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" : 20 , "user" : 17 , "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" : 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 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" : 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
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" : 21 , "member" : 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" } , {...} , {...} ] , "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" : 82 , "member" : 99 , "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" : 46 , "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
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" : 72 , "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" : 62 , "group" : 63 , "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" : 1 , "group" : 20 , "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" : 23 , "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" : 15 , "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" : 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 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" : 91 , "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" : 68 , "resource" : 31 , "user" : 70 , "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 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" : 32 , "user" : 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
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" : 72 , "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" : 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" } , {...} , {...} ] }
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" : 87 , "member" : 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" } , {...} , {...} ] , "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" : 14 , "member" : 93 , "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" : 42 , "group" : 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 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" : 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
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" : 15 , "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" } , {...} , {...} ] , "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" : 82 , "group" : 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
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" : 5 , "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" : 52 , "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" : 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 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" : 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
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" : 55 }
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" : 93 }
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" : 38 }
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" : 2 }
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" : 85 , "attribute" : 51 }
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" : 77 , "group" : 58 , "attribute" : 97 }
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" : 36 , "member" : 91 , "attribute" : 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" }
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" : 39 , "attribute" : 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" }
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" : 87 , "facility" : 57 , "attribute" : 58 }
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" : 46 , "attribute" : 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" }
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" : 68 , "group" : 23 , "attribute" : 5 }
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" : 37 , "attribute" : 99 }
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" : 13 , "attribute" : 18 }
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" : 37 , "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" : 78 , "group" : 59 , "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" : 77 , "resource" : 19 , "user" : 87 , "member" : 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
[ { "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" : 47 , "member" : 85 , "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" : 17 , "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 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" : 86 , "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" : 69 , "group" : 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" } , {...} , {...} ] , "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" : 91 , "group" : 62 , "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" : 20 , "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" : 62 , "user" : 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
[ { "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" : 77 , "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" : 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
[ { "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" : 79 , "user" : 1 , "attributeId" : 6 }
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" : 0 , "attributeId" : 11 }
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" : 74 , "attributeId" : 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" }
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" : 61 , "resource" : 56 , "attributeId" : 80 }
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" : 42 , "resource" : 82 , "attributeId" : 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 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" : 39 , "attributeId" : 48 }
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" : 49 , "group" : 4 , "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 |
---|---|---|
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" : 96 , "attributeId" : 68 }
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" : 28 , "attributeId" : 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 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" : 17 , "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 |
---|---|---|
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" : 27 , "attributeId" : 73 }
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" : 37 , "user" : 52 , "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" : 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 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" : 8 , "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" : 7 , "resource" : 52 , "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" : 69 , "resource" : 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 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" : 36 , "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" : 78 , "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" : 27 , "group" : 49 , "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" : 63 , "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" : 37 , "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" : 66 , "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" : 37 , "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" : 60 }
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" : 29 }
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" : 87 }
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" : 13 , "user" : 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 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" : 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 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" : 55 , "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" : 61 }
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" : 78 , "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" : 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 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" : 38 , "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" : 11 , "resource" : 99 , "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" : 93 , "resource" : 10 , "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" : 14 , "resource" : 4 }
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" : 17 , "group" : 27 , "resource" : 58 , "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" : 93 , "resource" : 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" } , {...} , {...} ]
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" : 37 , "resource" : 81 , "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" : 1 , "resource" : 15 , "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" : 99 }
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" : 42 , "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" : 57 , "group" : 94 , "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" : 79 }
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" : 11 , "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" : 41 , "group" : 0 , "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" : 62 , "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" : 97 , "group" : 31 }
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" : 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 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" : 77 , "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" : 0 }
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" : 34 , "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" : 21 }
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" : 37 , "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" : 36 , "user" : 68 , "vo" : 5 , "group" : 28 , "resource" : 97 , "facility" : 82 , "host" : 90 , "userExtSource" : 99 }
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" : 93 }
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" : 67 , "service" : 51 , "resource" : 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" } , {...} , {...} ]
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" : 55 , "service" : 63 , "resource" : 64 , "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" : 48 , "service" : 8 , "resource" : 57 }
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" : 20 , "resource" : 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" } , {...} , {...} ]
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" : 58 , "resource" : 97 , "group" : 6 , "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" } , {...} , {...} ]
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" : 14 , "resource" : 68 , "group" : 98 , "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" } , {...} , {...} ]
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" : 58 , "member" : 94 , "group" : 55 , "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" : 27 , "member" : 42 , "group" : 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" } , {...} , {...} ]
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" : 25 , "service" : 94 }
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" : 95 , "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" : 47 , "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" : 64 , "service" : 68 }
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" : 65 , "service" : 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 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" : 2 , "resource" : 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 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" : 14 , "resource" : 69 , "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" : 73 }
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" : 62 , "user" : 6 }
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" : 47 }
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" : 47 }
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" : 20 , "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" : 54 , "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" } , {...} , {...} ]
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" : 71 , "group" : 73 , "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" : 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 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" : 18 }
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" : 37 , "facility" : 49 , "resource" : 54 , "user" : 69 , "member" : 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" } , {...} , {...} ]
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" : 68 , "resource" : 31 , "member" : 66 , "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" : 30 , "resource" : 78 , "member" : 31 }
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" : 27 , "member" : 82 , "group" : 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 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" : 13 , "member" : 35 , "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" } , {...} , {...} ]
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" : 35 , "resourceToGetServicesFrom" : 68 }
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" : 49 , "facility" : 92 , "user" : 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 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" : 83 , "resourceToGetServicesFrom" : 26 }
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" : 97 , "group" : 96 , "resource" : 92 , "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" : 31 , "resource" : 36 , "group" : 5 }
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" : 35 , "resource" : 70 , "group" : 32 , "member" : 78 , "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" : 54 , "resource" : 79 , "group" : 79 , "member" : 76 }
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" : 67 , "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 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" : 24 , "host" : 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" } , {...} , {...} ]
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" : 82 , "user" : 53 }
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" : 86 , "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" : 78 }
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" : 9 }
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" : 37 , "resource" : 36 }
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" : 23 , "resource" : 25 , "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" : 95 , "resource" : 43 }
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" : 60 }
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" : 30 , "group" : 49 }
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" : 29 }
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" : 83 }
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" : 44 }
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" : 12 }
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" : 8 }
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" : 39 , "user" : 16 , "attribute" : 84 }
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" : 30 , "attribute" : 73 }
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" : 35 , "attribute" : 84 }
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" : 32 , "attribute" : 46 }
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" : 71 , "group" : 89 , "attribute" : 31 }
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" : 6 , "member" : 55 , "attribute" : 25 }
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" : 26 , "group" : 71 , "attribute" : 63 }
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" : 75 , "attribute" : 84 }
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" : 96 , "attribute" : 11 }
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" : 54 , "attribute" : 30 }
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" : 46 , "attribute" : 67 }
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" : 53 , "attribute" : 55 }
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" : 17 }
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" : 35 , "user" : 13 , "member" : 4 , "resource" : 35 , "attributes" : [ 64 , 32 ] }
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" : 19 , "user" : 87 , "member" : 22 , "resource" : 64 , "group" : 59 , "attributes" : [ 27 , 67 ] }
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" : 25 , "user" : 80 , "attributes" : [ 36 , 18 ] }
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" : 29 , "attributes" : [ 91 , 21 ] }
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" : 43 , "attributes" : [ 18 , 13 ] }
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" : 64 , "attributes" : [ 91 , 7 ] }
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" : 19 , "group" : 71 , "workWithGroupAttributes" : true , "attributes" : [ 18 , 5 ] }
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" : 55 , "group" : 49 , "attributes" : [ 72 , 37 ] }
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" : 20 , "member" : 78 , "attributes" : [ 63 , 98 ] }
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" : 39 , "workWithUserAttributes" : true , "attributes" : [ 18 , 56 ] }
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" : 91 , "group" : 23 , "attributes" : [ 18 , 33 ] }
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" : 41 , "group" : 24 , "workWithUserAttributes" : true , "attributes" : [ 55 , 3 ] }
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" : 73 , "attributes" : [ 95 , 3 ] }
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" : 75 , "attributes" : [ 17 , 31 ] }
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" : 50 , "attributes" : [ 34 , 49 ] }
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" : 47 , "attributes" : [ 62 , 4 ] }
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" : 36 , "attributes" : [ 54 , 29 ] }
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" : 93 , "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
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" : 8 , "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" : 1 , "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" : 40 , "resource" : 54 , "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" : 32 , "resource" : 47 , "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" : 26 , "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" : 56 , "group" : 74 , "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" : 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
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" : 13 , "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" : 5 , "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" : 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 |
---|---|---|
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" : 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
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" : 50 }
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" : 77 , "user" : 88 , "member" : 33 , "resource" : 49 , "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" : 59 , "user" : 69 , "member" : 88 , "resource" : 86 , "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" : 65 , "user" : 10 , "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" : 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" } , {...} , {...} ] }
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" : 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
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" : 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
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" : 8 , "resource" : 90 , "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" : 71 , "resource" : 91 , "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" : 71 , "resource" : 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
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" : 75 , "resource" : 87 , "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" : 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
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" : 91 , "group" : 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" } , {...} , {...} ] , "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" : 80 , "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" : 18 , "group" : 17 , "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" : 20 , "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" : 94 , "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" : 40 , "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" : 10 , "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" }