Documentation ¶
Index ¶
- func GenReqDefForAddProtectedInstanceNic() *def.HttpRequestDef
- func GenReqDefForAddProtectedInstanceTags() *def.HttpRequestDef
- func GenReqDefForAttachProtectedInstanceReplication() *def.HttpRequestDef
- func GenReqDefForBatchAddTags() *def.HttpRequestDef
- func GenReqDefForBatchCreateProtectedInstances() *def.HttpRequestDef
- func GenReqDefForBatchDeleteProtectedInstances() *def.HttpRequestDef
- func GenReqDefForBatchDeleteTags() *def.HttpRequestDef
- func GenReqDefForCreateDisasterRecoveryDrill() *def.HttpRequestDef
- func GenReqDefForCreateProtectedInstance() *def.HttpRequestDef
- func GenReqDefForCreateProtectionGroup() *def.HttpRequestDef
- func GenReqDefForCreateReplication() *def.HttpRequestDef
- func GenReqDefForDeleteAllServerGroupFailureJobs() *def.HttpRequestDef
- func GenReqDefForDeleteDisasterRecoveryDrill() *def.HttpRequestDef
- func GenReqDefForDeleteFailureJob() *def.HttpRequestDef
- func GenReqDefForDeleteProtectedInstance() *def.HttpRequestDef
- func GenReqDefForDeleteProtectedInstanceNic() *def.HttpRequestDef
- func GenReqDefForDeleteProtectedInstanceTag() *def.HttpRequestDef
- func GenReqDefForDeleteProtectionGroup() *def.HttpRequestDef
- func GenReqDefForDeleteReplication() *def.HttpRequestDef
- func GenReqDefForDeleteServerGroupFailureJobs() *def.HttpRequestDef
- func GenReqDefForDetachProtectedInstanceReplication() *def.HttpRequestDef
- func GenReqDefForExpandReplication() *def.HttpRequestDef
- func GenReqDefForListActiveActiveDomains() *def.HttpRequestDef
- func GenReqDefForListApiVersions() *def.HttpRequestDef
- func GenReqDefForListDisasterRecoveryDrills() *def.HttpRequestDef
- func GenReqDefForListFailureJobs() *def.HttpRequestDef
- func GenReqDefForListProtectedInstanceTags() *def.HttpRequestDef
- func GenReqDefForListProtectedInstances() *def.HttpRequestDef
- func GenReqDefForListProtectedInstancesByTags() *def.HttpRequestDef
- func GenReqDefForListProtectedInstancesProjectTags() *def.HttpRequestDef
- func GenReqDefForListProtectionGroups() *def.HttpRequestDef
- func GenReqDefForListReplications() *def.HttpRequestDef
- func GenReqDefForListRpoStatistics() *def.HttpRequestDef
- func GenReqDefForResizeProtectedInstance() *def.HttpRequestDef
- func GenReqDefForShowDisasterRecoveryDrill() *def.HttpRequestDef
- func GenReqDefForShowJobStatus() *def.HttpRequestDef
- func GenReqDefForShowProtectedInstance() *def.HttpRequestDef
- func GenReqDefForShowProtectionGroup() *def.HttpRequestDef
- func GenReqDefForShowQuota() *def.HttpRequestDef
- func GenReqDefForShowReplication() *def.HttpRequestDef
- func GenReqDefForShowSpecifiedApiVersion() *def.HttpRequestDef
- func GenReqDefForStartFailoverProtectionGroup() *def.HttpRequestDef
- func GenReqDefForStartProtectionGroup() *def.HttpRequestDef
- func GenReqDefForStartReverseProtectionGroup() *def.HttpRequestDef
- func GenReqDefForStopProtectionGroup() *def.HttpRequestDef
- func GenReqDefForUpdateDisasterRecoveryDrillName() *def.HttpRequestDef
- func GenReqDefForUpdateProtectedInstanceName() *def.HttpRequestDef
- func GenReqDefForUpdateProtectionGroupName() *def.HttpRequestDef
- func GenReqDefForUpdateReplicationName() *def.HttpRequestDef
- func SdrsClientBuilder() *http_client.HcHttpClientBuilder
- type SdrsClient
- func (c *SdrsClient) AddProtectedInstanceNic(request *model.AddProtectedInstanceNicRequest) (*model.AddProtectedInstanceNicResponse, error)
- func (c *SdrsClient) AddProtectedInstanceTags(request *model.AddProtectedInstanceTagsRequest) (*model.AddProtectedInstanceTagsResponse, error)
- func (c *SdrsClient) AttachProtectedInstanceReplication(request *model.AttachProtectedInstanceReplicationRequest) (*model.AttachProtectedInstanceReplicationResponse, error)
- func (c *SdrsClient) BatchAddTags(request *model.BatchAddTagsRequest) (*model.BatchAddTagsResponse, error)
- func (c *SdrsClient) BatchCreateProtectedInstances(request *model.BatchCreateProtectedInstancesRequest) (*model.BatchCreateProtectedInstancesResponse, error)
- func (c *SdrsClient) BatchDeleteProtectedInstances(request *model.BatchDeleteProtectedInstancesRequest) (*model.BatchDeleteProtectedInstancesResponse, error)
- func (c *SdrsClient) BatchDeleteTags(request *model.BatchDeleteTagsRequest) (*model.BatchDeleteTagsResponse, error)
- func (c *SdrsClient) CreateDisasterRecoveryDrill(request *model.CreateDisasterRecoveryDrillRequest) (*model.CreateDisasterRecoveryDrillResponse, error)
- func (c *SdrsClient) CreateProtectedInstance(request *model.CreateProtectedInstanceRequest) (*model.CreateProtectedInstanceResponse, error)
- func (c *SdrsClient) CreateProtectionGroup(request *model.CreateProtectionGroupRequest) (*model.CreateProtectionGroupResponse, error)
- func (c *SdrsClient) CreateReplication(request *model.CreateReplicationRequest) (*model.CreateReplicationResponse, error)
- func (c *SdrsClient) DeleteAllServerGroupFailureJobs(request *model.DeleteAllServerGroupFailureJobsRequest) (*model.DeleteAllServerGroupFailureJobsResponse, error)
- func (c *SdrsClient) DeleteDisasterRecoveryDrill(request *model.DeleteDisasterRecoveryDrillRequest) (*model.DeleteDisasterRecoveryDrillResponse, error)
- func (c *SdrsClient) DeleteFailureJob(request *model.DeleteFailureJobRequest) (*model.DeleteFailureJobResponse, error)
- func (c *SdrsClient) DeleteProtectedInstance(request *model.DeleteProtectedInstanceRequest) (*model.DeleteProtectedInstanceResponse, error)
- func (c *SdrsClient) DeleteProtectedInstanceNic(request *model.DeleteProtectedInstanceNicRequest) (*model.DeleteProtectedInstanceNicResponse, error)
- func (c *SdrsClient) DeleteProtectedInstanceTag(request *model.DeleteProtectedInstanceTagRequest) (*model.DeleteProtectedInstanceTagResponse, error)
- func (c *SdrsClient) DeleteProtectionGroup(request *model.DeleteProtectionGroupRequest) (*model.DeleteProtectionGroupResponse, error)
- func (c *SdrsClient) DeleteReplication(request *model.DeleteReplicationRequest) (*model.DeleteReplicationResponse, error)
- func (c *SdrsClient) DeleteServerGroupFailureJobs(request *model.DeleteServerGroupFailureJobsRequest) (*model.DeleteServerGroupFailureJobsResponse, error)
- func (c *SdrsClient) DetachProtectedInstanceReplication(request *model.DetachProtectedInstanceReplicationRequest) (*model.DetachProtectedInstanceReplicationResponse, error)
- func (c *SdrsClient) ExpandReplication(request *model.ExpandReplicationRequest) (*model.ExpandReplicationResponse, error)
- func (c *SdrsClient) ListActiveActiveDomains(request *model.ListActiveActiveDomainsRequest) (*model.ListActiveActiveDomainsResponse, error)
- func (c *SdrsClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error)
- func (c *SdrsClient) ListDisasterRecoveryDrills(request *model.ListDisasterRecoveryDrillsRequest) (*model.ListDisasterRecoveryDrillsResponse, error)
- func (c *SdrsClient) ListFailureJobs(request *model.ListFailureJobsRequest) (*model.ListFailureJobsResponse, error)
- func (c *SdrsClient) ListProtectedInstanceTags(request *model.ListProtectedInstanceTagsRequest) (*model.ListProtectedInstanceTagsResponse, error)
- func (c *SdrsClient) ListProtectedInstances(request *model.ListProtectedInstancesRequest) (*model.ListProtectedInstancesResponse, error)
- func (c *SdrsClient) ListProtectedInstancesByTags(request *model.ListProtectedInstancesByTagsRequest) (*model.ListProtectedInstancesByTagsResponse, error)
- func (c *SdrsClient) ListProtectedInstancesProjectTags(request *model.ListProtectedInstancesProjectTagsRequest) (*model.ListProtectedInstancesProjectTagsResponse, error)
- func (c *SdrsClient) ListProtectionGroups(request *model.ListProtectionGroupsRequest) (*model.ListProtectionGroupsResponse, error)
- func (c *SdrsClient) ListReplications(request *model.ListReplicationsRequest) (*model.ListReplicationsResponse, error)
- func (c *SdrsClient) ListRpoStatistics(request *model.ListRpoStatisticsRequest) (*model.ListRpoStatisticsResponse, error)
- func (c *SdrsClient) ResizeProtectedInstance(request *model.ResizeProtectedInstanceRequest) (*model.ResizeProtectedInstanceResponse, error)
- func (c *SdrsClient) ShowDisasterRecoveryDrill(request *model.ShowDisasterRecoveryDrillRequest) (*model.ShowDisasterRecoveryDrillResponse, error)
- func (c *SdrsClient) ShowJobStatus(request *model.ShowJobStatusRequest) (*model.ShowJobStatusResponse, error)
- func (c *SdrsClient) ShowProtectedInstance(request *model.ShowProtectedInstanceRequest) (*model.ShowProtectedInstanceResponse, error)
- func (c *SdrsClient) ShowProtectionGroup(request *model.ShowProtectionGroupRequest) (*model.ShowProtectionGroupResponse, error)
- func (c *SdrsClient) ShowQuota(request *model.ShowQuotaRequest) (*model.ShowQuotaResponse, error)
- func (c *SdrsClient) ShowReplication(request *model.ShowReplicationRequest) (*model.ShowReplicationResponse, error)
- func (c *SdrsClient) ShowSpecifiedApiVersion(request *model.ShowSpecifiedApiVersionRequest) (*model.ShowSpecifiedApiVersionResponse, error)
- func (c *SdrsClient) StartFailoverProtectionGroup(request *model.StartFailoverProtectionGroupRequest) (*model.StartFailoverProtectionGroupResponse, error)
- func (c *SdrsClient) StartProtectionGroup(request *model.StartProtectionGroupRequest) (*model.StartProtectionGroupResponse, error)
- func (c *SdrsClient) StartReverseProtectionGroup(request *model.StartReverseProtectionGroupRequest) (*model.StartReverseProtectionGroupResponse, error)
- func (c *SdrsClient) StopProtectionGroup(request *model.StopProtectionGroupRequest) (*model.StopProtectionGroupResponse, error)
- func (c *SdrsClient) UpdateDisasterRecoveryDrillName(request *model.UpdateDisasterRecoveryDrillNameRequest) (*model.UpdateDisasterRecoveryDrillNameResponse, error)
- func (c *SdrsClient) UpdateProtectedInstanceName(request *model.UpdateProtectedInstanceNameRequest) (*model.UpdateProtectedInstanceNameResponse, error)
- func (c *SdrsClient) UpdateProtectionGroupName(request *model.UpdateProtectionGroupNameRequest) (*model.UpdateProtectionGroupNameResponse, error)
- func (c *SdrsClient) UpdateReplicationName(request *model.UpdateReplicationNameRequest) (*model.UpdateReplicationNameResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForAddProtectedInstanceNic ¶
func GenReqDefForAddProtectedInstanceNic() *def.HttpRequestDef
func GenReqDefForAddProtectedInstanceTags ¶
func GenReqDefForAddProtectedInstanceTags() *def.HttpRequestDef
func GenReqDefForAttachProtectedInstanceReplication ¶
func GenReqDefForAttachProtectedInstanceReplication() *def.HttpRequestDef
func GenReqDefForBatchAddTags ¶
func GenReqDefForBatchAddTags() *def.HttpRequestDef
func GenReqDefForBatchCreateProtectedInstances ¶
func GenReqDefForBatchCreateProtectedInstances() *def.HttpRequestDef
func GenReqDefForBatchDeleteProtectedInstances ¶
func GenReqDefForBatchDeleteProtectedInstances() *def.HttpRequestDef
func GenReqDefForBatchDeleteTags ¶
func GenReqDefForBatchDeleteTags() *def.HttpRequestDef
func GenReqDefForCreateDisasterRecoveryDrill ¶
func GenReqDefForCreateDisasterRecoveryDrill() *def.HttpRequestDef
func GenReqDefForCreateProtectedInstance ¶
func GenReqDefForCreateProtectedInstance() *def.HttpRequestDef
func GenReqDefForCreateProtectionGroup ¶
func GenReqDefForCreateProtectionGroup() *def.HttpRequestDef
func GenReqDefForCreateReplication ¶
func GenReqDefForCreateReplication() *def.HttpRequestDef
func GenReqDefForDeleteAllServerGroupFailureJobs ¶
func GenReqDefForDeleteAllServerGroupFailureJobs() *def.HttpRequestDef
func GenReqDefForDeleteDisasterRecoveryDrill ¶
func GenReqDefForDeleteDisasterRecoveryDrill() *def.HttpRequestDef
func GenReqDefForDeleteFailureJob ¶
func GenReqDefForDeleteFailureJob() *def.HttpRequestDef
func GenReqDefForDeleteProtectedInstance ¶
func GenReqDefForDeleteProtectedInstance() *def.HttpRequestDef
func GenReqDefForDeleteProtectedInstanceNic ¶
func GenReqDefForDeleteProtectedInstanceNic() *def.HttpRequestDef
func GenReqDefForDeleteProtectedInstanceTag ¶
func GenReqDefForDeleteProtectedInstanceTag() *def.HttpRequestDef
func GenReqDefForDeleteProtectionGroup ¶
func GenReqDefForDeleteProtectionGroup() *def.HttpRequestDef
func GenReqDefForDeleteReplication ¶
func GenReqDefForDeleteReplication() *def.HttpRequestDef
func GenReqDefForDeleteServerGroupFailureJobs ¶
func GenReqDefForDeleteServerGroupFailureJobs() *def.HttpRequestDef
func GenReqDefForDetachProtectedInstanceReplication ¶
func GenReqDefForDetachProtectedInstanceReplication() *def.HttpRequestDef
func GenReqDefForExpandReplication ¶
func GenReqDefForExpandReplication() *def.HttpRequestDef
func GenReqDefForListActiveActiveDomains ¶
func GenReqDefForListActiveActiveDomains() *def.HttpRequestDef
func GenReqDefForListApiVersions ¶
func GenReqDefForListApiVersions() *def.HttpRequestDef
func GenReqDefForListDisasterRecoveryDrills ¶
func GenReqDefForListDisasterRecoveryDrills() *def.HttpRequestDef
func GenReqDefForListFailureJobs ¶
func GenReqDefForListFailureJobs() *def.HttpRequestDef
func GenReqDefForListProtectedInstanceTags ¶
func GenReqDefForListProtectedInstanceTags() *def.HttpRequestDef
func GenReqDefForListProtectedInstances ¶
func GenReqDefForListProtectedInstances() *def.HttpRequestDef
func GenReqDefForListProtectedInstancesByTags ¶
func GenReqDefForListProtectedInstancesByTags() *def.HttpRequestDef
func GenReqDefForListProtectedInstancesProjectTags ¶
func GenReqDefForListProtectedInstancesProjectTags() *def.HttpRequestDef
func GenReqDefForListProtectionGroups ¶
func GenReqDefForListProtectionGroups() *def.HttpRequestDef
func GenReqDefForListReplications ¶
func GenReqDefForListReplications() *def.HttpRequestDef
func GenReqDefForListRpoStatistics ¶
func GenReqDefForListRpoStatistics() *def.HttpRequestDef
func GenReqDefForResizeProtectedInstance ¶
func GenReqDefForResizeProtectedInstance() *def.HttpRequestDef
func GenReqDefForShowDisasterRecoveryDrill ¶
func GenReqDefForShowDisasterRecoveryDrill() *def.HttpRequestDef
func GenReqDefForShowJobStatus ¶
func GenReqDefForShowJobStatus() *def.HttpRequestDef
func GenReqDefForShowProtectedInstance ¶
func GenReqDefForShowProtectedInstance() *def.HttpRequestDef
func GenReqDefForShowProtectionGroup ¶
func GenReqDefForShowProtectionGroup() *def.HttpRequestDef
func GenReqDefForShowQuota ¶
func GenReqDefForShowQuota() *def.HttpRequestDef
func GenReqDefForShowReplication ¶
func GenReqDefForShowReplication() *def.HttpRequestDef
func GenReqDefForShowSpecifiedApiVersion ¶
func GenReqDefForShowSpecifiedApiVersion() *def.HttpRequestDef
func GenReqDefForStartFailoverProtectionGroup ¶
func GenReqDefForStartFailoverProtectionGroup() *def.HttpRequestDef
func GenReqDefForStartProtectionGroup ¶
func GenReqDefForStartProtectionGroup() *def.HttpRequestDef
func GenReqDefForStartReverseProtectionGroup ¶
func GenReqDefForStartReverseProtectionGroup() *def.HttpRequestDef
func GenReqDefForStopProtectionGroup ¶
func GenReqDefForStopProtectionGroup() *def.HttpRequestDef
func GenReqDefForUpdateDisasterRecoveryDrillName ¶
func GenReqDefForUpdateDisasterRecoveryDrillName() *def.HttpRequestDef
func GenReqDefForUpdateProtectedInstanceName ¶
func GenReqDefForUpdateProtectedInstanceName() *def.HttpRequestDef
func GenReqDefForUpdateProtectionGroupName ¶
func GenReqDefForUpdateProtectionGroupName() *def.HttpRequestDef
func GenReqDefForUpdateReplicationName ¶
func GenReqDefForUpdateReplicationName() *def.HttpRequestDef
func SdrsClientBuilder ¶
func SdrsClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type SdrsClient ¶
type SdrsClient struct {
HcClient *http_client.HcHttpClient
}
func NewSdrsClient ¶
func NewSdrsClient(hcClient *http_client.HcHttpClient) *SdrsClient
func (*SdrsClient) AddProtectedInstanceNic ¶
func (c *SdrsClient) AddProtectedInstanceNic(request *model.AddProtectedInstanceNicRequest) (*model.AddProtectedInstanceNicResponse, error)
保护实例添加网卡
给指定的保护实例添加网卡。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) AddProtectedInstanceTags ¶
func (c *SdrsClient) AddProtectedInstanceTags(request *model.AddProtectedInstanceTagsRequest) (*model.AddProtectedInstanceTagsResponse, error)
添加保护实例标签
一个保护实例上最多有10个标签。此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) AttachProtectedInstanceReplication ¶
func (c *SdrsClient) AttachProtectedInstanceReplication(request *model.AttachProtectedInstanceReplicationRequest) (*model.AttachProtectedInstanceReplicationResponse, error)
保护实例挂载复制对
将指定的复制对挂载到指定的保护实例上。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) BatchAddTags ¶
func (c *SdrsClient) BatchAddTags(request *model.BatchAddTagsRequest) (*model.BatchAddTagsResponse, error)
批量添加保护实例标签
为指定保护实例批量添加或删除标签。一个资源上最多有10个标签。 此接口为幂等接口: 创建时如果请求体中存在重复key则报错。 创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) BatchCreateProtectedInstances ¶
func (c *SdrsClient) BatchCreateProtectedInstances(request *model.BatchCreateProtectedInstancesRequest) (*model.BatchCreateProtectedInstancesResponse, error)
批量创建保护实例
典型场景:没有特殊操作场景 接口功能:批量创建保护实例。保护实例创建完成后,系统默认容灾站点云服务器名称与生产站点云服务器名称相同,但ID不同。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) BatchDeleteProtectedInstances ¶
func (c *SdrsClient) BatchDeleteProtectedInstances(request *model.BatchDeleteProtectedInstancesRequest) (*model.BatchDeleteProtectedInstancesResponse, error)
批量删除保护实例
典型场景:没有特殊操作场景 接口功能:批量删除保护实例。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) BatchDeleteTags ¶
func (c *SdrsClient) BatchDeleteTags(request *model.BatchDeleteTagsRequest) (*model.BatchDeleteTagsResponse, error)
批量删除保护实例标签
为指定保护实例批量删除标签。一个资源上最多有10个标签。 此接口为幂等接口: 删除时,如果删除的标签不存在,默认处理成功,删除时不对标签字符集范围做校验。删除时tags结构体不能缺失,key不能为空,或者空字符串。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) CreateDisasterRecoveryDrill ¶
func (c *SdrsClient) CreateDisasterRecoveryDrill(request *model.CreateDisasterRecoveryDrillRequest) (*model.CreateDisasterRecoveryDrillResponse, error)
创建容灾演练
创建容灾演练。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) CreateProtectedInstance ¶
func (c *SdrsClient) CreateProtectedInstance(request *model.CreateProtectedInstanceRequest) (*model.CreateProtectedInstanceResponse, error)
创建保护实例
创建保护实例。保护实例创建完成后,系统默认容灾站点云服务器名称与生产站点云服务器名称相同,但ID不同。如果需要修改云服务器名称,请在保护实例详情页面单击云服务器名称,进入云服务器详情页面进行修改
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) CreateProtectionGroup ¶
func (c *SdrsClient) CreateProtectionGroup(request *model.CreateProtectionGroupRequest) (*model.CreateProtectionGroupResponse, error)
创建保护组
创建保护组。 说明: 本接口为异步接口,调用成功只是表示请求下发,创建结果需要通过“查询job状态”接口获取
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) CreateReplication ¶
func (c *SdrsClient) CreateReplication(request *model.CreateReplicationRequest) (*model.CreateReplicationResponse, error)
创建复制对
创建复制对,并将其添加到指定的保护组中。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) DeleteAllServerGroupFailureJobs ¶
func (c *SdrsClient) DeleteAllServerGroupFailureJobs(request *model.DeleteAllServerGroupFailureJobsRequest) (*model.DeleteAllServerGroupFailureJobsResponse, error)
删除所有保护组失败任务
删除所有保护组层级的失败任务,创建、删除保护组失败等。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) DeleteDisasterRecoveryDrill ¶
func (c *SdrsClient) DeleteDisasterRecoveryDrill(request *model.DeleteDisasterRecoveryDrillRequest) (*model.DeleteDisasterRecoveryDrillResponse, error)
删除容灾演练
删除指定的容灾演练。删除后: 容灾演练服务器、容灾演练服务器上挂载的磁盘和网卡将被一并删除。 演练VPC、演练VPC的子网不会被删除。您可以继续使用该VPC创建其他云服务器。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) DeleteFailureJob ¶
func (c *SdrsClient) DeleteFailureJob(request *model.DeleteFailureJobRequest) (*model.DeleteFailureJobResponse, error)
删除单个失败任务
删除单个失败任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) DeleteProtectedInstance ¶
func (c *SdrsClient) DeleteProtectedInstance(request *model.DeleteProtectedInstanceRequest) (*model.DeleteProtectedInstanceResponse, error)
删除保护实例
删除指定的保护实例。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) DeleteProtectedInstanceNic ¶
func (c *SdrsClient) DeleteProtectedInstanceNic(request *model.DeleteProtectedInstanceNicRequest) (*model.DeleteProtectedInstanceNicResponse, error)
保护实例删除网卡
删除指定保护实例的指定网卡。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) DeleteProtectedInstanceTag ¶
func (c *SdrsClient) DeleteProtectedInstanceTag(request *model.DeleteProtectedInstanceTagRequest) (*model.DeleteProtectedInstanceTagResponse, error)
删除保护实例标签
幂等接口:删除时,不对标签字符集做校验,调用接口前必须要做encodeURI,服务端需要对接口URI做decodeURI。
说明:请自行选择工具执行URI编码。
删除的key不存在报404,Key不能为空或者空字符串。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) DeleteProtectionGroup ¶
func (c *SdrsClient) DeleteProtectionGroup(request *model.DeleteProtectionGroupRequest) (*model.DeleteProtectionGroupResponse, error)
删除保护组
删除指定的保护组。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) DeleteReplication ¶
func (c *SdrsClient) DeleteReplication(request *model.DeleteReplicationRequest) (*model.DeleteReplicationResponse, error)
删除复制对
删除指定的复制对。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) DeleteServerGroupFailureJobs ¶
func (c *SdrsClient) DeleteServerGroupFailureJobs(request *model.DeleteServerGroupFailureJobsRequest) (*model.DeleteServerGroupFailureJobsResponse, error)
删除指定保护组内的所有失败任务
删除指定保护组内的所有失败任务,创建保护实例失败、创建复制对失败、删除保护实例失败、删除复制对失败等。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) DetachProtectedInstanceReplication ¶
func (c *SdrsClient) DetachProtectedInstanceReplication(request *model.DetachProtectedInstanceReplicationRequest) (*model.DetachProtectedInstanceReplicationResponse, error)
保护实例卸载复制对
将指定的复制对从指定的保护实例上卸载。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ExpandReplication ¶
func (c *SdrsClient) ExpandReplication(request *model.ExpandReplicationRequest) (*model.ExpandReplicationResponse, error)
复制对扩容
对复制对包含的两个磁盘进行扩容操作。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ListActiveActiveDomains ¶
func (c *SdrsClient) ListActiveActiveDomains(request *model.ListActiveActiveDomainsRequest) (*model.ListActiveActiveDomainsResponse, error)
查询双活域
查询双活域。双活域由本端存储设备、远端存储设备组成,通过双活域,应用服务器可以实现跨站点的数据访问。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ListApiVersions ¶
func (c *SdrsClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error)
查询API版本信息
查询存储容灾当前所有可用的版本信息列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ListDisasterRecoveryDrills ¶
func (c *SdrsClient) ListDisasterRecoveryDrills(request *model.ListDisasterRecoveryDrillsRequest) (*model.ListDisasterRecoveryDrillsResponse, error)
查询容灾演练列表
查询指定保护组下的所有容灾演练列表,当未指定保护组时查询当前租户下的所有容灾演练列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ListFailureJobs ¶
func (c *SdrsClient) ListFailureJobs(request *model.ListFailureJobsRequest) (*model.ListFailureJobsResponse, error)
查询失败任务列表
查询所有保护组失败任务列表或者指定保护组下的所有失败任务列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ListProtectedInstanceTags ¶
func (c *SdrsClient) ListProtectedInstanceTags(request *model.ListProtectedInstanceTagsRequest) (*model.ListProtectedInstanceTagsResponse, error)
查询保护实例标签
查询指定保护实例的标签信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ListProtectedInstances ¶
func (c *SdrsClient) ListProtectedInstances(request *model.ListProtectedInstancesRequest) (*model.ListProtectedInstancesResponse, error)
查询保护实例列表
查询当前租户下的所有保护实例列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ListProtectedInstancesByTags ¶
func (c *SdrsClient) ListProtectedInstancesByTags(request *model.ListProtectedInstancesByTagsRequest) (*model.ListProtectedInstancesByTagsResponse, error)
通过标签查询保护实例
使用标签过滤保护实例
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ListProtectedInstancesProjectTags ¶
func (c *SdrsClient) ListProtectedInstancesProjectTags(request *model.ListProtectedInstancesProjectTagsRequest) (*model.ListProtectedInstancesProjectTagsResponse, error)
查询保护实例项目标签
查询租户在指定Project中保护实例的所有资源标签集合。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ListProtectionGroups ¶
func (c *SdrsClient) ListProtectionGroups(request *model.ListProtectionGroupsRequest) (*model.ListProtectionGroupsResponse, error)
查询保护组列表
查询当前租户所有的保护组列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ListReplications ¶
func (c *SdrsClient) ListReplications(request *model.ListReplicationsRequest) (*model.ListReplicationsResponse, error)
查询复制对列表
查询指定保护组下的所有复制对列表,如果不给定指定保护组则查询当前租户下的所有复制对列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ListRpoStatistics ¶
func (c *SdrsClient) ListRpoStatistics(request *model.ListRpoStatisticsRequest) (*model.ListRpoStatisticsResponse, error)
查询资源的RPO超标趋势记录列表
查询当前租户大屏显示中,资源的RPO超标趋势记录列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ResizeProtectedInstance ¶
func (c *SdrsClient) ResizeProtectedInstance(request *model.ResizeProtectedInstanceRequest) (*model.ResizeProtectedInstanceResponse, error)
保护实例变更规格
变更指定保护实例中弹性云服务器的规格,包括:同时变更生产站点云服务器和容灾站点云服务器的规格。 仅变更生产站点云服务器的规格,容灾站点云服务器规格不变。 生产站点云服务器规格不变,仅变更容灾站点云服务器的规格。 当且仅当待变更规格的云服务器处于关机状态时,才能执行此操作。
说明:不同规格的云服务器在性能上存在差异,可能会对云服务器上运行的应用产生影响。
为保证切换/故障切换后云服务器的性能,建议容灾站点服务器的规格(CPU、内存)不低于生产站点云服务器的规格(CPU、内存)。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ShowDisasterRecoveryDrill ¶
func (c *SdrsClient) ShowDisasterRecoveryDrill(request *model.ShowDisasterRecoveryDrillRequest) (*model.ShowDisasterRecoveryDrillResponse, error)
查询单个容灾演练详情
查询单个容灾演练的详细信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ShowJobStatus ¶
func (c *SdrsClient) ShowJobStatus(request *model.ShowJobStatusRequest) (*model.ShowJobStatusResponse, error)
查询job状态
查询job的执行状态。 对于创建保护组、删除保护组、创建保护实例、删除保护实例、创建复制对、删除复制对等异步API,命令下发后,会返回job_id,通过job_id可以查询任务的执行状态。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ShowProtectedInstance ¶
func (c *SdrsClient) ShowProtectedInstance(request *model.ShowProtectedInstanceRequest) (*model.ShowProtectedInstanceResponse, error)
查询单个保护实例详情
查询单个保护实例的详细信息,如名称、ID等。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ShowProtectionGroup ¶
func (c *SdrsClient) ShowProtectionGroup(request *model.ShowProtectionGroupRequest) (*model.ShowProtectionGroupResponse, error)
查询保护组详情
查询单个保护组的详细信息,如ID、名称等。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ShowQuota ¶
func (c *SdrsClient) ShowQuota(request *model.ShowQuotaRequest) (*model.ShowQuotaResponse, error)
查询租户配额
查询资源的配额相关信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ShowReplication ¶
func (c *SdrsClient) ShowReplication(request *model.ShowReplicationRequest) (*model.ShowReplicationResponse, error)
查询单个复制对详情
查询单个复制对的详细信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) ShowSpecifiedApiVersion ¶
func (c *SdrsClient) ShowSpecifiedApiVersion(request *model.ShowSpecifiedApiVersionRequest) (*model.ShowSpecifiedApiVersionResponse, error)
查询指定API版本信息
查询存储容灾指定API版本信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) StartFailoverProtectionGroup ¶
func (c *SdrsClient) StartFailoverProtectionGroup(request *model.StartFailoverProtectionGroupRequest) (*model.StartFailoverProtectionGroupResponse, error)
保护组故障切换
当保护组的生产站点发生故障时,将保护组的生产站点切到当前的容灾站点,即另一端AZ,启用当前容灾站点的云硬盘以及云服务器等资源。 故障切换完成之后,保护组的当前生产站点变成故障切换发生之前的容灾站点,且生产站点和容灾站点之间的数据已停止保护,必须调用5.4.6-保护组开启保护/重保护接口成功后,两端的数据才会重新被保护。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) StartProtectionGroup ¶
func (c *SdrsClient) StartProtectionGroup(request *model.StartProtectionGroupRequest) (*model.StartProtectionGroupResponse, error)
保护组开启保护/重保护
对某一个保护组的“开启保护”或“重保护”操作。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) StartReverseProtectionGroup ¶
func (c *SdrsClient) StartReverseProtectionGroup(request *model.StartReverseProtectionGroupRequest) (*model.StartReverseProtectionGroupResponse, error)
保护组切换
对保护组进行切换操作,可以将保护组的当前生产站点,从创建保护组时指定的生产站点切换到创建保护组时指定的容灾站点,也可以从创建保护组时指定的容灾站点切换到创建保护组时指定的生产站点。切换后,生产站点和容灾站点的数据仍然处于被保护状态,只是复制方向与操作之前相反。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) StopProtectionGroup ¶
func (c *SdrsClient) StopProtectionGroup(request *model.StopProtectionGroupRequest) (*model.StopProtectionGroupResponse, error)
保护组停止保护
对某一个保护组的停止保护操作。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) UpdateDisasterRecoveryDrillName ¶
func (c *SdrsClient) UpdateDisasterRecoveryDrillName(request *model.UpdateDisasterRecoveryDrillNameRequest) (*model.UpdateDisasterRecoveryDrillNameResponse, error)
更新容灾演练名称
更新容灾演练的名称。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) UpdateProtectedInstanceName ¶
func (c *SdrsClient) UpdateProtectedInstanceName(request *model.UpdateProtectedInstanceNameRequest) (*model.UpdateProtectedInstanceNameResponse, error)
更新保护实例名称
更新某一个保护实例的名称。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) UpdateProtectionGroupName ¶
func (c *SdrsClient) UpdateProtectionGroupName(request *model.UpdateProtectionGroupNameRequest) (*model.UpdateProtectionGroupNameResponse, error)
更新保护组名称
更新某一个保护组的名称。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*SdrsClient) UpdateReplicationName ¶
func (c *SdrsClient) UpdateReplicationName(request *model.UpdateReplicationNameRequest) (*model.UpdateReplicationNameResponse, error)
更新复制对名称
更新复制对名称。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.