Changes between Version 22 and Version 23 of NewTestbedAPISpec
- Timestamp:
- Sep 11, 2013 11:08:50 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewTestbedAPISpec
v22 v23 704 704 == Circles == 705 705 706 The profile API lets users manage their circle memberships as well as manipulate circles. The circles API is similar to the Projects API. The primary exceptions are that there is no approval process for circles (though there is for joining or adding a user) and that the permissions are different.706 The circle API lets users manage their circle memberships as well as manipulate circles. The circles API is similar to the Projects API. The primary exceptions are that there is no approval process for circles (though there is for joining or adding a user) and that the permissions are different. 707 707 708 708 These calls work on all circles '''except''' those linked to a project. Those circles must have their membership, ownership, and permissions manipulated through the project to ensure that the contents remain synchronized. … … 724 724 * Members - an array of structures containing 725 725 * Userid - a member's userid 726 * rights - a 32-bit integer encoding the user's rights (each a flag)726 * permissions - a list of strings encoding the user's rights (each a flag - the user has the permission if the string is present) 727 727 * ADD_USER - right to add a user to this circle 728 728 * REMOVE_USER - right to remove a user from this circle … … 741 741 * CircleID - the circle 742 742 * Uids - the userids to add 743 * Perms - the permissions to grant the user in this circle. The values are given here.743 * Perms - a list of strings that give the permissions to grant the user in this circle. The values are the same as described in viewCircles. 744 744 * urlPrefix - a prefix to direct the user to a specific web interface to respond to the challenge. 745 745 * '''Return Values:''' … … 765 765 * CircleID - the circle 766 766 * Uids - the userids to add 767 * Perms - the permissions to grant the user in this circle. The values are given here.767 * Perms - a list of strings giving the permissions to grant the user in this circle. The values are given the same as described in viewCircles. 768 768 * '''Return Values:''' 769 769 * A list of results of the form … … 790 790 * '''Input Parameters:''' 791 791 * ChallengeID - the challenge being responded to 792 * Perms - the permissions to grant the user in this circle. The values are given here.792 * Perms - a list of strings giving the permissions to grant the user in this circle. The values are as described in viewCircles. 793 793 * '''Return Values:''' 794 794 * true if the user was subsequently added. A fault is thrown on errors. … … 815 815 * CircleName - the circle to change 816 816 * Uids - the uids to manipulate 817 * Rights - a 32-bit integer encoding the user's rights (each a flag)817 * Rights - a list of strings encoding the user's rights (each a flag). Values are as given in viewCircles. If the string is present, the user is granted the permission. 818 818 * '''Return Values:''' 819 819 * A list of results of the form … … 854 854 * binary/opaque 855 855 * Value - a string containing the element's value 856 * Access - a 32-bit integer describing the access values (values at [http://www.isi.edu/~faber/tmp/doc/net/deterlab/testbed/user/UserAttribute.html Attribute's javadoc]) 857 * READ_WRITE 858 * READ_ONLY 859 * WRITE_ONLY (e.g., password) 856 * Access - a string describing the access values (values [http://www.isi.edu/~faber/tmp/DeterAPI/doc/constant-values.html here]) 860 857 * Optional - a flag true if the field is optional (must be present but may be empty) 861 858 * Removable - a flag true if the field can be removed … … 882 879 * binary/opaque 883 880 * Value - a string containing the element's value 884 * Access - a 32-bit integer describing the access values (values at [http://www.isi.edu/~faber/tmp/doc/net/deterlab/testbed/user/UserAttribute.html Attribute's javadoc])881 * Access - a string describing the access values (values [http://www.isi.edu/~faber/tmp/DeterAPI/doc/constant-values.html here]) 885 882 * READ_WRITE 886 883 * READ_ONLY … … 922 919 * Type - the type (STRING, INT, FLOAT, OPAQUE) 923 920 * Optional - a boolean, true if this attribute is optional 924 * Access - a n integerthe user's ability to modify (READ_WRITE, READ_ONLY, WRITE_ONLY, NO_ACCESS)921 * Access - a string: the user's ability to modify (READ_WRITE, READ_ONLY, WRITE_ONLY, NO_ACCESS) 925 922 * Description - natural language description of the field (optional) 926 923 * Format - a regular expression describing the format (optional) … … 949 946 * Type - the type (STRING, INT, FLOAT, OPAQUE) 950 947 * Optional - a boolean, true if this attribute is optional 951 * Access - a n integerthe user's ability to modify (READ_WRITE, READ_ONLY, WRITE_ONLY, NO_ACCESS)948 * Access - a string: the user's ability to modify (READ_WRITE, READ_ONLY, WRITE_ONLY, NO_ACCESS) 952 949 * Description - natural language description of the field (optional) 953 950 * Format - a regular expression describing the format (optional)