--- title: "Snapshot" hideTitleOnPage: true --- ## Snapshot **Properties**: - `id` _string_ - `name` _string_ - `class` _ArtifactClass_ - `kind` _SnapshotKind_ - `rawKind` _string_ - `availableIn` _string\[\]_ - `status` _string_ - `error?` _string \| null_ - `createdAt` _string_ - `updatedAt` _string_ - `memoryBytes?` _number_ - `sandboxId?` _string_ ### Constructors #### Constructor ```ts new Snapshot(snapshot: api.SnapshotRow): Snapshot; ``` **Parameters**: - `snapshot` _api.SnapshotRow_ **Returns**: - `Snapshot` *** ## SnapshotsService ### Constructors #### Constructor ```ts new SnapshotsService(http: AxiosInstance): SnapshotsService; ``` **Parameters**: - `http` _AxiosInstance_ **Returns**: - `SnapshotsService` ### Methods #### delete() ```ts delete(snapshotId: string): Promise; ``` **Parameters**: - `snapshotId` _string_ **Returns**: - `Promise` #### get() ```ts get( snapshotId: string, options: { wait?: 'ready'; timeout?: number } = {}): Promise; ``` **Parameters**: - `snapshotId` _string_ - `options` _\{ wait?: 'ready'; timeout?: number \} = \{\}_ **Returns**: - `Promise` #### iter() ```ts iter( options: { cursor?: string; limit?: number; name?: string; sandboxId?: string } = {}): AsyncIterable; ``` **Parameters**: - `options` _\{ cursor?: string; limit?: number; name?: string; sandboxId?: string \} = \{\}_ **Returns**: - `AsyncIterable` #### list() ```ts list( options: { cursor?: string; limit?: number; name?: string; sandboxId?: string } = {}): Promise>; ``` **Parameters**: - `options` _\{ cursor?: string; limit?: number; name?: string; sandboxId?: string \} = \{\}_ **Returns**: - `Promise>`