1566 | | Operations on resources include: |
1567 | | |
| 1566 | === Viewing Resources === |
| 1567 | |
| 1568 | One or more resources can be viewed by an authorized user assuming that user has the proper permissions. The search can be a regular expression matched against the library name as well as scoping the search by type, realization membership, tags and user visibility. To view resources, call: |
| 1569 | |
| 1570 | * '''Service:''' Resources |
| 1571 | * '''Operation:''' viewResources |
| 1572 | * '''Input Parameters:''' |
| 1573 | * Userid - a string, if given return all experiments this user can see |
| 1574 | * Type - a string, if given return only resources of this type |
| 1575 | * Regex - a string containing a regular expression matched against experiment names |
| 1576 | * Realization - an optional string. If given return only resources in the given realization |
| 1577 | * Persist - an optional boolean. If given return only peristent resources |
| 1578 | * tags - an array of name value pairs. If given only return resources that are so tagged. |
| 1579 | * '''Return Values:''' |
| 1580 | * One or more structures with the following fields |
| 1581 | * Name - a string containing the resource name |
| 1582 | * Type - a string containing the type |
| 1583 | * Description - an optional natural language description |
| 1584 | * Tags - a list of name value pairs (strings) |
| 1585 | * Facets - a list of data structures containing |
| 1586 | * Name - the facet name |
| 1587 | * Type - the type |
| 1588 | * Value - the quantity |
| 1589 | * Units - the units that define value |
| 1590 | * Tags - a list of name value pairs (strings) |
| 1591 | * ACL - a list of structures of the form |
| 1592 | * Name - a string the circle name |
| 1593 | * Permissions - a list of strings containing this circle's permissions. Permissions are from [http://www.isi.edu/~faber/tmp/DeterAPI/doc/constant-values.html#net.deterlab.testbed.api.Permissions this table] |
| 1594 | |
| 1595 | Users - primarily administrators - can create or delete resources |