/** * DomainManagerBackups service. * @version 4.4.2 * @class DomainManagerBackupsApi */ export class DomainManagerBackupsApi { /** * Make the default {@link ApiClient} class available for developers to be able to extend it and bring * their own fetch methods into the SDK */ static get ApiClient(): typeof ApiClient; /** * Constructs a new DomainManagerBackupsApi. * @alias module:api/DomainManagerBackupsApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ constructor(apiClient?: any); apiClient: any; /** * Create backup target * Creates a cluster or object store as the backup target. For a given Prism Central, there can be up to 3 clusters as backup targets and 1 object store as backup target. If any cluster or object store is not eligible for backup or lacks appropriate permissions, the API request will fail. For object store backup targets, specifying backup policy is mandatory along with the location of the object store. * @param { Partial } body specification * @param { String } domainManagerExtId A unique identifier for the domain manager. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateBackupTargetApiResponse } and HTTP response */ createBackupTarget(domainManagerExtId: string, body: Partial, ...args: any): Promise; /** * Create restore source * Creates a restore source pointing to a cluster or object store to restore the domain manager. The created restore source is intended to be deleted after use. If the restore source is not deleted using the deleteRestoreSource API, then it is auto-deleted after sometime. Also note that a restore source will not contain a backup policy. It is only used to access the backup data at the location from where the Prism Central may be restored. Credentials used to access the restore source are not validated at the time of creation of the restore source. They are validated when the restore source is used to fetch data. * @param { Partial } body specification * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateRestoreSourceApiResponse } and HTTP response */ createRestoreSource(body: Partial, ...args: any): Promise; /** * Delete backup target * Removes cluster/object store from the backup targets. This will stop the cluster/object store from backing up Prism Central data. * @param { String } domainManagerExtId A unique identifier for the domain manager. * @param { String } extId A globally unique identifier of an instance that is suitable for external consumption. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteBackupTargetApiResponse } and HTTP response */ deleteBackupTargetById(domainManagerExtId: string, extId: string, ...args: any): Promise; /** * Delete restore source * Deletes a restore source on a cluster/object store. * @param { String } extId A globally unique identifier of an instance that is suitable for external consumption. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteRestoreSourceApiResponse } and HTTP response */ deleteRestoreSourceById(extId: string, ...args: any): Promise; /** * Fetch backup target * Retrieves the backup targets (cluster or object store) from a domain manager and returns the backup configuration and lastSyncTimestamp parameter to the user. * @param { String } domainManagerExtId A unique identifier for the domain manager. * @param { String } extId A globally unique identifier of an instance that is suitable for external consumption. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetBackupTargetApiResponse } and HTTP response */ getBackupTargetById(domainManagerExtId: string, extId: string, ...args: any): Promise; /** * Get restore point details * Retrieves detailed information about a specific recovery point and provides essential domain manager information stored in the backup, which is required for the restoration process. * @param { String } restoreSourceExtId A unique identifier obtained from the restore source API that corresponds to the details provided for the restore source. * @param { String } restorableDomainManagerExtId A unique identifier for the domain manager. * @param { String } extId Restore point ID for the backup created in cluster/object store. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetRestorePointApiResponse } and HTTP response */ getRestorePointById(restoreSourceExtId: string, restorableDomainManagerExtId: string, extId: string, ...args: any): Promise; /** * Fetch restore source * Retrieves the restore source from the PE cache store and returns the restore source configuration and external identifier to the user. * @param { String } extId A globally unique identifier of an instance that is suitable for external consumption. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetRestoreSourceApiResponse } and HTTP response */ getRestoreSourceById(extId: string, ...args: any): Promise; /** * List backup targets * Lists backup targets (cluster or object store) configured for a given domain manager. * @param { String } domainManagerExtId A unique identifier for the domain manager. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListBackupTargetsApiResponse } and HTTP response */ listBackupTargets(domainManagerExtId: string, ...args: any): Promise; /** * List restorable domain managers * Lists all the domain managers backed up at the object store/cluster. * @param { String } restoreSourceExtId A unique identifier obtained from the restore source API that corresponds to the details provided for the restore source. * @param {Object} opts Optional parameters defined for the operation * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. If both $page and $apply query parameters are present, $page will be applied on entities within the groups. * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. If both $limit and $apply query parameters are present, $limit will be applied on entities within the groups. Default value of limit with $apply will be 5. * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.
* For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'. If both $filter and $apply query parameters are present, $filter will be applied on entities within the groups. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRestorableDomainManagersApiResponse } and HTTP response */ listRestorableDomainManagers(restoreSourceExtId: string, opts: { $page: number; $limit: number; $filter: string; }, ...args: any): Promise; /** * List restore points * The list restore points API allows you to retrieve a list of available restore points, which are snapshots of the domain manager taken at different times. These restore points can be used to revert the domain manager to a previous state. The list response includes the creation time and identifier ID for the configuration data.<br> 1. For cluster-based backups, only the most recent restore point is available, as backups are continuous.<br> 2. For object store-based backups, multiple restore points may be available, depending on the configured Recovery Point Objective (RPO) and the retention period set on the bucket. * @param { String } restoreSourceExtId A unique identifier obtained from the restore source API that corresponds to the details provided for the restore source. * @param { String } restorableDomainManagerExtId A unique identifier for the domain manager. * @param {Object} opts Optional parameters defined for the operation * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. If both $page and $apply query parameters are present, $page will be applied on entities within the groups. * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. If both $limit and $apply query parameters are present, $limit will be applied on entities within the groups. Default value of limit with $apply will be 5. * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.
* For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'. If both $filter and $apply query parameters are present, $filter will be applied on entities within the groups. * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order. If both $orderby and $apply query parameters are present, $orderby will be applied on entities within the groups. * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. If both $select and $apply query parameters are present, $select will be applied on entities within the groups. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRestorePointsApiResponse } and HTTP response */ listRestorePoints(restoreSourceExtId: string, restorableDomainManagerExtId: string, opts: { $page: number; $limit: number; $filter: string; $orderby: string; $select: string; }, ...args: any): Promise; /** * Restore domain manager * The restore domain manager is a task-driven operation to restore a domain manager from a cluster or object store backup location based on the selected restore point. * @param { Required> & Partial } body specification * @param { String } restoreSourceExtId A unique identifier obtained from the restore source API that corresponds to the details provided for the restore source. * @param { String } restorableDomainManagerExtId A unique identifier for the domain manager. * @param { String } extId Restore point ID for the backup created in cluster/object store. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RestoreApiResponse } and HTTP response */ restore(restoreSourceExtId: string, restorableDomainManagerExtId: string, extId: string, body: Required> & Partial, ...args: any): Promise; /** * Update backup target * Updates the credentials, RP0, or certificates (for Nutanix Objects only) of the given object store based on the user requirements. RPO is mandatory to be passed in payload. Credentials and certificates are optional to pass in update backup target api. If credentials or certificates are not passed then these will not be updated for a backup target. * @param { Partial } body specification * @param { String } domainManagerExtId A unique identifier for the domain manager. * @param { String } extId A globally unique identifier of an instance that is suitable for external consumption. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateBackupTargetApiResponse } and HTTP response */ updateBackupTargetById(domainManagerExtId: string, extId: string, body: Partial, ...args: any): Promise; #private; } import BackupTarget from "../models/prism/v4/management/BackupTarget"; import CreateBackupTargetApiResponse from "../models/prism/v4/management/CreateBackupTargetApiResponse"; import RestoreSource from "../models/prism/v4/management/RestoreSource"; import CreateRestoreSourceApiResponse from "../models/prism/v4/management/CreateRestoreSourceApiResponse"; import DeleteBackupTargetApiResponse from "../models/prism/v4/management/DeleteBackupTargetApiResponse"; import DeleteRestoreSourceApiResponse from "../models/prism/v4/management/DeleteRestoreSourceApiResponse"; import GetBackupTargetApiResponse from "../models/prism/v4/management/GetBackupTargetApiResponse"; import GetRestorePointApiResponse from "../models/prism/v4/management/GetRestorePointApiResponse"; import GetRestoreSourceApiResponse from "../models/prism/v4/management/GetRestoreSourceApiResponse"; import ListBackupTargetsApiResponse from "../models/prism/v4/management/ListBackupTargetsApiResponse"; import ListRestorableDomainManagersApiResponse from "../models/prism/v4/management/ListRestorableDomainManagersApiResponse"; import ListRestorePointsApiResponse from "../models/prism/v4/management/ListRestorePointsApiResponse"; import RestoreSpec from "../models/prism/v4/management/RestoreSpec"; import RestoreApiResponse from "../models/prism/v4/management/RestoreApiResponse"; import UpdateBackupTargetApiResponse from "../models/prism/v4/management/UpdateBackupTargetApiResponse"; import { ApiClient } from "../ApiClient";