...
Verb | URI | Request body | Response body | Notes |
---|---|---|---|---|
GET | /costAllocation | None | CostAllocationPage body: Array<CostAllocation> nextPageToken: String | Lists all existing CostAllocations |
GET | /entity/{entityId}/costAllocation | None | CostAllocation id: String name: String bucket: String projects: Array<String> eTag: String createdBy: Long createdOn: Date | Gets the cost allocation for a specific project. |
POST | /entity/{entityId}/costAllocation | name: String | CostAllocation | Associates a project with a cost allocation. The underlying files that are associated with If the cost allocation doesn't exist, it creates a new one. If the project is currently associated with a different cost allocation, it will be replaced with a new one. The files belonging to entities in the project and in Synapse storage (either the default bucket or a different cost allocation) will be moved to the provisioned storage for the specified cost allocation. Name is case-insensitive (will be coerced to lowercase) and can include alphanumeric, "-", ".", and "_". |
DELETE | /entity/{entityId}/costAllocation | None | None | Removes the cost allocation tied to a project. The contents of the project that are in the cost allocation storage location will be moved to the default Synapse storage. After all of the contents have been moved, the project is removed from the cost allocation. |
...