api

package
v4.0.1-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: UNKNOWN not legal advice Imports: 6 Imported by: 0

Documentation

Overview

Api classes for dataprotection's golang SDK

Api classes for dataprotection's golang SDK

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtectedResourcesApi

type ProtectedResourcesApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewProtectedResourcesApi

func NewProtectedResourcesApi(apiClient *client.ApiClient) *ProtectedResourcesApi

func (*ProtectedResourcesApi) GetProtectedResourceById

func (api *ProtectedResourcesApi) GetProtectedResourceById(extId *string, args ...map[string]interface{}) (*import1.GetProtectedResourceApiResponse, error)

Get the details of the specified protected resource such as the restorable time ranges available on the local Prism Central and the state of replication to the targets specified in the applied protection policies. This applies only if the entity is protected in a minutely or synchronous schedule. Other protection schedules are not served by this endpoint yet, and are considered not protected.

func (*ProtectedResourcesApi) PromoteProtectedResource

func (api *ProtectedResourcesApi) PromoteProtectedResource(extId *string, args ...map[string]interface{}) (*import1.ProtectedResourcePromoteApiResponse, error)

Promotes the specified synced entity at the target site. This is only relevant if the synced entity is protected in a synchronous schedule.

func (*ProtectedResourcesApi) RestoreProtectedResource

func (api *ProtectedResourcesApi) RestoreProtectedResource(extId *string, body *import1.ProtectedResourceRestoreSpec, args ...map[string]interface{}) (*import1.ProtectedResourceRestoreApiResponse, error)

Restore the specified protected resource from its state at the given timestamp on the given cluster. This is only relevant if the entity is protected in a minutely schedule at the given timestamp.

type RecoveryPointsApi

type RecoveryPointsApi struct {
	ApiClient *client.ApiClient
	// contains filtered or unexported fields
}

func NewRecoveryPointsApi

func NewRecoveryPointsApi(apiClient *client.ApiClient) *RecoveryPointsApi

func (*RecoveryPointsApi) CreateRecoveryPoint

func (api *RecoveryPointsApi) CreateRecoveryPoint(body *import1.RecoveryPoint, args ...map[string]interface{}) (*import1.CreateRecoveryPointApiResponse, error)

Create a new recovery point.<br> #### Task Completion Details <br> External identifier of the created recovery point can be found in the task completion details under the key `recoveryPointExtId`.

func (*RecoveryPointsApi) DeleteRecoveryPointById

func (api *RecoveryPointsApi) DeleteRecoveryPointById(extId *string, args ...map[string]interface{}) (*import1.DeleteRecoveryPointApiResponse, error)

Delete the recovery point identified by {extId}.

func (*RecoveryPointsApi) GetRecoveryPointById

func (api *RecoveryPointsApi) GetRecoveryPointById(extId *string, args ...map[string]interface{}) (*import1.GetRecoveryPointApiResponse, error)

Query the recovery point identified by {extId}.

func (*RecoveryPointsApi) ListRecoveryPoints

func (api *RecoveryPointsApi) ListRecoveryPoints(page_ *int, limit_ *int, filter_ *string, orderby_ *string, select_ *string, args ...map[string]interface{}) (*import1.ListRecoveryPointsApiResponse, error)

List of recovery point.

func (*RecoveryPointsApi) ReplicateRecoveryPoint

func (api *RecoveryPointsApi) ReplicateRecoveryPoint(extId *string, body *import1.RecoveryPointReplicationSpec, args ...map[string]interface{}) (*import1.RecoveryPointReplicateApiResponse, error)

Replicate the recovery point identified by {extId}.<br> #### Task Completion Details <br> External identifier of the replicated recovery point can be found in the task completion details under the key `recoveryPointExtId`.

func (*RecoveryPointsApi) RestoreRecoveryPoint

func (api *RecoveryPointsApi) RestoreRecoveryPoint(extId *string, body *import1.RecoveryPointRestorationSpec, args ...map[string]interface{}) (*import1.RecoveryPointRestoreApiResponse, error)

Restore a recovery point identified by {extId}.<br> #### Task Completion Details <br> A comma separated list of the created VM and volume group external identifiers can be found in the task completion details under the keys `vmExtIds` and `volumeGroupExtIds` respectively.

func (*RecoveryPointsApi) SetRecoveryPointExpirationTime

func (api *RecoveryPointsApi) SetRecoveryPointExpirationTime(extId *string, body *import1.ExpirationTimeSpec, args ...map[string]interface{}) (*import1.UpdateRecoveryPointExpirationTimeApiResponse, error)

Set the expiration time for the recovery point identified by {extId}.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL