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 |
Detailed description of an object. UCS creates or updates objects by defining or updating spec. |
|
status |
JobStatus object |
Object 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 |
Sub Jobs |
|
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 |
Detailed description of an object. UCS creates or updates objects by defining or updating spec. |
|
status |
JobStatus object |
Object 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> |
Label |
|
annotations |
Map<String,String> |
Annotation |
|
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 being 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. |
|
Parameter |
Type |
Description |
|---|---|---|
|
phase |
String |
Job phase |
|
reason |
String |
Job reason |
|
completionTime |
String |
Job Completion Time |
|
startTime |
String |
Job Start Time |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
String |
- |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
String |
- |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
String |
- |
Example Requests
None
Example Responses
Status code: 200
Returns the job for enabling federation.
{
"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"
},
"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"
},
"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"
},
"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"
},
"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"
},
"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 |
Returns the job for enabling federation. |
|
400 |
Client request error. The server could not execute the request. |
|
404 |
Resource not found. |
|
500 |
Internal server error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot