Project API Methods
Learn more about Project methods.
Projects
Projects serve as special containers for collaboration. Users with ADMINISTER access manage permissions within projects.
Projects and Containers
Create projects through the web user interface or use the API method /project/new. Creating a project outside an organization makes the creator responsible for storage costs and compute time for project jobs. Each project includes metadata (name, description, tags, properties) and can use boolean flags to control data modifications and copying per Project Data Access Controls.
The system creates generic data containers automatically for analysis and data sharing. Each container links to a project, user, or organization that pays storage costs.
Project Metadata
Projects can have names, descriptions, properties, and tags. The DNAnexus Platform sets properties automatically for optimal user experience.
Project API Method Specifications
API method: /project/new
Specification
Creates a new project and grants ADMINISTER access to the creating user.
Inputs
namestring (required) The name of the project.summarystring (optional) A short summary of what the project contains. Defaults to"".descriptionstring (optional) A longer description of the project. Defaults to"".protectedboolean (optional) Sets protection for the project. See details in the Project Data Access Controls section. Defaults tofalse.restrictedboolean (optional) Sets restrictions for the project. See details in the Project Data Access Controls section. Defaults tofalse.downloadRestrictedboolean (optional) Controls downloading of data outside the platform. For database objects, controls access to project data from outside DNAnexus. When set to true,previewViewerRestrictedautomatically defaults to true unless explicitly overridden by providing thepreviewViewerRestrictedparameter. See details in the Project Data Access Controls section. Defaults tofalse.previewViewerRestrictedboolean (optional) When true, disables file preview and viewer for the project. This setting automatically defaults to true whendownloadRestrictedis true, but can be explicitly overridden by providing this parameter. See details in the Project Data Access Controls section.Defaults to
truewhendownloadRestrictedistrue, otherwisefalse.
externalUploadRestrictedboolean (optional) When true, rejects data uploads from outside the job context. See Project Data Access Controls for details. Defaults tofalse.httpsAppIsolatedBrowsingboolean (optional) When true, wraps httpsApp access in Isolated Browsing for project jobs. See Project Data Access Controls and Isolated Browsing for details. Defaults tofalse.httpsAppIsolatedBrowsingOptionsmapping (optional) A mapping with Isolated Browsing options that can be specified only if thehttpsAppIsolatedBrowsingargument is also set totrue. Mapping, if specified, may contain the following keys. Defaults to{}.pasteFromLocalClipboardMaxBytesinteger (optional) Must be between 0 and 262,144 bytes. Specifies the maximum size of the locally copied text that is pasteable in the remote browser. A value of0disables pasting of any local text into the remote browser and is the default whenpasteFromLocalClipboardMaxBytesis not explicitly specified. Defaults to0.
databaseUIViewOnlyboolean (optional) If set to true, project members with VIEW access have their access to project databases restricted to the Cohort Browser only. Defaults tofalse.containsPHIboolean (optional) Whether to mark the project as containing protected health information (PHI). See more details in the Project Data Access Controls section. Defaults tofalse.destroyProtectedboolean (optional) Whentrue, prevents the project from being destroyed. See more details in the Project Data Access Controls section. Defaults tofalse.membersListRestrictedboolean (optional) Whentrue, only project admins can list project members via/system/findProjectMembers. Non-admin members receive aPermissionDeniederror when attempting to list members. See Project Data Access Controls for details. Defaults tofalse.egressBillTostring (optional) Specifies whether to bill egress costs to the project's billTo account or the downloading user's default billTo account. Defaults to"projectBillTo".Must be one of
"projectBillTo"or"downloaderBillTo".
tagsarray of strings (optional) Tags to associate with the project.propertiesmapping (optional) Properties to associate with the project.key — Property name.
value string — Property value.
billTostring (optional) ID of the entity for billing any costs associated with this project. This must be the ID of the requesting user or an org of which the requesting user is a member withallowBillableActivitiespermission. Defaults to thebillToof the requesting user.regionstring (optional) The region where this project is created. The region must be among the allowed regions of the project'sbillTo. For more information about regions, see Region. Defaults to thedefaultRegionof thebillToof the project.monthlyComputeLimitinteger (optional, nullable) The project-level compute spending limit.monthlyEgressBytesLimitinteger (optional, nullable) The project-level egress spending limit.monthlyStorageLimitnumber (optional, nullable) The project-level storage limit.
tremapping (optional) Associates the new project with an approved Data Access Request. When specified, project-level restriction flags are set based on TRE policies. The project region must match the TRE region.treApplicationIdstring (required) The ID of the approved Data Access Request.dispenseboolean (optional) Whether to dispense the requested data into the project. Defaults tofalse.workspaceTypestring (optional) The TRE workspace classification for the project. Defaults to"restricted".
deletionRetentionEnabledboolean (optional) Whether deleted data objects move to the project's recycle bin instead of being permanently deleted. For details, see Recycle Bin. Defaults tofalse.Can be set only when the
billToof the project has thedeletionRetentionlicense feature.Defaults to
true, and cannot be set tofalse, when thebillTosets thedeletionRetentionEnforcedorg policy totrue.
Outputs
idstring ID of the created project.
Errors
InvalidInputnamemay not be empty and may not match the regex[\x00-\x1F].containsPHImay not be set to false if the project is marked as containing PHI.protected,restricted,downloadRestricted,previewViewerRestricted,externalUploadRestricted,destroyProtected,containsPHI,databaseUIViewOnly,httpsAppIsolatedBrowsing,membersListRestricted(if provided) are not booleans.deletionRetentionEnabled(if provided) is not a boolean.deletionRetentionEnabledwas set tofalse, but thebillTosets thedeletionRetentionEnforcedorg policy totrue.If
httpsAppIsolatedBrowsingOptionsis being set, buthttpsAppIsolatedBrowsingis not being set totrue.httpsAppIsolatedBrowsingOptionsis not a mapping or contains unrecognized keys.httpsAppIsolatedBrowsingOptions.pasteFromLocalClipboardMaxBytesis not an integer or within the expected range.If
tre.workspaceTypeis specified, the supported value is"restricted".The
providerandtremappings cannot both be specified.If TRE policy-controlled project flags are provided in the request and the corresponding TRE policy value is non-
null, the request is invalid.If the TRE uses a customized rate card,
billTomust be associated with the specified Data Access Request.
InvalidStatecontainsPHIis true, but the project is in a region that does not support PHI features.If
treis specified, the Data Access Request must be inapprovedstate.If
treis specified, the project region must match the TRE region.If
treis specified and the TRE uses a customized rate card, thebillTomust use the same rate card as the TRE.
SpendingLimitExceededThe
billTohas reached its spending limit.
OrgExpiredThe
billToorganization has expired.
PermissionDeniedOne of the following must be supplied: a full-scope token, a token with ADMINISTER access in all projects (
"*"), or a token with theprojectCreationscope set.If
containsPHIwas set to true, thebillToof the project must have PHI features enabled.If
externalUploadRestrictedwas set to true, thebillToof the project must have theexternalUploadRestrictedControllicense.If
httpsAppIsolatedBrowsingis being set totrue, thebillToof the project must have thehttpsAppIsolatedBrowsingControllicense.If
deletionRetentionEnabledwas provided, thebillToof the project must have thedeletionRetentionlicense feature.billTomust be either the ID of the requesting user or the ID of an org in which the requesting user is a member withallowBillableActivitiespermission.The
billToof the invoking user is an org and the user is no longer a member of that org.The
regionthat was selected was not among thepermittedRegionsof thebillTo.If
treis specified, the requesting user must be the applicant or a collaborator on the specified Data Access Request.
API method: /project-xxxx/update
Specification
Updates the specified project with the specified options. Options not supplied in the input hash remain unchanged. For example, if a project has the protected flag set, calling this method to update the title or description without the protected field preserves the flag's value. Only members with ADMINISTER access can update the project.
Inputs
namestring (optional) The new name of the project.summarystring (optional) The new summary of the project.descriptionstring (optional) The new description of the project.protectedboolean (optional) The new value of the protected property. See more details in the Project Data Access Controls section.restrictedboolean (optional) The new value of the restricted property. See more details in the Project Data Access Controls section.destroyProtectedboolean (optional) Whentrue, prevents the project from being destroyed. Can also be set or cleared by an ADMIN of the project'sbillToorganization, even without direct project membership. See more details in the Project Data Access Controls section.membersListRestrictedboolean (optional) Whentrue, only project admins can list project members via/system/findProjectMembers. See Project Data Access Controls for details.downloadRestrictedboolean (optional) If set to true, disables the downloading of data outside of the platform. For database objects, it prohibits users from accessing the data in the project from outside DNAnexus. When changed to true on an existing project,previewViewerRestrictedautomatically defaults to true unless explicitly overridden by providing thepreviewViewerRestrictedparameter in the same request.previewViewerRestrictedboolean (optional) If true, disables file preview and viewer for this project. WhendownloadRestrictedis changed to true, this flag automatically defaults to true, but can be explicitly overridden by providing this parameter in the same request. See Project Data Access Controls for details.externalUploadRestrictedboolean (optional) If true, data uploads to this project from outside the job context are rejected. See Project Data Access Controls for details. Defaults tofalse.httpsAppIsolatedBrowsingboolean (optional) If true, the jobs in the project have their httpsApp access wrapped in Isolated Browsing. See more details in the Project Data Access Controls and Isolated Browsing sections. Defaults tofalse.httpsAppIsolatedBrowsingOptionsmapping (optional) A mapping with Isolated Browsing options that replaces the existinghttpsAppIsolatedBrowsingOptionsmapping. Can be specified only if thehttpsAppIsolatedBrowsingargument is also set totrue. Mapping, if specified, may contain the following keys:pasteFromLocalClipboardMaxBytesinteger (optional) Must be between 0 and 262,144 bytes. Specifies the maximum size of the locally copied text that is pasteable in the remote browser. Value of0disables pasting of any local text into the remote browser and is the default whenpasteFromLocalClipboardMaxBytesis not explicitly specified. Defaults to0.
containsPHIboolean (optional) Set to true to mark the project as containing protected health information (PHI). See more details in the Project Data Access Controls section.egressBillTostring (optional) The new value for theegressBillToproperty.Must be one of
"projectBillTo"or"downloaderBillTo".
databaseUIViewOnlyboolean (optional) If set to true, project members with VIEW access have their access to project databases restricted to the Cohort Browser only.versioninteger (optional) If provided, the value must match the current project's version. Otherwise, the update applies unconditionally.billTostring (optional) ID of the entity to bill for any costs associated with this project. This must be the ID of the requesting user or an org of which the requesting user is a member withallowBillableActivitiespermission. Updating this field resets bothtotalSponsoredEgressBytesandconsumedSponsoredEgressBytesfor the project.allowedExecutablesarray of strings (optional, nullable) List of executable IDs permitted for root executions in this project. Set tonullor omit to remove executable restrictions.monthlyComputeLimitinteger (optional, nullable) The project-level compute spending limit. Treatnullas unlimited, which is a higher value than any non-null defaults.monthlyEgressBytesLimitinteger (optional, nullable) The project-level egress spending limit. Treatnullas unlimited, which is a higher value than any non-null defaults.monthlyStorageLimitnumber (optional, nullable) The project-level storage spending limit. Treatnullas unlimited, which is a higher value than any non-null defaults.deletionRetentionEnabledboolean (optional) Whether deleted data objects move to the project's recycle bin instead of being permanently deleted. For details, see Recycle Bin.Can be set only when the
billToof the project has thedeletionRetentionlicense feature.Cannot be set to
falsewhen thebillTosets thedeletionRetentionEnforcedorg policy totrue, or while the project's recycle bin is not empty.Recalculated when
billTochanges, based on the new billing org's license anddeletionRetentionEnforcedpolicy.
Outputs
idstring ID of the manipulated project.
Errors
ResourceNotFoundThe specified project does not exist.
InvalidInputThe input is not a hash.
name(if provided) is not a nonempty string.summary(if provided) is not a string.description(if provided) is not a string.protected,restricted,downloadRestricted,previewViewerRestricted,externalUploadRestricted,containsPHI,databaseUIViewOnly,httpsAppIsolatedBrowsing,destroyProtected, andmembersListRestricted(if provided) are not booleans.containsPHI(if provided) cannot be false -- marking a project as no longer containing PHI is unsupported.containsPHIis true, but the project is in a region that does not support PHI features.monthlyComputeLimitis not an integer and notnull, or is not larger than zero.*monthlyEgressBytesLimitis not an integer and notnull, or is not larger than zero.*monthlyComputeLimitis higher than the max value of the org default value and the currentmonthlyComputeLimitand the user is NOT the admin user of the org.*monthlyEgressBytesLimitis higher than the max value of the org default value and the currentmonthlyEgressBytesLimitand the user is NOT the admin user of the org.*monthlyStorageLimitis not a number, ornull, or is not larger than or equal to zero.*monthlyStorageLimitis higher than the max value of the org default value and the currentmonthlyStorageLimit, and the user is not an org admin.*httpsAppIsolatedBrowsingOptionscan only be specified whenhttpsAppIsolatedBrowsingis true.httpsAppIsolatedBrowsingOptionsis not a mapping or contains unrecognized keys.httpsAppIsolatedBrowsingOptions.pasteFromLocalClipboardMaxBytesis not an integer or within the expected range.deletionRetentionEnabled(if provided) is not a boolean.deletionRetentionEnabledwas set tofalse, but thebillTosets thedeletionRetentionEnforcedorg policy totrue.
InvalidStateversionwas provided and does not match the current version number found in the project.The project's recycle bin is not empty, and
deletionRetentionEnabledwas set tofalse. To turn off data retention, first recover or purge the recycle bin contents.The project's recycle bin is not empty, and
billTowas specified. To change the billing account, first recover or purge the recycle bin contents.The project's recycle bin contains only objects past their retention period, and
deletionRetentionEnabledwas set tofalseorbillTowas specified. Try again after the system permanently deletes them.The project is associated with a TRE and
billTowas specified. Changing the billing account of a TRE project is not allowed.The project is associated with a TRE and one or more project flags are enforced by TRE Policies for the project's workspace type (that is, non-
null). TRE-enforced project flags cannot be overridden.
PermissionDeniedcontainsPHIwas set to true, but thebillToof the project does not have PHI features enabled.If
externalUploadRestrictedwas set to true, thebillToof the project must have theexternalUploadRestrictedControllicense.The new billTo must be licensed to use the externalUploadRestricted option.
If
httpsAppIsolatedBrowsingis being set totrue, thebillToof the project must have thehttpsAppIsolatedBrowsingControllicense.The new
billTomust have thehttpsAppIsolatedBrowsingControllicense for projects withhttpsAppIsolatedBrowsingset totrue.If
deletionRetentionEnabledwas set totrue, thebillToof the project must have thedeletionRetentionlicense feature.billTomust be either the ID of the requesting user or the ID of an org of which the requesting user is a member withallowBillableActivitiespermission.If the requesting user is not one of the project admins or org admins of the project
billToorg.The
billToorg of the project does not havemonthlyProjectSpendingLimitenabled.The
billToorg does not havemonthlyProjectStorageSpendingLimitenabled.The requesting user is neither an ADMIN of the project nor an ADMIN of the billTo org of the project.
Setting or clearing
destroyProtectedrequires either ADMINISTER access to the project or admin privileges on the project'sbillToorganization.Can not change the billTo of
project-xxxxwhile the project contains a DBCluster.billTomust have theregionof this project in itspermittedRegions:If
billTois specified and the project is billed to an org, then the requesting user must be a member of the org. Depending on therestrictProjectTransfer, the requesting user may be required to be an ADMIN of the org.
API method: /project-xxxx/updateSponsorship
Specification
This method modifies specific forms of sponsorship in the project. It can be used to set or modify data egress sponsorship or to set or unset third-party data storage sponsorship in the project.
Data egress sponsorship, when set to a specified number of bytes, charges the project's billTo for data transferred outside of the system up to that amount, covering data downloaded by users. The billing rate varies based on the downloader's IP range. After exceeding the sponsored bytes limit, the downloader incurs the costs of downloading data from the project.
For projects with data storage sponsorship, the project's billTo covers storage charges for all objects in the project. Users or organizations with copies of these data objects in other projects receive free storage until the sponsorship period expires.
Adding data objects to a sponsored project makes them sponsored, and removing them revokes their sponsorship. An object can be sponsored in only one project at a time. Cloning an object into a sponsored project fails if another project sponsors the object.
For sponsored projects, use this method to update the expiration time or terminate sponsorship.
Inputs
sponsoredUntiltimestamp (optional, nullable) Sets the expiration time of data storage sponsorship. Specifyingnull(or any time in the past) terminates the sponsorship effective immediately.totalSponsoredEgressBytesinteger (optional) Sets the number of bytes to be sponsored for downloads (data egress) from the DNAnexus Platform to an external IP for this project. Users may download up to the specified number of bytes from the project at no cost to themselves, with the cost charged to the project's billTo. If the new value is less than the consumed bytes, the sponsor's charges apply only to completed downloads. Setting this value overrides rather than increments the previous value. To extend the byte limit, invoke this method with a value higher than its previous value.
Outputs
idstring ID of the project.
Errors
InvalidInputtotalSponsoredEgressBytesmust be a non-negative integer.
InvalidStateA data object in the project has third-party sponsorship in another project. Remove the data objects from this project (or from the other project) before applying third-party sponsorship. When this error occurs, the error
detailshas the form{alreadySponsored: [{id: ..., project: ...}, ...]}indicating the ID and sponsoring project of each third-party sponsored object.A data object in the project has DNAnexus sponsorship.
The project is archived.
The project has a pending transfer.
PermissionDeniedIf
sponsoredUntilis supplied, thebillToof the project requires data sponsorship features. Contact DNAnexus Support to enable data storage sponsorship features for your account.ADMINISTER access to the project is required.
The user's billTo must match the billTo of the project.
API method: /project-xxxx/setProperties
Specification
Sets properties on the specified project. To remove a property, set its value to JSON null instead of a string. This call updates project properties by merging the available properties with the provided input. The new values take precedence when the same key appears in both sets.
Best practice for resetting properties: Issue a describe call to get the property names, then issue a setProperties request to set those property values to null. This removes all key/value pairs. You can then replace them with new ones.
Inputs
propertiesmapping (required) Properties to modify.key — Name of property to modify.
value string or null — Either a new string value for the property, or
nullto unset the property.
Outputs
idstring ID of the manipulated project, such as "project-xxxx".
Errors
InvalidInputThe input is not a hash,
propertiesis missing or is not a hash, or there exists at least one value inpropertieswhich is neither a string nor the JSONnull.
ResourceNotFoundThe specified project does not exist.
PermissionDeniedCONTRIBUTE access is required for the specified project.
API method: /project-xxxx/describe
Specification
Describes the specified project.
Inputs
fieldsmapping (optional) Restrict the output of this method to have only the provided keys in this field.key — Output field to include or exclude. See the "Outputs" section for additional valid values here.
value boolean — Whether to include the field.
Outputs
idstring ID of the project, such as "project-xxxx"
The following fields are included by default (but can be disabled using fields) :
classstring The value "project".namestring The name of the project.regionstring The region this project resides in. For more information about regions, see Regions.summarystring The summary of the project.descriptionstring The description of the project.versioninteger The version number of the project used for tracking changes to its metadata.tagsarray of strings Tags associated with the project.billTostring ID of the account to which any costs associated with this project are billed.protectedboolean The value of the protected flag.restrictedboolean The value of the restricted flag.downloadRestrictedboolean The value of thedownloadRestrictedflag.previewViewerRestrictedboolean The value of thepreviewViewerRestrictedflag.externalUploadRestrictedboolean The value of theexternalUploadRestrictedflag.httpsAppIsolatedBrowsingboolean The value of thehttpsAppIsolatedBrowsingflag.destroyProtectedboolean Whether Project Deletion Protection is enabled. Whentrue, the project cannot be destroyed until this flag is set tofalse.httpsAppIsolatedBrowsingOptionsmapping A mapping with Isolated Browsing options.pasteFromLocalClipboardMaxBytesinteger Must be between 0 and 262,144 bytes. Specifies the maximum size of the locally copied text that is pasteable in the remote browser. Value of0disables pasting of any local text into the remote browser and is the default whenpasteFromLocalClipboardMaxBytesis not explicitly specified.
containsPHIboolean Whether the project is marked as containing protected health information (PHI) and subject to additional restrictions to ensure security and compliance.databaseUIViewOnlyboolean If set to true, project members with VIEW access have their access to project databases restricted to the Cohort Browser only.membersListRestrictedboolean The value of themembersListRestrictedflag.createdtimestamp Time at which this project was created.createdBymapping How the project was created.userstring ID of the user who created the project.jobstring ID of the job that created the project.Only present when the project was created by a job.
executablestring ID of the applet or app that the job was running.Only present when the project was created by a job.
modifiedtimestamp Time at which this project was last updated.levelstring The highest permission level that the requesting user has.dataUsagenumber Data usage in GB (not including sponsored data or DBCluster storage). Value updates can experience delays after project changes.defaultInstanceTypestring Default instance type for apps to run on.sponsoredDataUsagenumber Sum of DNAnexus-sponsored and third-party sponsored data usage in GB, excluding DBCluster storage. For third-party sponsored projects, objects appear indataUsagerather thansponsoredDataUsagesince the project'sbillTohandles the billing. Value updates can experience delays after container changes.sponsoredUntiltimestamp Indicates that the project is sponsored by itsbillTountil the specified time. The specified time must be in the future.Only present when the project is sponsored.
pendingTransferstring (nullable) If applicable, account ID that has been invited to take the project. Otherwisenull.totalSponsoredEgressBytesinteger The total number of bytes sponsored for this project over the lifetime of the project's current billTo. If this value is less thanconsumedSponsoredEgressBytes, the downloader is billed for additional downloads instead of the sponsor.consumedSponsoredEgressBytesinteger The number of sponsored bytes used to transfer files from this project out of the DNAnexus Platform, over the lifetime of the project's current billTo.allowedExecutablesarray of strings If present, the set of executable IDs that are allowed to run as root executions in this project.displayDataProtectionNoticeboolean Whether a data protection notice is displayed for the project.tremapping TRE association details. Only present when the project is associated with a Trusted Research Environment.treIdstring ID of the TRE.treApplicationIdstring ID of the Data Access Request used to create the project.workspaceTypestring The TRE workspace classification of the project. Defaults to"restricted".inventoryVersionstring The inventory version active when the project was dispensed.Only present on projects created with dispensal enabled (
tre.dispense: trueat project creation).
The following fields (included by default) are available if the requesting user has UPLOAD+ access to the project:
atSpendingLimitboolean Indicates whether thebillToof the project is at their spending limit (and therefore functionality is restricted).
The following fields (included by default) are available if the requesting user has permissions to view the pricing model of the billTo of the project:
storageCostnumber Storage cost (in dollars) of the project per month based on data usage (the total cost of an account's projects may be smaller than the sum of this value over all projects if any objects are shared between the projects).
The following fields are only returned if the corresponding field in the fields input is set to true:
foldersarray of strings List of all folders in the project.objectsinteger The number of visible objects in the project.permissionsmapping Who has permissions to access this project.key — Entity ID. A user or org ID.
value string — The permission level.
Must be one of
"VIEW","UPLOAD","CONTRIBUTE", or"ADMINISTER".
egressBillTostring The value of theegressBillToproperty.appCachesmapping List of containers attached to the project that have been created for running apps.key — App ID.
value string — ID of the app ID's project cache container.
propertiesmapping Properties associated with the project.key — Property name.
value string — Property value.
fileUploadParametersmapping Information about what part sizes and numbers are used to upload files in this project. See the section Limits on Parts of the Files API for more information about interpreting this. A mapping with the following key/value pairs:minimumPartSizeinteger Minimum part size, in bytes, that applies to all parts except the part with the highest index. (Clients may assume that ifemptyLastPartAllowedis false, thenminimumPartSizeis at least 1, that is, the constraint on the last part is no stronger than the constraint on previous parts.)maximumPartSizeinteger Maximum part size, in bytes.emptyLastPartAllowedboolean If true, then the minimum number of parts is 1 and the part with the highest index may contain 0 bytes. If false, then the minimum number of parts is 0 and the part with the highest index must contain at least 1 byte. All parts other than the part with the highest index must still have minimum size given byminimumPartSize. If true, then the client can upload a 0-byte file by invoking/file-xxxx/uploadonce with a part of size 0. If false, then the client can upload a 0-byte file by not invoking/file-xxxx/uploadat all.maximumNumPartsinteger The maximum number of parts that may be uploaded (also equal to the largest permissible part index).maximumFileSizeinteger The maximum size of the file, in bytes.
availableInstanceTypesmapping Instances available in the project for apps and applets to run on.key — Instance type.
value mapping — Contains information on the instance type.
numCoresinteger Number of cores.totalMemoryMBinteger Memory size in MB.ephemeralStorageGBinteger Storage size in GB.osarray of mappings Supported operating systems. Each value is a mapping with the following fields, indicating one of the supported operating systems:distributionstring The Linux operating system distribution. Must match thedistributionof the run specifications of the app or the applet to be run.releasestring The Linux operating system release. Must match thereleaseof the run specifications of the app or the applet to be run.
rankinteger Ranking of the instance type based on its value, with a rank value of 1 being the least valuable.
metadataCapacitynumber Value ofmetadataCapacity. Between 0 and 1, with a 1 indicating the project is at maximum metadata capacity and cannot accept additional metadata.supportAccessmapping (nullable) Information about DNAnexus Support access granted to the project via/project-xxxx/invite, ornullif no DNAnexus Support invitation has been made.enabledboolean Whether a DNAnexus Support organization has access to the project.supportOrgIdstring ID of the DNAnexus Support organization granted access. The organization ID has the formorg-dnanexus_support_<project billTo's org-handle>, for exampleorg-dnanexus_support_org-abc.grantedAttimestamp Time at which DNAnexus Support access was granted.grantedBystring ID of the user who granted DNAnexus Support access.expiresAttimestamp Time at which DNAnexus Support access expires and is automatically revoked.revokedAttimestamp Time at which DNAnexus Support access was revoked before its scheduled expiration.Only present when access was revoked before
expiresAt.
revokedBystring ID of the user who revoked DNAnexus Support access before its scheduled expiration.Only present when access was revoked before
expiresAt.
The following fields are only returned if the corresponding field in the fields input is set to true and the billTo of the project has the dataCatalog feature enabled:
dataCatalogstring (nullable) The ID of the data catalog the project belongs to, ornullif the project is not associated with a data catalog.
The following fields (included by default) are available if the requesting user has permissions to view the pricing model of the billTo of the project and the billTo of the project has monthlyProjectSpendingLimit enabled:
monthlyComputeLimitinteger (nullable) The current monthly project spending limit for compute.monthlyEgressBytesLimitinteger (nullable) The current monthly project spending limit for egress.currentMonthComputeAvailableBudgetnumber (nullable) The current month's project available spending budget for compute.currentMonthEgressBytesAvailableBudgetnumber (nullable) The current month's project available spending budget for egress.currentMonthComputeUsagenumber The current month's project usage for compute.currentMonthEgressBytesUsagenumber The current month's project usage for egress.
The following fields (included by default) are available if the requesting user has permissions to view the pricing model of the billTo of the project and the billTo of the project has monthlyProjectStorageSpendingLimit enabled:
monthlyStorageLimitnumber (nullable) The current monthly project spending limit for storagecurrentMonthStorageAvailableBudgetnumber (nullable) The current month's project available spending budget for storagecurrentMonthExpectedStorageUsagenumber The current month's projected usage for storage
The following fields (included by default) are available if the billTo of the project has the deletionRetention feature enabled. For more information, see Recycle Bin:
deletionRetentionEnabledboolean Whether deleted data objects in this project move to the project's recycle bin instead of being permanently deleted.deletionRetentionEnforcedboolean The value of thebillToorg'sdeletionRetentionEnforcedpolicy. Whentrue,deletionRetentionEnabledcannot be set tofalsefor this project.deletionRetentionPeriodinteger The number of days that deleted data objects are kept in the recycle bin, taken from thebillToorg'sdeletionRetentionPeriodpolicy.
Errors
ResourceNotFoundThe specified project does not exist.
InvalidInputInput is not a hash, or
fieldsif present, is not a hash or has a non-boolean key.
PermissionDeniedMust have at least VIEW access to the project, be the
billTowith a full-scope token (if thebillTois a user) , or be an admin of thebillTowith a full-scope token (if thebillTois an org).
API method: /project-xxxx/destroy
Specification
Destroys the specified project. All objects in the project are removed.
For jobs not in a terminal state (not done, failed, or terminated), the system throws an InvalidState error unless the terminateJobs option is set to force termination.
In a project with data retention turned on, remove all data from the project and purge the recycle bin before you destroy it. To purge the recycle bin, use /project-xxxx/purgeRecycleBinObjects.
Inputs
terminateJobsboolean (optional) Whether to force the destruction of the project and terminate all non-terminal jobs. Defaults tofalse.
Outputs
idstring ID of the manipulated project.
Errors
ResourceNotFoundThe specified project does not exist.
PermissionDeniedThe requesting user is neither an ADMIN of the project nor an ADMIN of the billTo org of the project.
InvalidInputterminateJobs(if present) is not a boolean.
InvalidStateterminateJobswas not set to true, and there still remain jobs which are not in a terminal state.The project is sponsored (sponsorship must be terminated before the project may be destroyed).
The project's
destroyProtectedflag is set totrue. The project must havedestroyProtectedexplicitly set tofalsebefore it can be destroyed.The project has data retention turned on and still contains data. To destroy the project, first remove all its data.
The project's recycle bin is not empty. To destroy the project, first purge the recycle bin contents.
The project's recycle bin contains only objects past their retention period. Try again after the system permanently deletes them.
API method: /project-xxxx/listRecycleBin
Specification
Lists the data objects in the project's recycle bin, including hidden linked objects that moved into the recycle bin with a deleted object. Objects past their purgeAt time are not listed. For more information, see Recycle Bin.
Inputs
This method takes no input fields.
Outputs
idstring ID of the project.objectsarray of mappings The objects in the recycle bin. Each mapping contains:idstring ID of the data object.classstring The class of the data object, such as"file"or"record".namestring The name of the data object.deletedAttimestamp Time at which the object was deleted.purgeAttimestamp Time after which the object is permanently deleted.previousFolderstring The folder the object was deleted from.
Errors
ResourceNotFoundThe specified project does not exist.
InvalidStateData retention is not turned on for the project.
PermissionDeniedVIEW access is required.
This method may return standard API errors.
API method: /project-xxxx/recoverObjects
Specification
Restores data objects from the project's recycle bin. Each object returns to the folder recorded in its previousFolder metadata, and any missing folders on that path are recreated. Hidden linked objects that moved into the recycle bin with a requested object are restored with it.
If any requested object cannot be recovered, none of the objects in the request are recovered.
To recover a DBCluster, use /dbcluster-xxxx/recover.
Inputs
objectsarray of strings (required) IDs of the data objects to recover. Must be nonempty and must contain at most 10,000 IDs.
Outputs
idstring ID of the project.dataObjectsarray of strings IDs of the recovered data objects, including hidden linked objects recovered with them.
Errors
InvalidInputobjectsis missing, is not an array of nonempty strings, or is empty.objectscontains more than 10,000 IDs.objectscontains a DBCluster ID.
ResourceNotFoundThe specified project does not exist.
One of the specified objects is not in the project's recycle bin.
InvalidStateData retention is not turned on for the project.
One of the specified objects is past its retention period.
PermissionDeniedCONTRIBUTE access is required.
This method may return standard API errors.
API method: /project-xxxx/purgeRecycleBinObjects
Specification
Purges data objects from the project's recycle bin before their retention period ends. Hidden linked objects that moved into the recycle bin with a requested object are purged with it. Purged objects cannot be recovered.
Purging permanently removes the project's links to the specified objects. Copies of those objects in other projects remain unaffected. The underlying file data is permanently deleted from platform storage only when the purged object is the last remaining link. For more information about how data objects and copies share platform data, see Platform IDs and Data Objects in Projects.
Each object is processed independently. Objects that cannot be purged are listed in failed, and the rest are purged.
Inputs
objectsarray of strings (required) IDs of the data objects to purge. Must be nonempty and must contain at most 10,000 IDs.
Outputs
idstring ID of the project.scheduledarray of strings IDs of the objects scheduled for permanent deletion, including hidden linked objects scheduled with them.failedarray of mappings The objects that were not scheduled. Each mapping contains:idstring ID of the object.reasonstring Why the object was not scheduled.Must be one of
"notFoundInRecycleBin"or"expired".
Errors
InvalidInputobjectsis missing, is not an array of nonempty strings, or is empty.objectscontains more than 10,000 IDs.
ResourceNotFoundThe specified project does not exist.
InvalidStateData retention is not turned on for the project.
The request covers more than 10,000 objects, counting hidden linked objects. To purge them, split the request into smaller batches.
PermissionDeniedADMINISTER access is required.
This method may return standard API errors.
API method: /project-xxxx/addTags
Specification
Tags the project with the given strings. Previously applied tags remain unaffected.
Inputs
tagsarray of strings (required) Tags to be added.
Outputs
idstring ID of the manipulated project.
Errors
ResourceNotFoundThe specified project does not exist.
InvalidInputtagsis not present or is not a list of nonempty strings.
PermissionDeniedCONTRIBUTE access is required.
API method: /project-xxxx/removeTags
Specification
Removes the given tags from the project. Tags that do not exist have no effect when removed.
Inputs
tagsarray of strings (required) Tags to be removed.
Outputs
idstring ID of the manipulated project.
Errors
ResourceNotFoundThe specified project does not exist.
InvalidInputtagsis not present or is not a list of nonempty strings.
PermissionDeniedCONTRIBUTE access is required.
API method: /project-xxxx/countRootExecutions
Specification
Counts the root executions in this project that were created within the last 7 days by state. Returns an object whose keys are execution states, and whose values are the number of root executions that are in that state.
Inputs
None
Outputs
key — State.
value integer — Number of root executions in that state.
Errors
ResourceNotFoundThe specified project does not exist.
PermissionDeniedVIEW access is required.
API method: /system/getProjectTags
Specification
Returns the tags on all visible projects. The initial implementation includes only public projects.
Inputs
None
Outputs
key — Tag.
value integer — Number of projects with the tag.
Errors
No errors are returned.
API method: /project-xxxx/archive
Specification
Requests that a set of files be archived on the platform. For each file, if this is the last copy of a file to have archival requested, this triggers the full archival of the object. Otherwise, the file receives an archival state marking that archival has been requested.
Inputs
filesarray of strings (optional) A subset list of files to archive. Example:'{"files": ["file-xxxx", "file-yyyy"], "allCopies": true}'. Mutually exclusive withfolder.folderstring (optional) The folder that contains all files to archive. Example:'{"folder" : "/folder1"}'. Mutually exclusive withfilesand required whenfilesis not present.recurseboolean (optional) If true, archive all files in subfolders offolder. If false, only archive files infolder.foldermust be set. Defaults totrue.allCopiesboolean (optional) This flag forces the transition of files into thearchivedstate. The requesting user must be theADMINof the projectbillToorg. If true, archive all the copies of files in projects with the samebillToorg. If false, only the copy of the file in the current project transitions to thearchivalstate, while other copies of the file in other projects with the samebillToorg remain in thelivestate. Defaults tofalse.
Outputs
idstring The id of the project.countinteger The number of files to be tagged for archival.
Errors
InvalidInputIf both
filesandfolderare provided.
InvalidStateOne or more files are in an "open" ("non-closed") state.
One or more files are being used as
bundledDependsfor applets.
ResourceNotFoundThe specified project does not exist.
A file or folder does not exist.
PermissionDeniedCONTRIBUTE access is required, or the requesting user must have the
archivalManagementpermission for org-wide operations.Must be an org ADMIN of the project
billToorg, or a MEMBER with thearchivalManagementpermission, to use theallCopiesoption.
API method: /project-xxxx/unarchive
Specification
Requests that a set of files be unarchived on the platform. This is an asynchronous command. The requested copy transitions to the live state while all other copies move to the archival state.
Inputs
filesarray of strings (optional) A subset list of files to unarchive. Mutually exclusive withfolderand required whenfolderis not present.folderstring (optional) The folder that contains all files to unarchive. Mutually exclusive withfilesand required whenfilesis not present.recurseboolean (optional) If true, unarchive all files in subfolders offolder. If false, only unarchive files infolder.foldermust be set. Defaults totrue.ratestring (optional) The speed at which all files in this request are unarchived. Valid entries:For Azure regions, the accepted values are
"Standard"and"Expedited". For details about retrieval times, see Rehydration priority in the Azure documentation.For AWS regions, the accepted values are "Standard" and "Bulk". For details about retrieval times, see Understanding archive retrieval options in the AWS documentation.
dryRunboolean (optional) If true, only display the output of the API call without executing the unarchival process. Defaults tofalse.
Outputs
filesinteger The number of files to be unarchived.sizeinteger The size of the data, in GB, to be unarchived.costnumber The total cost, in millidollars, to be charged for the unarchival request.
Errors
InvalidInputIf both
filesandfolderare provided.
ResourceNotFoundThe specified project does not exist.
A file or folder does not exist.
PermissionDeniedCONTRIBUTE access is required, or the requesting user must have the
archivalManagementpermission for org-wide operations.
Last updated
Was this helpful?