Project

General

Profile

Actions

Bug #5550

open

assigning resource to org or location only available via org/loc api

Added by Thomas McKay about 10 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The way to add a compute resource to an organization is to pass it to the org update api in the compute_resource_ids field. This field, however, must contain all the ids not just the one being added.

To do this, first a call must be made to get the org, then the new compute resource id can be added, and then update called.

However, consider the case where a user, through their roles, only has a subset of the compute resources visible. Following the steps above, they would get just the existing compute resources they had permission to see, add the new compute resource id to the list, and call update. This would (attempt to?) remove all the other compute resources that the user did not have visibility into on that org.

The same applies for locations since they are implemented similarly through taxonomy.

Actions

Also available in: Atom PDF