Reviewed-by: Gergo-Bence Lorincz <a200452876@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
40 KiB
Querying Federation Enabling Progress
Function
This API is used to query the federation enabling progress.
URI
GET /v1/clustergroups/{clustergroupid}/federations/progress
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
clustergroupid |
Yes |
String |
Fleet ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
No |
String |
Identity authentication information. Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
kind |
String |
API type |
apiVersion |
String |
API version. The value is fixed at v1 and cannot be changed. |
metadata |
ObjectMeta object |
ObjectMeta is a metadata structure that must be contained in all persistent resources in Kubernetes. |
spec |
JobSpec object |
Details about the job. UCS creates or updates the job based on spec. |
status |
JobStatus object |
Job status |
Parameter |
Type |
Description |
|---|---|---|
type |
String |
Job type |
federationuid |
String |
Federation UID |
resourceid |
String |
Resource ID |
resourcename |
String |
Resource name |
extendparam |
String |
Extended parameter |
subjobs |
Array of Job objects |
Subjobs |
Parameter |
Type |
Description |
|---|---|---|
kind |
String |
API type |
apiVersion |
String |
API version. The value is fixed at v1 and cannot be changed. |
spec |
JobSpec object |
Details about the job. UCS creates or updates the job based on spec. |
status |
JobStatus object |
Job status |
Parameter |
Type |
Description |
|---|---|---|
uid |
String |
Resource ID |
name |
String |
Resource name |
generateName |
String |
If no name is provided, the server uses the prefix to generate a unique name. |
namespace |
String |
Namespace |
labels |
Map<String,String> |
Labels |
annotations |
Map<String,String> |
Annotations |
creationTimestamp |
String |
Creation time |
updateTimestamp |
String |
Update time |
resourceVersion |
String |
Internal version of a resource |
generation |
String |
Generation of the desired resource state |
managedFields |
Array of ManagedFieldsEntry objects |
Fields managed by workflows |
ownerReferences |
Array of OwnerReference objects |
Ownership, dependencies, and garbage collection mechanism of objects. It supports resource management by the controller. |
Parameter |
Type |
Description |
|---|---|---|
manager |
String |
Manager name |
operation |
String |
Operation type that causes this entry to be created. The value can only be Apply or Update. |
apiVersion |
String |
Resource API version used by a manager for defining fields |
time |
String |
Timestamp when this entry was created or last updated |
fieldsType |
String |
Field structure format. The value is fixed at FieldsV1. |
fieldsV1 |
Object |
Information about the managed fields |
Parameter |
Type |
Description |
|---|---|---|
apiVersion |
String |
API version of the referent |
kind |
String |
Type of the referent |
name |
String |
Name of the referent |
uid |
String |
UID of the referent |
controller |
Boolean |
If the value is true, this reference points to the controller that manages the resource. |
blockOwnerDeletion |
Boolean |
If the value is true and the owner has a finalizer named foregroundDeletion, the owner cannot be deleted until this reference is removed. |
Example Requests
None
Example Responses
Status code: 200
Job for enabling cluster federation returned.
{
"kind" : "Job",
"apiVersion" : "v3",
"metadata" : {
"uid" : "70b5a14f-2fa4-11ee-bf07-0255ac1000b9",
"creationTimestamp" : "2023-07-31 13:16:20.715779 +0000 UTC",
"updateTimestamp" : "2023-07-31 13:17:24.497868 +0000 UTC",
"annotations" : {
"currentTimestamp" : "2023-07-31 13:17:24.933313136 +0000 UTC"
}
},
"spec" : {
"type" : "CreateFederationContainer",
"federationUID" : "70acf480-2fa4-11ee-ad1d-0255ac1001c4",
"resourceID" : "70acf480-2fa4-11ee-ad1d-0255ac1001c4",
"resourceName" : "70acf480-2fa4-11ee-ad1d-0255ac1001c4",
"subJobs" : [ {
"kind" : "Job",
"apiVersion" : "v3",
"metadata" : {
"uid" : "70b66b9a-2fa4-11ee-bf07-0255ac1000b9",
"creationTimestamp" : "2023-07-31 13:16:20.740512 +0000 UTC",
"updateTimestamp" : "2023-07-31 13:16:22.100528 +0000 UTC",
"annotations" : {
"currentTimestamp" : "2023-07-31 13:17:24.934274579 +0000 UTC"
}
},
"spec" : {
"type" : "InstallFederationChart",
"federationUID" : "70acf480-2fa4-11ee-ad1d-0255ac1001c4"
},
"status" : {
"phase" : "Success",
"completionTime" : "2023-07-31 13:16:22.100528 +0000 UTC",
"startTime" : "2023-07-31 13:16:22.100528 +0000 UTC"
}
}, {
"kind" : "Job",
"apiVersion" : "v3",
"metadata" : {
"uid" : "70b66b68-2fa4-11ee-bf07-0255ac1000b9",
"creationTimestamp" : "2023-07-31 13:16:20.736232 +0000 UTC",
"updateTimestamp" : "2023-07-31 13:17:24.490359 +0000 UTC",
"annotations" : {
"currentTimestamp" : "2023-07-31 13:17:24.934277116 +0000 UTC"
}
},
"spec" : {
"type" : "CreateNetworkResource",
"federationUID" : "70acf480-2fa4-11ee-ad1d-0255ac1001c4",
"extendParam" : {
"JobExtendParamKeyElbID" : "69694819-67dc-44ac-ab6e-9b18087c5c4c"
}
},
"status" : {
"phase" : "Success",
"completionTime" : "2023-07-31 13:17:24.490359 +0000 UTC",
"startTime" : "2023-07-31 13:16:20.744891 +0000 UTC"
}
}, {
"kind" : "Job",
"apiVersion" : "v3",
"metadata" : {
"uid" : "70b66afa-2fa4-11ee-bf07-0255ac1000b9",
"creationTimestamp" : "2023-07-31 13:16:20.731295 +0000 UTC",
"updateTimestamp" : "2023-07-31 13:16:22.100452 +0000 UTC",
"annotations" : {
"currentTimestamp" : "2023-07-31 13:17:24.934288685 +0000 UTC"
}
},
"spec" : {
"type" : "CreateCert",
"federationUID" : "70acf480-2fa4-11ee-ad1d-0255ac1001c4"
},
"status" : {
"phase" : "Success",
"completionTime" : "2023-07-31 13:16:22.100452 +0000 UTC",
"startTime" : "2023-07-31 13:16:22.100452 +0000 UTC"
}
}, {
"kind" : "Job",
"apiVersion" : "v3",
"metadata" : {
"uid" : "70b66ad0-2fa4-11ee-bf07-0255ac1000b9",
"creationTimestamp" : "2023-07-31 13:16:20.726434 +0000 UTC",
"updateTimestamp" : "2023-07-31 13:16:22.093902 +0000 UTC",
"annotations" : {
"currentTimestamp" : "2023-07-31 13:17:24.934291673 +0000 UTC"
}
},
"spec" : {
"type" : "CreateNode",
"federationUID" : "70acf480-2fa4-11ee-ad1d-0255ac1001c4"
},
"status" : {
"phase" : "Success",
"completionTime" : "2023-07-31 13:16:22.093902 +0000 UTC",
"startTime" : "2023-07-31 13:16:20.745187 +0000 UTC"
}
} ]
},
"status" : {
"phase" : "Success",
"completionTime" : "2023-07-31 13:17:24.497868 +0000 UTC",
"startTime" : "2023-07-31 13:16:20.721007 +0000 UTC"
}
}
Status Codes
Status Code |
Description |
|---|---|
200 |
Job for enabling cluster federation returned. |
400 |
Client request error. The server could not execute the request. |
404 |
Resources not found. |
500 |
Internal server error. |
Error Codes
See Error Codes.