kb-cloud-client-typescript 2.3.0-alpha.215 → 2.3.0-alpha.216
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/apis/disaster-recovery-api.d.ts +271 -0
- package/dist/adminapi/apis/disaster-recovery-api.d.ts.map +1 -1
- package/dist/adminapi/apis/disaster-recovery-api.js +307 -0
- package/dist/adminapi/apis/disaster-recovery-api.js.map +1 -1
- package/dist/adminapi/models/disaster-recovery-event-type.d.ts +23 -0
- package/dist/adminapi/models/disaster-recovery-event-type.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-event-type.js +27 -0
- package/dist/adminapi/models/disaster-recovery-event-type.js.map +1 -0
- package/dist/adminapi/models/disaster-recovery-history-item.d.ts +105 -0
- package/dist/adminapi/models/disaster-recovery-history-item.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-history-item.js +16 -0
- package/dist/adminapi/models/disaster-recovery-history-item.js.map +1 -0
- package/dist/adminapi/models/disaster-recovery-history.d.ts +26 -0
- package/dist/adminapi/models/disaster-recovery-history.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-history.js +16 -0
- package/dist/adminapi/models/disaster-recovery-history.js.map +1 -0
- package/dist/adminapi/models/disaster-recovery-promote.d.ts +31 -0
- package/dist/adminapi/models/disaster-recovery-promote.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-promote.js +16 -0
- package/dist/adminapi/models/disaster-recovery-promote.js.map +1 -0
- package/dist/adminapi/models/disaster-recovery-status-response.d.ts +79 -0
- package/dist/adminapi/models/disaster-recovery-status-response.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-status-response.js +16 -0
- package/dist/adminapi/models/disaster-recovery-status-response.js.map +1 -0
- package/dist/adminapi/models/disaster-recovery-status.d.ts +25 -0
- package/dist/adminapi/models/disaster-recovery-status.d.ts.map +1 -0
- package/dist/adminapi/models/disaster-recovery-status.js +29 -0
- package/dist/adminapi/models/disaster-recovery-status.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +6 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +6 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +6 -0
- package/src/adminapi/apis/disaster-recovery-api.ts +482 -0
- package/src/adminapi/models/disaster-recovery-event-type.ts +32 -0
- package/src/adminapi/models/disaster-recovery-history-item.ts +116 -0
- package/src/adminapi/models/disaster-recovery-history.ts +33 -0
- package/src/adminapi/models/disaster-recovery-promote.ts +36 -0
- package/src/adminapi/models/disaster-recovery-status-response.ts +84 -0
- package/src/adminapi/models/disaster-recovery-status.ts +34 -0
- package/src/adminapi/models/index.ts +6 -0
- package/src/adminapi.yaml +308 -9
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { DisasterRecoveryEventType } from './disaster-recovery-event-type';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { DisasterRecoveryStatus } from './disaster-recovery-status';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* DisasterRecovery history detail for Cluster
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DisasterRecoveryHistoryItem
|
|
27
|
+
*/
|
|
28
|
+
export interface DisasterRecoveryHistoryItem {
|
|
29
|
+
/**
|
|
30
|
+
* the ID of disaster recovery task in TaskFlow
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
33
|
+
*/
|
|
34
|
+
'taskID'?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* the ID of parent cluster
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
39
|
+
*/
|
|
40
|
+
'parentClusterID'?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* the Name of parent cluster
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
45
|
+
*/
|
|
46
|
+
'parentClusterName'?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* parent env name
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
51
|
+
*/
|
|
52
|
+
'parentEnvName'?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* the ID of promote cluster
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
57
|
+
*/
|
|
58
|
+
'clusterID'?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* the Name of promote cluster
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
63
|
+
*/
|
|
64
|
+
'clusterName'?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* env name
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
69
|
+
*/
|
|
70
|
+
'envName'?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {DisasterRecoveryEventType}
|
|
74
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
75
|
+
*/
|
|
76
|
+
'eventType'?: DisasterRecoveryEventType | null;
|
|
77
|
+
/**
|
|
78
|
+
* the reason of promote
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
81
|
+
*/
|
|
82
|
+
'reason'?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* the operator name
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
87
|
+
*/
|
|
88
|
+
'operator'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* the user ID of the operator
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
93
|
+
*/
|
|
94
|
+
'operatorId'?: string;
|
|
95
|
+
/**
|
|
96
|
+
* the create time of promote event
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
99
|
+
*/
|
|
100
|
+
'createdAt'?: string;
|
|
101
|
+
/**
|
|
102
|
+
* the update time of promote event
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
105
|
+
*/
|
|
106
|
+
'updateAt'?: string;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {DisasterRecoveryStatus}
|
|
110
|
+
* @memberof DisasterRecoveryHistoryItem
|
|
111
|
+
*/
|
|
112
|
+
'status'?: DisasterRecoveryStatus | null;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { DisasterRecoveryHistoryItem } from './disaster-recovery-history-item';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* DisasterRecovery history for Cluster
|
|
22
|
+
* @export
|
|
23
|
+
* @interface DisasterRecoveryHistory
|
|
24
|
+
*/
|
|
25
|
+
export interface DisasterRecoveryHistory {
|
|
26
|
+
/**
|
|
27
|
+
* Items is the list of DisasterRecovery logs
|
|
28
|
+
* @type {Array<DisasterRecoveryHistoryItem>}
|
|
29
|
+
* @memberof DisasterRecoveryHistory
|
|
30
|
+
*/
|
|
31
|
+
'items': Array<DisasterRecoveryHistoryItem>;
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* the Promote object for disasterRecovery instance
|
|
19
|
+
* @export
|
|
20
|
+
* @interface DisasterRecoveryPromote
|
|
21
|
+
*/
|
|
22
|
+
export interface DisasterRecoveryPromote {
|
|
23
|
+
/**
|
|
24
|
+
* the mode of cluster after promotion. default is the primary cluster\'s mode
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof DisasterRecoveryPromote
|
|
27
|
+
*/
|
|
28
|
+
'mode'?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* the reason for promoting
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof DisasterRecoveryPromote
|
|
33
|
+
*/
|
|
34
|
+
'reason'?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Status of the Disaster Recovery instance
|
|
19
|
+
* @export
|
|
20
|
+
* @interface DisasterRecoveryStatusResponse
|
|
21
|
+
*/
|
|
22
|
+
export interface DisasterRecoveryStatusResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier for the cluster
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof DisasterRecoveryStatusResponse
|
|
27
|
+
*/
|
|
28
|
+
'clusterId': string;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the cluster
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof DisasterRecoveryStatusResponse
|
|
33
|
+
*/
|
|
34
|
+
'clusterName'?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* User-friendly name of the cluster
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof DisasterRecoveryStatusResponse
|
|
39
|
+
*/
|
|
40
|
+
'displayName'?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Current operational status of the cluster
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof DisasterRecoveryStatusResponse
|
|
45
|
+
*/
|
|
46
|
+
'status'?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* ID of the parent cluster, if applicable; can be empty if there is no parent relationship
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof DisasterRecoveryStatusResponse
|
|
51
|
+
*/
|
|
52
|
+
'parentId': string;
|
|
53
|
+
/**
|
|
54
|
+
* Name of the parent cluster
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof DisasterRecoveryStatusResponse
|
|
57
|
+
*/
|
|
58
|
+
'parentName'?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* User-friendly name of the parent cluster
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof DisasterRecoveryStatusResponse
|
|
63
|
+
*/
|
|
64
|
+
'parentDisplayName'?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Current operational status of the parent cluster
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof DisasterRecoveryStatusResponse
|
|
69
|
+
*/
|
|
70
|
+
'parentStatus'?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Delay time in seconds
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof DisasterRecoveryStatusResponse
|
|
75
|
+
*/
|
|
76
|
+
'delay'?: number | null;
|
|
77
|
+
/**
|
|
78
|
+
* Current replication point for the disaster recovery instance
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof DisasterRecoveryStatusResponse
|
|
81
|
+
*/
|
|
82
|
+
'currentReplicationPoint'?: string | null;
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* the status of promote event, support values: [Pending, Succeed, Failed, Running, Unknown]
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const DisasterRecoveryStatus = {
|
|
24
|
+
Pending: 'Pending',
|
|
25
|
+
Succeed: 'Succeed',
|
|
26
|
+
Failed: 'Failed',
|
|
27
|
+
Running: 'Running',
|
|
28
|
+
Unknown: 'Unknown'
|
|
29
|
+
} as const;
|
|
30
|
+
|
|
31
|
+
export type DisasterRecoveryStatus = typeof DisasterRecoveryStatus[keyof typeof DisasterRecoveryStatus];
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
@@ -269,8 +269,14 @@ export * from './delete-storage-class204-response';
|
|
|
269
269
|
export * from './disaster-recovery-cluster-item';
|
|
270
270
|
export * from './disaster-recovery-cluster-list';
|
|
271
271
|
export * from './disaster-recovery-create';
|
|
272
|
+
export * from './disaster-recovery-event-type';
|
|
273
|
+
export * from './disaster-recovery-history';
|
|
274
|
+
export * from './disaster-recovery-history-item';
|
|
272
275
|
export * from './disaster-recovery-option';
|
|
276
|
+
export * from './disaster-recovery-promote';
|
|
273
277
|
export * from './disaster-recovery-settings';
|
|
278
|
+
export * from './disaster-recovery-status';
|
|
279
|
+
export * from './disaster-recovery-status-response';
|
|
274
280
|
export * from './disaster-recovery-task';
|
|
275
281
|
export * from './dm-file';
|
|
276
282
|
export * from './dm-tablespace';
|
package/src/adminapi.yaml
CHANGED
|
@@ -73,6 +73,8 @@ tags:
|
|
|
73
73
|
description: Chat With AI Agent APIs
|
|
74
74
|
- name: diagnostics
|
|
75
75
|
description: Diagnostics APIs
|
|
76
|
+
- name: disasterRecovery
|
|
77
|
+
description: Cluster Disaster Recovery APIs
|
|
76
78
|
paths:
|
|
77
79
|
/admin/v1/user:
|
|
78
80
|
get:
|
|
@@ -3778,6 +3780,43 @@ paths:
|
|
|
3778
3780
|
- cluster
|
|
3779
3781
|
- shared
|
|
3780
3782
|
x-codegen-request-body-name: body
|
|
3783
|
+
/admin/v1/organizations/{orgName}/disasterRecovery:
|
|
3784
|
+
delete:
|
|
3785
|
+
operationId: deleteDisasterRecovery
|
|
3786
|
+
summary: Delete a disaster recovery instance
|
|
3787
|
+
description: Delete a specific disaster recovery instance
|
|
3788
|
+
parameters:
|
|
3789
|
+
- description: name of the org
|
|
3790
|
+
in: path
|
|
3791
|
+
name: orgName
|
|
3792
|
+
required: true
|
|
3793
|
+
schema:
|
|
3794
|
+
type: string
|
|
3795
|
+
- description: The ID of the disaster recovery logical instance
|
|
3796
|
+
in: query
|
|
3797
|
+
name: logicalInstanceID
|
|
3798
|
+
schema:
|
|
3799
|
+
type: string
|
|
3800
|
+
- description: The ID of the disaster recovery cluster
|
|
3801
|
+
in: query
|
|
3802
|
+
name: clusterID
|
|
3803
|
+
schema:
|
|
3804
|
+
type: string
|
|
3805
|
+
responses:
|
|
3806
|
+
'200':
|
|
3807
|
+
content:
|
|
3808
|
+
application/json:
|
|
3809
|
+
schema:
|
|
3810
|
+
$ref: '#/components/schemas/disasterRecoveryTask'
|
|
3811
|
+
description: Disaster recovery instance async job task information.
|
|
3812
|
+
'401':
|
|
3813
|
+
$ref: '#/components/responses/401'
|
|
3814
|
+
'403':
|
|
3815
|
+
$ref: '#/components/responses/403'
|
|
3816
|
+
'404':
|
|
3817
|
+
$ref: '#/components/responses/404'
|
|
3818
|
+
tags:
|
|
3819
|
+
- disasterRecovery
|
|
3781
3820
|
/admin/v1/organizations/{orgName}/parent/{parentClusterID}/disasterRecovery:
|
|
3782
3821
|
get:
|
|
3783
3822
|
operationId: listDisasterRecovery
|
|
@@ -3850,6 +3889,112 @@ paths:
|
|
|
3850
3889
|
tags:
|
|
3851
3890
|
- disasterRecovery
|
|
3852
3891
|
x-codegen-request-body-name: body
|
|
3892
|
+
/admin/v1/organizations/{orgName}/disasterRecovery/{clusterID}/promote:
|
|
3893
|
+
post:
|
|
3894
|
+
operationId: promoteDisasterRecovery
|
|
3895
|
+
summary: Promote a disaster recovery instance to the main instance
|
|
3896
|
+
description: Promote the disaster recovery instance to the primary database instance.
|
|
3897
|
+
parameters:
|
|
3898
|
+
- description: The ID of the disaster recovery instance
|
|
3899
|
+
in: path
|
|
3900
|
+
name: clusterID
|
|
3901
|
+
required: true
|
|
3902
|
+
schema:
|
|
3903
|
+
type: string
|
|
3904
|
+
- description: name of the org
|
|
3905
|
+
in: path
|
|
3906
|
+
name: orgName
|
|
3907
|
+
required: true
|
|
3908
|
+
schema:
|
|
3909
|
+
type: string
|
|
3910
|
+
requestBody:
|
|
3911
|
+
content:
|
|
3912
|
+
application/json:
|
|
3913
|
+
schema:
|
|
3914
|
+
$ref: '#/components/schemas/disasterRecoveryPromote'
|
|
3915
|
+
required: true
|
|
3916
|
+
responses:
|
|
3917
|
+
'200':
|
|
3918
|
+
content:
|
|
3919
|
+
application/json:
|
|
3920
|
+
schema:
|
|
3921
|
+
$ref: '#/components/schemas/disasterRecoveryTask'
|
|
3922
|
+
description: Disaster recovery instance async job task information.
|
|
3923
|
+
'401':
|
|
3924
|
+
$ref: '#/components/responses/401'
|
|
3925
|
+
'403':
|
|
3926
|
+
$ref: '#/components/responses/403'
|
|
3927
|
+
'404':
|
|
3928
|
+
$ref: '#/components/responses/404'
|
|
3929
|
+
tags:
|
|
3930
|
+
- disasterRecovery
|
|
3931
|
+
x-codegen-request-body-name: body
|
|
3932
|
+
/admin/v1/organizations/{orgName}/disasterRecovery/{clusterID}/switchHistory:
|
|
3933
|
+
get:
|
|
3934
|
+
operationId: getDisasterRecoveryHistory
|
|
3935
|
+
summary: Get switch history of a disaster recovery instance
|
|
3936
|
+
description: Retrieve the history of failover and failback operations for a specific disaster recovery instance.
|
|
3937
|
+
parameters:
|
|
3938
|
+
- description: The ID of the disaster recovery instance
|
|
3939
|
+
in: path
|
|
3940
|
+
name: clusterID
|
|
3941
|
+
required: true
|
|
3942
|
+
schema:
|
|
3943
|
+
type: string
|
|
3944
|
+
- description: name of the org
|
|
3945
|
+
in: path
|
|
3946
|
+
name: orgName
|
|
3947
|
+
required: true
|
|
3948
|
+
schema:
|
|
3949
|
+
type: string
|
|
3950
|
+
responses:
|
|
3951
|
+
'200':
|
|
3952
|
+
content:
|
|
3953
|
+
application/json:
|
|
3954
|
+
schema:
|
|
3955
|
+
$ref: '#/components/schemas/disasterRecoveryHistory'
|
|
3956
|
+
description: Switch history retrieved successfully
|
|
3957
|
+
'401':
|
|
3958
|
+
$ref: '#/components/responses/401'
|
|
3959
|
+
'403':
|
|
3960
|
+
$ref: '#/components/responses/403'
|
|
3961
|
+
'404':
|
|
3962
|
+
$ref: '#/components/responses/404'
|
|
3963
|
+
tags:
|
|
3964
|
+
- disasterRecovery
|
|
3965
|
+
/admin/v1/organizations/{orgName}/disasterRecovery/{clusterID}/status:
|
|
3966
|
+
get:
|
|
3967
|
+
operationId: getDisasterRecoveryStatus
|
|
3968
|
+
summary: Retrieve Disaster Recovery Instance Status
|
|
3969
|
+
description: Get detailed information about the status of a specific disaster recovery instance, including delay and current replication point.
|
|
3970
|
+
parameters:
|
|
3971
|
+
- description: Unique identifier of the disaster recovery instance
|
|
3972
|
+
in: path
|
|
3973
|
+
name: clusterID
|
|
3974
|
+
required: true
|
|
3975
|
+
schema:
|
|
3976
|
+
type: string
|
|
3977
|
+
- description: Name of the organization
|
|
3978
|
+
in: path
|
|
3979
|
+
name: orgName
|
|
3980
|
+
required: true
|
|
3981
|
+
schema:
|
|
3982
|
+
type: string
|
|
3983
|
+
responses:
|
|
3984
|
+
'200':
|
|
3985
|
+
content:
|
|
3986
|
+
application/json:
|
|
3987
|
+
schema:
|
|
3988
|
+
$ref: '#/components/schemas/disasterRecoveryStatusResponse'
|
|
3989
|
+
description: Status query successfully
|
|
3990
|
+
'401':
|
|
3991
|
+
$ref: '#/components/responses/401'
|
|
3992
|
+
'403':
|
|
3993
|
+
$ref: '#/components/responses/403'
|
|
3994
|
+
'404':
|
|
3995
|
+
$ref: '#/components/responses/404'
|
|
3996
|
+
tags:
|
|
3997
|
+
- disasterRecovery
|
|
3853
3998
|
/admin/v1/eventfilter/{filterType}:
|
|
3854
3999
|
get:
|
|
3855
4000
|
description: Query available filters for event listing
|
|
@@ -26935,6 +27080,24 @@ components:
|
|
|
26935
27080
|
required:
|
|
26936
27081
|
- taskId
|
|
26937
27082
|
type: object
|
|
27083
|
+
disasterRecoveryTask:
|
|
27084
|
+
description: Task information of disasterRecovery job
|
|
27085
|
+
properties:
|
|
27086
|
+
logicalInstanceID:
|
|
27087
|
+
description: Logical instance ID
|
|
27088
|
+
type: string
|
|
27089
|
+
nullable: true
|
|
27090
|
+
taskId:
|
|
27091
|
+
description: Task ID
|
|
27092
|
+
type: string
|
|
27093
|
+
nullable: true
|
|
27094
|
+
clusterTaskId:
|
|
27095
|
+
description: Cluster task ID
|
|
27096
|
+
type: string
|
|
27097
|
+
nullable: true
|
|
27098
|
+
required:
|
|
27099
|
+
- taskId
|
|
27100
|
+
type: object
|
|
26938
27101
|
taskSummary:
|
|
26939
27102
|
type: object
|
|
26940
27103
|
properties:
|
|
@@ -26982,23 +27145,156 @@ components:
|
|
|
26982
27145
|
required:
|
|
26983
27146
|
- cluster
|
|
26984
27147
|
type: object
|
|
26985
|
-
|
|
26986
|
-
description:
|
|
27148
|
+
disasterRecoveryPromote:
|
|
27149
|
+
description: the Promote object for disasterRecovery instance
|
|
26987
27150
|
properties:
|
|
26988
|
-
|
|
26989
|
-
description:
|
|
27151
|
+
mode:
|
|
27152
|
+
description: the mode of cluster after promotion. default is the primary cluster's mode
|
|
26990
27153
|
type: string
|
|
26991
27154
|
nullable: true
|
|
26992
|
-
|
|
26993
|
-
description:
|
|
27155
|
+
reason:
|
|
27156
|
+
description: the reason for promoting
|
|
27157
|
+
type: string
|
|
27158
|
+
type: object
|
|
27159
|
+
disasterRecoveryEventType:
|
|
27160
|
+
description: 'the event type of disasterRecovery history, support values: [CreateInstance, DeleteInstance, Promote]'
|
|
27161
|
+
enum:
|
|
27162
|
+
- CreateInstance
|
|
27163
|
+
- DeleteInstance
|
|
27164
|
+
- Promote
|
|
27165
|
+
type: string
|
|
27166
|
+
nullable: true
|
|
27167
|
+
disasterRecoveryStatus:
|
|
27168
|
+
default: Pending
|
|
27169
|
+
description: 'the status of promote event, support values: [Pending, Succeed, Failed, Running, Unknown]'
|
|
27170
|
+
enum:
|
|
27171
|
+
- Pending
|
|
27172
|
+
- Succeed
|
|
27173
|
+
- Failed
|
|
27174
|
+
- Running
|
|
27175
|
+
- Unknown
|
|
27176
|
+
type: string
|
|
27177
|
+
nullable: true
|
|
27178
|
+
disasterRecoveryHistoryItem:
|
|
27179
|
+
description: DisasterRecovery history detail for Cluster
|
|
27180
|
+
properties:
|
|
27181
|
+
taskID:
|
|
27182
|
+
description: the ID of disaster recovery task in TaskFlow
|
|
26994
27183
|
type: string
|
|
26995
27184
|
nullable: true
|
|
26996
|
-
|
|
26997
|
-
description:
|
|
27185
|
+
parentClusterID:
|
|
27186
|
+
description: the ID of parent cluster
|
|
27187
|
+
type: string
|
|
27188
|
+
nullable: true
|
|
27189
|
+
parentClusterName:
|
|
27190
|
+
description: the Name of parent cluster
|
|
27191
|
+
type: string
|
|
27192
|
+
nullable: true
|
|
27193
|
+
parentEnvName:
|
|
27194
|
+
description: parent env name
|
|
27195
|
+
type: string
|
|
27196
|
+
nullable: true
|
|
27197
|
+
clusterID:
|
|
27198
|
+
description: the ID of promote cluster
|
|
27199
|
+
type: string
|
|
27200
|
+
nullable: true
|
|
27201
|
+
clusterName:
|
|
27202
|
+
description: the Name of promote cluster
|
|
27203
|
+
type: string
|
|
27204
|
+
nullable: true
|
|
27205
|
+
envName:
|
|
27206
|
+
description: env name
|
|
26998
27207
|
type: string
|
|
26999
27208
|
nullable: true
|
|
27209
|
+
eventType:
|
|
27210
|
+
$ref: '#/components/schemas/disasterRecoveryEventType'
|
|
27211
|
+
reason:
|
|
27212
|
+
description: the reason of promote
|
|
27213
|
+
type: string
|
|
27214
|
+
nullable: true
|
|
27215
|
+
operator:
|
|
27216
|
+
description: the operator name
|
|
27217
|
+
type: string
|
|
27218
|
+
operatorId:
|
|
27219
|
+
description: the user ID of the operator
|
|
27220
|
+
type: string
|
|
27221
|
+
createdAt:
|
|
27222
|
+
description: the create time of promote event
|
|
27223
|
+
type: string
|
|
27224
|
+
format: date-time
|
|
27225
|
+
updateAt:
|
|
27226
|
+
description: the update time of promote event
|
|
27227
|
+
type: string
|
|
27228
|
+
format: date-time
|
|
27229
|
+
status:
|
|
27230
|
+
$ref: '#/components/schemas/disasterRecoveryStatus'
|
|
27231
|
+
type: object
|
|
27232
|
+
disasterRecoveryHistory:
|
|
27233
|
+
description: DisasterRecovery history for Cluster
|
|
27234
|
+
properties:
|
|
27235
|
+
items:
|
|
27236
|
+
description: Items is the list of DisasterRecovery logs
|
|
27237
|
+
items:
|
|
27238
|
+
$ref: '#/components/schemas/disasterRecoveryHistoryItem'
|
|
27239
|
+
type: array
|
|
27000
27240
|
required:
|
|
27001
|
-
-
|
|
27241
|
+
- items
|
|
27242
|
+
type: object
|
|
27243
|
+
disasterRecoveryStatusResponse:
|
|
27244
|
+
description: Status of the Disaster Recovery instance
|
|
27245
|
+
properties:
|
|
27246
|
+
clusterId:
|
|
27247
|
+
title: Cluster ID
|
|
27248
|
+
type: string
|
|
27249
|
+
description: Unique identifier for the cluster
|
|
27250
|
+
clusterName:
|
|
27251
|
+
title: Cluster Name
|
|
27252
|
+
type: string
|
|
27253
|
+
nullable: true
|
|
27254
|
+
description: Name of the cluster
|
|
27255
|
+
displayName:
|
|
27256
|
+
title: Display Name
|
|
27257
|
+
type: string
|
|
27258
|
+
nullable: true
|
|
27259
|
+
description: User-friendly name of the cluster
|
|
27260
|
+
status:
|
|
27261
|
+
title: Status
|
|
27262
|
+
type: string
|
|
27263
|
+
nullable: true
|
|
27264
|
+
description: Current operational status of the cluster
|
|
27265
|
+
parentId:
|
|
27266
|
+
title: Parent Cluster ID
|
|
27267
|
+
type: string
|
|
27268
|
+
description: ID of the parent cluster, if applicable; can be empty if there is no parent relationship
|
|
27269
|
+
parentName:
|
|
27270
|
+
title: Parent Cluster Name
|
|
27271
|
+
type: string
|
|
27272
|
+
nullable: true
|
|
27273
|
+
description: Name of the parent cluster
|
|
27274
|
+
parentDisplayName:
|
|
27275
|
+
title: Parent Cluster Display Name
|
|
27276
|
+
type: string
|
|
27277
|
+
nullable: true
|
|
27278
|
+
description: User-friendly name of the parent cluster
|
|
27279
|
+
parentStatus:
|
|
27280
|
+
title: Parent Cluster Status
|
|
27281
|
+
type: string
|
|
27282
|
+
nullable: true
|
|
27283
|
+
description: Current operational status of the parent cluster
|
|
27284
|
+
delay:
|
|
27285
|
+
title: Delay
|
|
27286
|
+
type: number
|
|
27287
|
+
format: double
|
|
27288
|
+
nullable: true
|
|
27289
|
+
description: Delay time in seconds
|
|
27290
|
+
currentReplicationPoint:
|
|
27291
|
+
title: Current Replication Point
|
|
27292
|
+
type: string
|
|
27293
|
+
nullable: true
|
|
27294
|
+
description: Current replication point for the disaster recovery instance
|
|
27295
|
+
required:
|
|
27296
|
+
- clusterId
|
|
27297
|
+
- parentId
|
|
27002
27298
|
type: object
|
|
27003
27299
|
eventFilterType:
|
|
27004
27300
|
description: Console do not support orgName.
|
|
@@ -43101,3 +43397,6 @@ x-tagGroups:
|
|
|
43101
43397
|
- name: import
|
|
43102
43398
|
tags:
|
|
43103
43399
|
- import
|
|
43400
|
+
- name: disasterRecovery
|
|
43401
|
+
tags:
|
|
43402
|
+
- disasterRecovery
|