diff --git a/docs/ucs/api-ref/ALL_META.TXT.json b/docs/ucs/api-ref/ALL_META.TXT.json deleted file mode 100644 index c4b19513f..000000000 --- a/docs/ucs/api-ref/ALL_META.TXT.json +++ /dev/null @@ -1,1029 +0,0 @@ -[ - { - "dockw":"API Reference" - }, - { - "uri":"ucs_api_0001.html", - "node_id":"ucs_api_0001.xml", - "product_code":"ucs", - "code":"1", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Before You Start", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Before You Start", - "githuburl":"" - }, - { - "uri":"ucs_api_0002.html", - "node_id":"ucs_api_0002.xml", - "product_code":"ucs", - "code":"2", - "des":"Ubiquitous Cloud Native Service (UCS) is the first distributed cloud native product in the industry. It provides a consistent experience in cloud native application deplo", - "doc_type":"api", - "kw":"Overview,Before You Start,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Overview", - "githuburl":"" - }, - { - "uri":"ucs_api_0003.html", - "node_id":"ucs_api_0003.xml", - "product_code":"ucs", - "code":"3", - "des":"UCS supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see Calling APIs.", - "doc_type":"api", - "kw":"API Calling,Before You Start,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"API Calling", - "githuburl":"" - }, - { - "uri":"ucs_api_0004.html", - "node_id":"ucs_api_0004.xml", - "product_code":"ucs", - "code":"4", - "des":"An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. The endpoint of UCS consists of the service name, region ID, and ", - "doc_type":"api", - "kw":"Endpoints,Before You Start,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Endpoints", - "githuburl":"" - }, - { - "uri":"ucs_api_0005.html", - "node_id":"ucs_api_0005.xml", - "product_code":"ucs", - "code":"5", - "des":"UCS imposes quotas on the number and capacity of resources that a user can access. By default, you can create a maximum of 50 fleets, 50 clusters, and 50 permission polic", - "doc_type":"api", - "kw":"Constraints,Before You Start,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Constraints", - "githuburl":"" - }, - { - "uri":"ucs_api_0006.html", - "node_id":"ucs_api_0006.xml", - "product_code":"ucs", - "code":"6", - "des":"DomainA domain is created upon successful signing up. The domain has full access permissions for all of its cloud services and resources. It can be used to reset user pas", - "doc_type":"api", - "kw":"Concepts,Before You Start,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Concepts", - "githuburl":"" - }, - { - "uri":"ucs_api_0007.html", - "node_id":"ucs_api_0007.xml", - "product_code":"ucs", - "code":"7", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Calling APIs", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Calling APIs", - "githuburl":"" - }, - { - "uri":"ucs_api_0008.html", - "node_id":"ucs_api_0008.xml", - "product_code":"ucs", - "code":"8", - "des":"This section describes the structure of a REST API request, and uses the IAM API for obtaining a user tokenobtaining a user token as an example to demonstrate how to call", - "doc_type":"api", - "kw":"Making an API Request,Calling APIs,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Making an API Request", - "githuburl":"" - }, - { - "uri":"ucs_api_0009.html", - "node_id":"ucs_api_0009.xml", - "product_code":"ucs", - "code":"9", - "des":"Requests for calling an API can be authenticated using an AK/SK pair.An AK/SK is used to verify the identity of a request sender. In AK/SK authentication, a signature nee", - "doc_type":"api", - "kw":"Authentication,Calling APIs,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Authentication", - "githuburl":"" - }, - { - "uri":"ucs_api_0010.html", - "node_id":"ucs_api_0010.xml", - "product_code":"ucs", - "code":"10", - "des":"After sending a request, you will receive a response, including a status code, response header, and response body.A status code is a group of digits, ranging from 1xx to ", - "doc_type":"api", - "kw":"Response,Calling APIs,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Response", - "githuburl":"" - }, - { - "uri":"ucs_api_0011.html", - "node_id":"ucs_api_0011.xml", - "product_code":"ucs", - "code":"11", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"API", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"API", - "githuburl":"" - }, - { - "uri":"topic_300000000.html", - "node_id":"topic_300000000.xml", - "product_code":"ucs", - "code":"12", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"UCS Clusters", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"UCS Clusters", - "githuburl":"" - }, - { - "uri":"ShowClusterList.html", - "node_id":"showclusterlist.xml", - "product_code":"ucs", - "code":"13", - "des":"This API is used to obtain the cluster list.GET /v1/clustersStatus code: 200NoneStatus code: 200Information about all clusters is obtained.See Error Codes.", - "doc_type":"api", - "kw":"Obtaining the Cluster List,UCS Clusters,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Obtaining the Cluster List", - "githuburl":"" - }, - { - "uri":"ShowCluster.html", - "node_id":"showcluster.xml", - "product_code":"ucs", - "code":"14", - "des":"This API is used to obtain a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permissions on the cluster. Otherwi", - "doc_type":"api", - "kw":"Obtaining a Cluster,UCS Clusters,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Obtaining a Cluster", - "githuburl":"" - }, - { - "uri":"RegisterCluster.html", - "node_id":"registercluster.xml", - "product_code":"ucs", - "code":"15", - "des":"This API is used to register a cluster. Third-party clusters and CCE clusters can be registered.POST /v1/clustersStatus code: 201Registering a CCE cluster{\n \"metadata\" :", - "doc_type":"api", - "kw":"Registering a Cluster,UCS Clusters,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Registering a Cluster", - "githuburl":"" - }, - { - "uri":"UpdateCluster.html", - "node_id":"updatecluster.xml", - "product_code":"ucs", - "code":"16", - "des":"This API is used to update a cluster. Currently, only the country/city of attached clusters and on-premises clusters, and the number of worker nodes in a multi-cloud clus", - "doc_type":"api", - "kw":"Updating a Cluster,UCS Clusters,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Updating a Cluster", - "githuburl":"" - }, - { - "uri":"DeleteCluster.html", - "node_id":"deletecluster.xml", - "product_code":"ucs", - "code":"17", - "des":"This API is used to unregister a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permissions on the correspondin", - "doc_type":"api", - "kw":"Unregistering a Cluster,UCS Clusters,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Unregistering a Cluster", - "githuburl":"" - }, - { - "uri":"ShowClusterAccessInfo.html", - "node_id":"showclusteraccessinfo.xml", - "product_code":"ucs", - "code":"18", - "des":"This API is used to obtain the cluster access information. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the permission to query the", - "doc_type":"api", - "kw":"Obtaining Cluster Access Information,UCS Clusters,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Obtaining Cluster Access Information", - "githuburl":"" - }, - { - "uri":"RetryClusterActivation.html", - "node_id":"retryclusteractivation.xml", - "product_code":"ucs", - "code":"19", - "des":"This API is used to activate a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permission on the corresponding c", - "doc_type":"api", - "kw":"Activating a Cluster,UCS Clusters,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Activating a Cluster", - "githuburl":"" - }, - { - "uri":"ListManagedClusters.html", - "node_id":"listmanagedclusters.xml", - "product_code":"ucs", - "code":"20", - "des":"This API is used to obtain the CCE cluster list of the current tenant.GET /v1/managedclustersStatus code: 200NoneStatus code: 200CCE clusters that are not registered with", - "doc_type":"api", - "kw":"Obtaining the CCE Cluster List of a Tenant,UCS Clusters,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Obtaining the CCE Cluster List of a Tenant", - "githuburl":"" - }, - { - "uri":"ListRegisteredClusterVersions.html", - "node_id":"listregisteredclusterversions.xml", - "product_code":"ucs", - "code":"21", - "des":"This API is used to query the version list of clusters that can be connected to UCS.GET /v1/config/registeredclusterversionsStatus code: 200NoneStatus code: 200Version li", - "doc_type":"api", - "kw":"Querying the Version List of Clusters That Can Be Connected to UCS,UCS Clusters,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Querying the Version List of Clusters That Can Be Connected to UCS", - "githuburl":"" - }, - { - "uri":"topic_300000001.html", - "node_id":"topic_300000001.xml", - "product_code":"ucs", - "code":"22", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Fleets", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Fleets", - "githuburl":"" - }, - { - "uri":"JoinGroup.html", - "node_id":"joingroup.xml", - "product_code":"ucs", - "code":"23", - "des":"This API is used to add a cluster to a fleet.POST /v1/clusters/{clusterid}/joinNoneAdding a cluster to a fleetStatus code: 200The cluster has been added to the fleet.See ", - "doc_type":"api", - "kw":"Adding a Cluster to a Fleet,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Adding a Cluster to a Fleet", - "githuburl":"" - }, - { - "uri":"LeaveGroup.html", - "node_id":"leavegroup.xml", - "product_code":"ucs", - "code":"24", - "des":"This API is used to remove a cluster from a fleet.POST /v1/clusters/{clusterid}/unjoinNoneNoneNoneSee Error Codes.", - "doc_type":"api", - "kw":"Removing a Cluster from a Fleet,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Removing a Cluster from a Fleet", - "githuburl":"" - }, - { - "uri":"RegisterClusterGroup.html", - "node_id":"registerclustergroup.xml", - "product_code":"ucs", - "code":"25", - "des":"This API is used to create a fleet. You can select clusters during fleet creation.POST /v1/clustergroupsStatus code: 201Creating a fleet and (optional) adding clusters to", - "doc_type":"api", - "kw":"Creating a Fleet,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Creating a Fleet", - "githuburl":"" - }, - { - "uri":"DeleteClusterGroup.html", - "node_id":"deleteclustergroup.xml", - "product_code":"ucs", - "code":"26", - "des":"This API is used to delete a fleet. A fleet can only be deleted when there are no clusters in it. To delete a fleet, remove the clusters from the fleet first. The cluster", - "doc_type":"api", - "kw":"Deleting a Fleet,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Deleting a Fleet", - "githuburl":"" - }, - { - "uri":"ShowClusterGroup.html", - "node_id":"showclustergroup.xml", - "product_code":"ucs", - "code":"27", - "des":"This API is used to obtain a fleet.GET /v1/clustergroups/{clustergroupid}Status code: 200NoneStatus code: 200Fleet objectSee Error Codes.", - "doc_type":"api", - "kw":"Obtaining a Fleet,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Obtaining a Fleet", - "githuburl":"" - }, - { - "uri":"UpdateClusterGroupAssociatedClusters.html", - "node_id":"updateclustergroupassociatedclusters.xml", - "product_code":"ucs", - "code":"28", - "des":"This API is used to add clusters to a fleet. One or more clusters can be added at the same time. This API cannot be used to remove all or some clusters from a fleet.PUT /", - "doc_type":"api", - "kw":"Adding Clusters to a Fleet,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Adding Clusters to a Fleet", - "githuburl":"" - }, - { - "uri":"UpdateClusterGroup.html", - "node_id":"updateclustergroup.xml", - "product_code":"ucs", - "code":"29", - "des":"This API is used to update the description of a fleet. You must have the permissions to update the fleet.PUT /v1/clustergroups/{clustergroupid}/descriptionNoneUpdating fl", - "doc_type":"api", - "kw":"Updating Fleet Description,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Updating Fleet Description", - "githuburl":"" - }, - { - "uri":"ListClusterGroup.html", - "node_id":"listclustergroup.xml", - "product_code":"ucs", - "code":"30", - "des":"This API is used to obtain the fleet list.GET /v1/clustergroupsStatus code: 200NoneStatus code: 200The fleet list has been obtained.See Error Codes.", - "doc_type":"api", - "kw":"Obtaining the Fleet List,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Obtaining the Fleet List", - "githuburl":"" - }, - { - "uri":"EnableFederation.html", - "node_id":"enablefederation.xml", - "product_code":"ucs", - "code":"31", - "des":"This API is used to enable cluster federation.POST /v1/clustergroups/{clustergroupid}/federationsStatus code: 201container fleet has in enable federation progress.Status ", - "doc_type":"api", - "kw":"Enabling Cluster Federation,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Enabling Cluster Federation", - "githuburl":"" - }, - { - "uri":"DisableFederation.html", - "node_id":"disablefederation.xml", - "product_code":"ucs", - "code":"32", - "des":"This API is used to disable cluster federation for a fleet.DELETE /v1/clustergroups/{clustergroupid}/federationsNoneNoneStatus code: 200Cluster federation has been disabl", - "doc_type":"api", - "kw":"Disabling Cluster Federation,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Disabling Cluster Federation", - "githuburl":"" - }, - { - "uri":"ShowFederationProgress.html", - "node_id":"showfederationprogress.xml", - "product_code":"ucs", - "code":"33", - "des":"This API is used to query the federation enabling progress.GET /v1/clustergroups/{clustergroupid}/federations/progressStatus code: 200NoneStatus code: 200Job for enabling", - "doc_type":"api", - "kw":"Querying Federation Enabling Progress,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Querying Federation Enabling Progress", - "githuburl":"" - }, - { - "uri":"CreateFederationCert.html", - "node_id":"createfederationcert.xml", - "product_code":"ucs", - "code":"34", - "des":"This API is used to create a VPC endpoint for connecting to the federation API server and downloading kubeconfig of the federation API server after federation is enabled ", - "doc_type":"api", - "kw":"Creating a Federation Connection and Downloading kubeconfig,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Creating a Federation Connection and Downloading kubeconfig", - "githuburl":"" - }, - { - "uri":"CreateFederationConnection.html", - "node_id":"createfederationconnection.xml", - "product_code":"ucs", - "code":"35", - "des":"This API is used to create a VPC endpoint for connecting to the federation API server after federation is enabled for a fleet.POST /v1/clustergroups/{clustergroupid}/conn", - "doc_type":"api", - "kw":"Creating a Federation Connection,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Creating a Federation Connection", - "githuburl":"" - }, - { - "uri":"DownloadFederationKubeconfig.html", - "node_id":"downloadfederationkubeconfig.xml", - "product_code":"ucs", - "code":"36", - "des":"This API is used to download the kubeconfig after the cluster federation is enabled for a fleet and the federation connection is created.POST /v1/clustergroups/{clustergr", - "doc_type":"api", - "kw":"Downloading Federation kubeconfig,Fleets,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Downloading Federation kubeconfig", - "githuburl":"" - }, - { - "uri":"en-us_topic_0000002551843195.html", - "node_id":"en-us_topic_0000002551843195.xml", - "product_code":"ucs", - "code":"37", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Outdated APIs", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Outdated APIs", - "githuburl":"" - }, - { - "uri":"en-us_topic_0000002551763211.html", - "node_id":"en-us_topic_0000002551763211.xml", - "product_code":"ucs", - "code":"38", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"UCS Cluster", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"UCS Cluster", - "githuburl":"" - }, - { - "uri":"UpdateClusterRules.html", - "node_id":"updateclusterrules.xml", - "product_code":"ucs", - "code":"39", - "des":"This API is used to associate a cluster with permission policies.PUT /v1/clusters/{clusterid}/associatedrulesNoneAssociating a cluster with permission policiesNoneSee Err", - "doc_type":"api", - "kw":"Associating a Cluster with Permission Policies,UCS Cluster,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Associating a Cluster with Permission Policies", - "githuburl":"" - }, - { - "uri":"en-us_topic_0000002520563224.html", - "node_id":"en-us_topic_0000002520563224.xml", - "product_code":"ucs", - "code":"40", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Fleet", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Fleet", - "githuburl":"" - }, - { - "uri":"UpdateClusterGroupAssociatedRules.html", - "node_id":"updateclustergroupassociatedrules.xml", - "product_code":"ucs", - "code":"41", - "des":"This API is used to update the permission policies associated with a fleet.PUT /v1/clustergroups/{clustergroupid}/associatedrulesNoneUpdating the permission policies asso", - "doc_type":"api", - "kw":"Updating Permission Policies Associated with a Fleet,Fleet,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Updating Permission Policies Associated with a Fleet", - "githuburl":"" - }, - { - "uri":"topic_300000002.html", - "node_id":"topic_300000002.xml", - "product_code":"ucs", - "code":"42", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Permissions", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Permissions", - "githuburl":"" - }, - { - "uri":"CreateRule.html", - "node_id":"createrule.xml", - "product_code":"ucs", - "code":"43", - "des":"This API is used to create a permission policy.POST /v1/permissions/rulesStatus code: 201Creating a permission policyStatus code: 201The UID of the new permission policy ", - "doc_type":"api", - "kw":"Creating a Permission Policy,Permissions,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Creating a Permission Policy", - "githuburl":"" - }, - { - "uri":"ListRule.html", - "node_id":"listrule.xml", - "product_code":"ucs", - "code":"44", - "des":"This API is used to obtain the permission policy list.GET /v1/permissions/rulesStatus code: 200NoneStatus code: 200Permission policy listSee Error Codes.", - "doc_type":"api", - "kw":"Obtaining the Permission Policy List,Permissions,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Obtaining the Permission Policy List", - "githuburl":"" - }, - { - "uri":"DeleteRule.html", - "node_id":"deleterule.xml", - "product_code":"ucs", - "code":"45", - "des":"This API is used to delete a permission policy.DELETE /v1/permissions/rules/{ruleid}NoneNoneNoneSee Error Codes.", - "doc_type":"api", - "kw":"Deleting a Permission Policy,Permissions,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Deleting a Permission Policy", - "githuburl":"" - }, - { - "uri":"UpdateRule.html", - "node_id":"updaterule.xml", - "product_code":"ucs", - "code":"46", - "des":"This API is used to update a permission policy.PUT /v1/permissions/rules/{ruleid}NoneUpdating a permission policyNoneSee Error Codes.", - "doc_type":"api", - "kw":"Updating a Permission Policy,Permissions,API Reference", - "search_title":"", - "metedata":[ - { - "prodname":"ucs", - "documenttype":"api", - "opensource":"true", - "operation_id":"ShowClusterList;ShowCluster;RegisterCluster;UpdateCluster;DeleteCluster;ShowClusterAccessInfo;RetryClusterActivation;UpdateClusterRules;ListManagedClusters;ListRegisteredClusterVersions;JoinGroup;LeaveGroup;RegisterClusterGroup;DeleteClusterGroup;ShowClusterGroup;UpdateClusterGroupAssociatedClusters;UpdateClusterGroup;UpdateClusterGroupAssociatedRules;ListClusterGroup;EnableFederation;DisableFederation;ShowFederationProgress;CreateFederationCert;CreateFederationConnection;DownloadFederationKubeconfig;CreateRule;ListRule;DeleteRule;UpdateRule" - } - ], - "title":"Updating a Permission Policy", - "githuburl":"" - }, - { - "uri":"ucs_api_0015.html", - "node_id":"ucs_api_0015.xml", - "product_code":"ucs", - "code":"47", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Appendix", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Appendix", - "githuburl":"" - }, - { - "uri":"ucs_api_0016.html", - "node_id":"ucs_api_0016.xml", - "product_code":"ucs", - "code":"48", - "des":"Normal valuesReturned ValueDescription200 OKThe results of GET and PUT operations are returned as expected.201 CreatedThe results of the POST operation are returned as ex", - "doc_type":"api", - "kw":"Status Codes,Appendix,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Status Codes", - "githuburl":"" - }, - { - "uri":"ErrorCode.html", - "node_id":"errorcode.xml", - "product_code":"ucs", - "code":"49", - "des":"If an exception occurs during the execution of an operation request and the request is not processed, an error message is returned. The error message contains the error c", - "doc_type":"api", - "kw":"Error Codes,Appendix,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Error Codes", - "githuburl":"" - }, - { - "uri":"ucs_api_0018.html", - "node_id":"ucs_api_0018.xml", - "product_code":"ucs", - "code":"50", - "des":"A project ID is required for some URLs when an API is called. Therefore, you need to obtain a project ID in advance. Two methods are available:Call an API.Use the console", - "doc_type":"api", - "kw":"Obtaining a Project ID,Appendix,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Obtaining a Project ID", - "githuburl":"" - }, - { - "uri":"ucs_api_0019.html", - "node_id":"ucs_api_0019.xml", - "product_code":"ucs", - "code":"51", - "des":"An account ID is required for some URLs when an API is called. To obtain the account ID, perform the following steps:Register an account and log in to the management cons", - "doc_type":"api", - "kw":"Obtaining an Account ID,Appendix,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Obtaining an Account ID", - "githuburl":"" - }, - { - "uri":"ucs_api_0022.html", - "node_id":"ucs_api_0022.xml", - "product_code":"ucs", - "code":"52", - "des":"AF: AfghanistanAL: AlbaniaDZ: AlgeriaAD: AndorraAO: AngolaAG: Antigua and BarbudaAR: ArgentinaAM: ArmeniaAU: AustraliaAT: AustriaAZ: AzerbaijanBS: BahamasBH: BahrainBD: B", - "doc_type":"api", - "kw":"Country Codes,Appendix,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Country Codes", - "githuburl":"" - }, - { - "uri":"ucs_api_0024.html", - "node_id":"ucs_api_0024.xml", - "product_code":"ucs", - "code":"53", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Cluster Categories and Types,Appendix,API Reference", - "search_title":"", - "metedata":[ - { - "documenttype":"api", - "prodname":"ucs" - } - ], - "title":"Cluster Categories and Types", - "githuburl":"" - } -] \ No newline at end of file diff --git a/docs/ucs/api-ref/CLASS.TXT.json b/docs/ucs/api-ref/CLASS.TXT.json deleted file mode 100644 index d5c456237..000000000 --- a/docs/ucs/api-ref/CLASS.TXT.json +++ /dev/null @@ -1,479 +0,0 @@ -[ - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"ucs", - "title":"Before You Start", - "uri":"ucs_api_0001.html", - "doc_type":"api", - "p_code":"", - "code":"1" - }, - { - "desc":"Ubiquitous Cloud Native Service (UCS) is the first distributed cloud native product in the industry. It provides a consistent experience in cloud native application deplo", - "product_code":"ucs", - "title":"Overview", - "uri":"ucs_api_0002.html", - "doc_type":"api", - "p_code":"1", - "code":"2" - }, - { - "desc":"UCS supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see Calling APIs.", - "product_code":"ucs", - "title":"API Calling", - "uri":"ucs_api_0003.html", - "doc_type":"api", - "p_code":"1", - "code":"3" - }, - { - "desc":"An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. The endpoint of UCS consists of the service name, region ID, and ", - "product_code":"ucs", - "title":"Endpoints", - "uri":"ucs_api_0004.html", - "doc_type":"api", - "p_code":"1", - "code":"4" - }, - { - "desc":"UCS imposes quotas on the number and capacity of resources that a user can access. By default, you can create a maximum of 50 fleets, 50 clusters, and 50 permission polic", - "product_code":"ucs", - "title":"Constraints", - "uri":"ucs_api_0005.html", - "doc_type":"api", - "p_code":"1", - "code":"5" - }, - { - "desc":"DomainA domain is created upon successful signing up. The domain has full access permissions for all of its cloud services and resources. It can be used to reset user pas", - "product_code":"ucs", - "title":"Concepts", - "uri":"ucs_api_0006.html", - "doc_type":"api", - "p_code":"1", - "code":"6" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"ucs", - "title":"Calling APIs", - "uri":"ucs_api_0007.html", - "doc_type":"api", - "p_code":"", - "code":"7" - }, - { - "desc":"This section describes the structure of a REST API request, and uses the IAM API for obtaining a user tokenobtaining a user token as an example to demonstrate how to call", - "product_code":"ucs", - "title":"Making an API Request", - "uri":"ucs_api_0008.html", - "doc_type":"api", - "p_code":"7", - "code":"8" - }, - { - "desc":"Requests for calling an API can be authenticated using an AK/SK pair.An AK/SK is used to verify the identity of a request sender. In AK/SK authentication, a signature nee", - "product_code":"ucs", - "title":"Authentication", - "uri":"ucs_api_0009.html", - "doc_type":"api", - "p_code":"7", - "code":"9" - }, - { - "desc":"After sending a request, you will receive a response, including a status code, response header, and response body.A status code is a group of digits, ranging from 1xx to ", - "product_code":"ucs", - "title":"Response", - "uri":"ucs_api_0010.html", - "doc_type":"api", - "p_code":"7", - "code":"10" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"ucs", - "title":"API", - "uri":"ucs_api_0011.html", - "doc_type":"api", - "p_code":"", - "code":"11" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"ucs", - "title":"UCS Clusters", - "uri":"topic_300000000.html", - "doc_type":"api", - "p_code":"11", - "code":"12" - }, - { - "desc":"This API is used to obtain the cluster list.GET /v1/clustersStatus code: 200NoneStatus code: 200Information about all clusters is obtained.See Error Codes.", - "product_code":"ucs", - "title":"Obtaining the Cluster List", - "uri":"ShowClusterList.html", - "doc_type":"api", - "p_code":"12", - "code":"13" - }, - { - "desc":"This API is used to obtain a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permissions on the cluster. Otherwi", - "product_code":"ucs", - "title":"Obtaining a Cluster", - "uri":"ShowCluster.html", - "doc_type":"api", - "p_code":"12", - "code":"14" - }, - { - "desc":"This API is used to register a cluster. Third-party clusters and CCE clusters can be registered.POST /v1/clustersStatus code: 201Registering a CCE cluster{\n \"metadata\" :", - "product_code":"ucs", - "title":"Registering a Cluster", - "uri":"RegisterCluster.html", - "doc_type":"api", - "p_code":"12", - "code":"15" - }, - { - "desc":"This API is used to update a cluster. Currently, only the country/city of attached clusters and on-premises clusters, and the number of worker nodes in a multi-cloud clus", - "product_code":"ucs", - "title":"Updating a Cluster", - "uri":"UpdateCluster.html", - "doc_type":"api", - "p_code":"12", - "code":"16" - }, - { - "desc":"This API is used to unregister a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permissions on the correspondin", - "product_code":"ucs", - "title":"Unregistering a Cluster", - "uri":"DeleteCluster.html", - "doc_type":"api", - "p_code":"12", - "code":"17" - }, - { - "desc":"This API is used to obtain the cluster access information. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the permission to query the", - "product_code":"ucs", - "title":"Obtaining Cluster Access Information", - "uri":"ShowClusterAccessInfo.html", - "doc_type":"api", - "p_code":"12", - "code":"18" - }, - { - "desc":"This API is used to activate a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permission on the corresponding c", - "product_code":"ucs", - "title":"Activating a Cluster", - "uri":"RetryClusterActivation.html", - "doc_type":"api", - "p_code":"12", - "code":"19" - }, - { - "desc":"This API is used to obtain the CCE cluster list of the current tenant.GET /v1/managedclustersStatus code: 200NoneStatus code: 200CCE clusters that are not registered with", - "product_code":"ucs", - "title":"Obtaining the CCE Cluster List of a Tenant", - "uri":"ListManagedClusters.html", - "doc_type":"api", - "p_code":"12", - "code":"20" - }, - { - "desc":"This API is used to query the version list of clusters that can be connected to UCS.GET /v1/config/registeredclusterversionsStatus code: 200NoneStatus code: 200Version li", - "product_code":"ucs", - "title":"Querying the Version List of Clusters That Can Be Connected to UCS", - "uri":"ListRegisteredClusterVersions.html", - "doc_type":"api", - "p_code":"12", - "code":"21" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"ucs", - "title":"Fleets", - "uri":"topic_300000001.html", - "doc_type":"api", - "p_code":"11", - "code":"22" - }, - { - "desc":"This API is used to add a cluster to a fleet.POST /v1/clusters/{clusterid}/joinNoneAdding a cluster to a fleetStatus code: 200The cluster has been added to the fleet.See ", - "product_code":"ucs", - "title":"Adding a Cluster to a Fleet", - "uri":"JoinGroup.html", - "doc_type":"api", - "p_code":"22", - "code":"23" - }, - { - "desc":"This API is used to remove a cluster from a fleet.POST /v1/clusters/{clusterid}/unjoinNoneNoneNoneSee Error Codes.", - "product_code":"ucs", - "title":"Removing a Cluster from a Fleet", - "uri":"LeaveGroup.html", - "doc_type":"api", - "p_code":"22", - "code":"24" - }, - { - "desc":"This API is used to create a fleet. You can select clusters during fleet creation.POST /v1/clustergroupsStatus code: 201Creating a fleet and (optional) adding clusters to", - "product_code":"ucs", - "title":"Creating a Fleet", - "uri":"RegisterClusterGroup.html", - "doc_type":"api", - "p_code":"22", - "code":"25" - }, - { - "desc":"This API is used to delete a fleet. A fleet can only be deleted when there are no clusters in it. To delete a fleet, remove the clusters from the fleet first. The cluster", - "product_code":"ucs", - "title":"Deleting a Fleet", - "uri":"DeleteClusterGroup.html", - "doc_type":"api", - "p_code":"22", - "code":"26" - }, - { - "desc":"This API is used to obtain a fleet.GET /v1/clustergroups/{clustergroupid}Status code: 200NoneStatus code: 200Fleet objectSee Error Codes.", - "product_code":"ucs", - "title":"Obtaining a Fleet", - "uri":"ShowClusterGroup.html", - "doc_type":"api", - "p_code":"22", - "code":"27" - }, - { - "desc":"This API is used to add clusters to a fleet. One or more clusters can be added at the same time. This API cannot be used to remove all or some clusters from a fleet.PUT /", - "product_code":"ucs", - "title":"Adding Clusters to a Fleet", - "uri":"UpdateClusterGroupAssociatedClusters.html", - "doc_type":"api", - "p_code":"22", - "code":"28" - }, - { - "desc":"This API is used to update the description of a fleet. You must have the permissions to update the fleet.PUT /v1/clustergroups/{clustergroupid}/descriptionNoneUpdating fl", - "product_code":"ucs", - "title":"Updating Fleet Description", - "uri":"UpdateClusterGroup.html", - "doc_type":"api", - "p_code":"22", - "code":"29" - }, - { - "desc":"This API is used to obtain the fleet list.GET /v1/clustergroupsStatus code: 200NoneStatus code: 200The fleet list has been obtained.See Error Codes.", - "product_code":"ucs", - "title":"Obtaining the Fleet List", - "uri":"ListClusterGroup.html", - "doc_type":"api", - "p_code":"22", - "code":"30" - }, - { - "desc":"This API is used to enable cluster federation.POST /v1/clustergroups/{clustergroupid}/federationsStatus code: 201container fleet has in enable federation progress.Status ", - "product_code":"ucs", - "title":"Enabling Cluster Federation", - "uri":"EnableFederation.html", - "doc_type":"api", - "p_code":"22", - "code":"31" - }, - { - "desc":"This API is used to disable cluster federation for a fleet.DELETE /v1/clustergroups/{clustergroupid}/federationsNoneNoneStatus code: 200Cluster federation has been disabl", - "product_code":"ucs", - "title":"Disabling Cluster Federation", - "uri":"DisableFederation.html", - "doc_type":"api", - "p_code":"22", - "code":"32" - }, - { - "desc":"This API is used to query the federation enabling progress.GET /v1/clustergroups/{clustergroupid}/federations/progressStatus code: 200NoneStatus code: 200Job for enabling", - "product_code":"ucs", - "title":"Querying Federation Enabling Progress", - "uri":"ShowFederationProgress.html", - "doc_type":"api", - "p_code":"22", - "code":"33" - }, - { - "desc":"This API is used to create a VPC endpoint for connecting to the federation API server and downloading kubeconfig of the federation API server after federation is enabled ", - "product_code":"ucs", - "title":"Creating a Federation Connection and Downloading kubeconfig", - "uri":"CreateFederationCert.html", - "doc_type":"api", - "p_code":"22", - "code":"34" - }, - { - "desc":"This API is used to create a VPC endpoint for connecting to the federation API server after federation is enabled for a fleet.POST /v1/clustergroups/{clustergroupid}/conn", - "product_code":"ucs", - "title":"Creating a Federation Connection", - "uri":"CreateFederationConnection.html", - "doc_type":"api", - "p_code":"22", - "code":"35" - }, - { - "desc":"This API is used to download the kubeconfig after the cluster federation is enabled for a fleet and the federation connection is created.POST /v1/clustergroups/{clustergr", - "product_code":"ucs", - "title":"Downloading Federation kubeconfig", - "uri":"DownloadFederationKubeconfig.html", - "doc_type":"api", - "p_code":"22", - "code":"36" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"ucs", - "title":"Outdated APIs", - "uri":"en-us_topic_0000002551843195.html", - "doc_type":"api", - "p_code":"", - "code":"37" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"ucs", - "title":"UCS Cluster", - "uri":"en-us_topic_0000002551763211.html", - "doc_type":"api", - "p_code":"37", - "code":"38" - }, - { - "desc":"This API is used to associate a cluster with permission policies.PUT /v1/clusters/{clusterid}/associatedrulesNoneAssociating a cluster with permission policiesNoneSee Err", - "product_code":"ucs", - "title":"Associating a Cluster with Permission Policies", - "uri":"UpdateClusterRules.html", - "doc_type":"api", - "p_code":"38", - "code":"39" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"ucs", - "title":"Fleet", - "uri":"en-us_topic_0000002520563224.html", - "doc_type":"api", - "p_code":"37", - "code":"40" - }, - { - "desc":"This API is used to update the permission policies associated with a fleet.PUT /v1/clustergroups/{clustergroupid}/associatedrulesNoneUpdating the permission policies asso", - "product_code":"ucs", - "title":"Updating Permission Policies Associated with a Fleet", - "uri":"UpdateClusterGroupAssociatedRules.html", - "doc_type":"api", - "p_code":"40", - "code":"41" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"ucs", - "title":"Permissions", - "uri":"topic_300000002.html", - "doc_type":"api", - "p_code":"37", - "code":"42" - }, - { - "desc":"This API is used to create a permission policy.POST /v1/permissions/rulesStatus code: 201Creating a permission policyStatus code: 201The UID of the new permission policy ", - "product_code":"ucs", - "title":"Creating a Permission Policy", - "uri":"CreateRule.html", - "doc_type":"api", - "p_code":"42", - "code":"43" - }, - { - "desc":"This API is used to obtain the permission policy list.GET /v1/permissions/rulesStatus code: 200NoneStatus code: 200Permission policy listSee Error Codes.", - "product_code":"ucs", - "title":"Obtaining the Permission Policy List", - "uri":"ListRule.html", - "doc_type":"api", - "p_code":"42", - "code":"44" - }, - { - "desc":"This API is used to delete a permission policy.DELETE /v1/permissions/rules/{ruleid}NoneNoneNoneSee Error Codes.", - "product_code":"ucs", - "title":"Deleting a Permission Policy", - "uri":"DeleteRule.html", - "doc_type":"api", - "p_code":"42", - "code":"45" - }, - { - "desc":"This API is used to update a permission policy.PUT /v1/permissions/rules/{ruleid}NoneUpdating a permission policyNoneSee Error Codes.", - "product_code":"ucs", - "title":"Updating a Permission Policy", - "uri":"UpdateRule.html", - "doc_type":"api", - "p_code":"42", - "code":"46" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"ucs", - "title":"Appendix", - "uri":"ucs_api_0015.html", - "doc_type":"api", - "p_code":"", - "code":"47" - }, - { - "desc":"Normal valuesReturned ValueDescription200 OKThe results of GET and PUT operations are returned as expected.201 CreatedThe results of the POST operation are returned as ex", - "product_code":"ucs", - "title":"Status Codes", - "uri":"ucs_api_0016.html", - "doc_type":"api", - "p_code":"47", - "code":"48" - }, - { - "desc":"If an exception occurs during the execution of an operation request and the request is not processed, an error message is returned. The error message contains the error c", - "product_code":"ucs", - "title":"Error Codes", - "uri":"ErrorCode.html", - "doc_type":"api", - "p_code":"47", - "code":"49" - }, - { - "desc":"A project ID is required for some URLs when an API is called. Therefore, you need to obtain a project ID in advance. Two methods are available:Call an API.Use the console", - "product_code":"ucs", - "title":"Obtaining a Project ID", - "uri":"ucs_api_0018.html", - "doc_type":"api", - "p_code":"47", - "code":"50" - }, - { - "desc":"An account ID is required for some URLs when an API is called. To obtain the account ID, perform the following steps:Register an account and log in to the management cons", - "product_code":"ucs", - "title":"Obtaining an Account ID", - "uri":"ucs_api_0019.html", - "doc_type":"api", - "p_code":"47", - "code":"51" - }, - { - "desc":"AF: AfghanistanAL: AlbaniaDZ: AlgeriaAD: AndorraAO: AngolaAG: Antigua and BarbudaAR: ArgentinaAM: ArmeniaAU: AustraliaAT: AustriaAZ: AzerbaijanBS: BahamasBH: BahrainBD: B", - "product_code":"ucs", - "title":"Country Codes", - "uri":"ucs_api_0022.html", - "doc_type":"api", - "p_code":"47", - "code":"52" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"ucs", - "title":"Cluster Categories and Types", - "uri":"ucs_api_0024.html", - "doc_type":"api", - "p_code":"47", - "code":"53" - } -] \ No newline at end of file diff --git a/docs/ucs/api-ref/CreateFederationCert.html b/docs/ucs/api-ref/CreateFederationCert.html deleted file mode 100644 index 24e3ceace..000000000 --- a/docs/ucs/api-ref/CreateFederationCert.html +++ /dev/null @@ -1,404 +0,0 @@ - - -
This API is used to create a VPC endpoint for connecting to the federation API server and downloading kubeconfig of the federation API server after federation is enabled for a fleet.
-POST /v1/clustergroups/{clustergroupid}/cert
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clustergroupid - |
-Yes - |
-String - |
-Fleet ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
projectID - |
-Yes - |
-String - |
-Project ID - |
-
vpcID - |
-Yes - |
-String - |
-VPC ID, which must belong to the project specified by projectID. - |
-
subnetID - |
-Yes - |
-String - |
-Subnet ID, which must belong to the VPC specified by vpcID. - |
-
duration - |
-Yes - |
-Integer - |
-Validity period of the certificate in kubeconfig, in days. -Minimum value: 1 -Maximum value: 1825 - |
-
Status code: 201
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kind - |
-String - |
-API type. The value is fixed at Config and cannot be changed. - |
-
apiVersion - |
-String - |
-API version. The value is fixed at v1 and cannot be changed. - |
-
clusters - |
-Array of NamedCluster objects - |
-Cluster list - |
-
users - |
-Array of NamedAuthInfo objects - |
-Certificate information and client key information of specified users - |
-
contexts - |
-Array of NamedContext objects - |
-Context list - |
-
current-context - |
-String - |
-Current context - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
name - |
-String - |
-Cluster name - |
-
cluster - |
-ClusterCert object - |
-Cluster information - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
server - |
-String - |
-Server address - |
-
certificate-authority-data - |
-String - |
-Certificate authorization data - |
-
insecure-skip-tls-verify - |
-String - |
-Whether to skip server certificate verification - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
name - |
-String - |
-Username - |
-
user - |
-AuthInfo object - |
-Certificate information and client key information of a specified user - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
client-certificate-data - |
-String - |
-Client certificate - |
-
client-key-data - |
-String - |
-PEM encoding data from the TLS client key file - |
-
token - |
-String - |
-Authentication token - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
name - |
-String - |
-Context name - |
-
context - |
-Context object - |
-Context information - |
-
Creating a federation connection and downloading kubeconfig
-{
- "projectID" : "08d44be1ef00d22e2f6fc0061f54a2f1",
- "vpcID" : "11c9fe72-5a90-4295-bcfe-774726fb9066",
- "subnetID" : "0de91d89-1e06-4e24-b371-35d5d3d3779b",
- "duration" : 30
-}
-Example Responses
-Status code: 201
-kubeconfig file
-{
- "kind" : "Config",
- "apiVersion" : "v1",
- "clusters" : [ {
- "name" : "cluster-demo",
- "cluster" : {
- "server" : "https://ip:port",
- "certificate-authority-data" : ""
- }
- } ],
- "users" : [ {
- "name" : "user",
- "user" : {
- "client-certificate-data" : "",
- "client-key-data" : "",
- "token" : ""
- }
- } ],
- "contexts" : [ {
- "name" : "demo",
- "context" : {
- "cluster" : "cluster-demo",
- "user" : "user"
- }
- } ],
- "current-context" : "demo"
-}
-Status Code - |
-Description - |
-
|---|---|
201 - |
-kubeconfig file - |
-
See Error Codes.
-This API is used to create a VPC endpoint for connecting to the federation API server after federation is enabled for a fleet.
-POST /v1/clustergroups/{clustergroupid}/connection
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clustergroupid - |
-Yes - |
-String - |
-Fleet ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
projectID - |
-Yes - |
-String - |
-Project ID - |
-
vpcID - |
-Yes - |
-String - |
-VPC ID, which must belong to the project specified by projectID. - |
-
subnetID - |
-Yes - |
-String - |
-Network ID of the subnet. The subnet must be in the VPC specified by vpcID. - |
-
Status code: 201
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
id - |
-String - |
-VPC endpoint ID - |
-
ip - |
-String - |
-IP address of the VPC endpoint - |
-
dnsNames - |
-Array of strings - |
-Domain names of VPC endpoint services - |
-
Creating a federation connection
-{
- "projectID" : "08d44be1ef00d22e2f6fc0061f54a2f1",
- "vpcID" : "11c9fe72-5a90-4295-bcfe-774726fb9066",
- "subnetID" : "0de91d89-1e06-4e24-b371-35d5d3d3779b"
-}
-Status code: 201
-The federation API server has been connected using a VPC endpoint.
-{
- "id" : "a02c4097-ff39-4d76-b9e3-743b7f400d01"
- "ip" : "192.168.1.116"
- "dnsNames" : "test-ucs-fleet.fleet.ucs.eu-de.com"
-}
-Status Code - |
-Description - |
-
|---|---|
201 - |
-The federation API server has been connected using a VPC endpoint. - |
-
See Error Codes.
-This API is used to create a permission policy.
-POST /v1/permissions/rules
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Identity authentication information -Minimum length: 1 -Maximum length: 16384 - |
-
Content-Type - |
-Yes - |
-String - |
-Request body type or format - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
metadata - |
-Yes - |
-CreateRuleObjectMeta object - |
-Basic information about the permission policy. Metadata is a collection of attributes. - |
-
spec - |
-Yes - |
-RuleSpec object - |
-Details about the permission policy. UCS creates or updates the permission policy by spec. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
name - |
-Yes - |
-String - |
-Permission policy name -Minimum length: 1 -Maximum: 63 - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
iamuserids - |
-No - |
-Array of strings - |
-Information of IAM users associated with a permission policy - |
-
type - |
-No - |
-String - |
-Permission policy type. The value can be readonly, develop, admin, or custom. - |
-
contents - |
-No - |
-Array of Content objects - |
-Permission policy content - |
-
description - |
-No - |
-String - |
-Permission policy description -Minimum length: 0 -Maximum length: 255 - |
-
Status code: 201
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
uid - |
-String - |
-Permission policy UID - |
-
Creating a permission policy
-{
- "metadata" : {
- "name" : "xxxxx"
- },
- "spec" : {
- "type" : "admin",
- "iamUserIDs" : [ "xxxxx" ]
- }
-}
-Status code: 201
-The UID of the new permission policy has been returned.
-{
- "uid" : "xxxx-xxxx-xxxx-xxxx"
-}
-Status Code - |
-Description - |
-
|---|---|
201 - |
-The UID of the new permission policy has been returned. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to unregister a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permissions on the corresponding cluster. Otherwise, the authentication fails.
-DELETE /v1/clusters/{clusterid}
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clusterid - |
-Yes - |
-String - |
-Cluster ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
Status code: 200
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
- - |
-String - |
-The cluster has been unregistered. - |
-
Status code: 400
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
- - |
-String - |
-- - |
-
Status code: 404
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
- - |
-String - |
-- - |
-
Status code: 500
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
- - |
-String - |
-- - |
-
None
-Status code: 200
-The cluster has been unregistered.
-{ }
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The cluster has been unregistered. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
404 - |
-Resources not found. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to delete a fleet. A fleet can only be deleted when there are no clusters in it. To delete a fleet, remove the clusters from the fleet first. The cluster IDs must comply with the Kubernetes UUID format rules, and you must have operation permissions on the clusters. Otherwise, the authentication fails.
-DELETE /v1/clustergroups/{clustergroupid}
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clustergroupid - |
-Yes - |
-String - |
-Fleet ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
None
-None
-Status code: 200
-The fleet has been deleted.
-{ }
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The fleet has been deleted. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
404 - |
-Resources not found. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to delete a permission policy.
-DELETE /v1/permissions/rules/{ruleid}
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
ruleid - |
-Yes - |
-String - |
-Permission policy ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Identity authentication information -Minimum length: 1 -Maximum length: 16384 - |
-
Content-Type - |
-Yes - |
-String - |
-Request body type or format - |
-
None
-None
-None
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The permission policy has been deleted. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to disable cluster federation for a fleet.
-DELETE /v1/clustergroups/{clustergroupid}/federations
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clustergroupid - |
-Yes - |
-String - |
-Fleet ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
None
-None
-Status code: 200
-Cluster federation has been disabled.
-{ }
-Status Code - |
-Description - |
-
|---|---|
200 - |
-Cluster federation has been disabled. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
404 - |
-Resources not found. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to download the kubeconfig after the cluster federation is enabled for a fleet and the federation connection is created.
-POST /v1/clustergroups/{clustergroupid}/kubeconfig
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clustergroupid - |
-Yes - |
-String - |
-Fleet ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
duration - |
-Yes - |
-Integer - |
-Validity period of the certificate in kubeconfig -Minimum value: 1 -Maximum value: 1825 - |
-
Status code: 201
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kind - |
-String - |
-API type. The value is fixed at Config and cannot be changed. - |
-
apiVersion - |
-String - |
-API version. The value is fixed at v1 and cannot be changed. - |
-
clusters - |
-Array of NamedCluster objects - |
-Cluster list - |
-
users - |
-Array of NamedAuthInfo objects - |
-Certificate information and client key information of specified users - |
-
contexts - |
-Array of NamedContext objects - |
-Context list - |
-
current-context - |
-String - |
-Current context - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
name - |
-String - |
-Cluster name - |
-
cluster - |
-ClusterCert object - |
-Cluster information - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
server - |
-String - |
-Server address - |
-
certificate-authority-data - |
-String - |
-Certificate authorization data - |
-
insecure-skip-tls-verify - |
-String - |
-Whether to skip server certificate verification - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
name - |
-String - |
-Username - |
-
user - |
-AuthInfo object - |
-Certificate information and client key information of a specified user - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
client-certificate-data - |
-String - |
-Client certificate - |
-
client-key-data - |
-String - |
-PEM encoding data from the TLS client key file - |
-
token - |
-String - |
-Authentication token - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
name - |
-String - |
-Context name - |
-
context - |
-Context object - |
-Context information - |
-
Downloading federation kubeconfig
-{
- "duration" : 30
-}
-Status code: 201
-kubeconfig file
-{
- "kind" : "Config",
- "apiVersion" : "v1",
- "clusters" : [ {
- "name" : "cluster-demo",
- "cluster" : {
- "server" : "https://ip:port",
- "certificate-authority-data" : ""
- }
- } ],
- "users" : [ {
- "name" : "user",
- "user" : {
- "client-certificate-data" : "",
- "client-key-data" : "",
- "token" : ""
- }
- } ],
- "contexts" : [ {
- "name" : "demo",
- "context" : {
- "cluster" : "cluster-demo",
- "user" : "user"
- }
- } ],
- "current-context" : "demo"
-}
-Status Code - |
-Description - |
-
|---|---|
201 - |
-kubeconfig file - |
-
See Error Codes.
-This API is used to enable cluster federation.
-POST /v1/clustergroups/{clustergroupid}/federations
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clustergroupid - |
-Yes - |
-String - |
-Fleet ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
retryjoinall - |
-No - |
-Boolean - |
-Whether to retry adding the cluster to the federation. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
Status code: 201
-container fleet has in enable federation progress.
-Status code: 400
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
- - |
-String - |
-- - |
-
Status code: 404
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
- - |
-String - |
-- - |
-
Status code: 500
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
- - |
-String - |
-- - |
-
None
-Status code: 201
-Cluster federation has been enabled.
-{ }
-Status Code - |
-Description - |
-
|---|---|
201 - |
-Cluster federation has been enabled. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
404 - |
-Resources not found. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-If an exception occurs during the execution of an operation request and the request is not processed, an error message is returned. The error message contains the error code and description. Table 1 lists the common error codes and error messages. You can rectify the errors following the description.
- -Error Code - |
-Status Code - |
-Error Message - |
-Description - |
-
|---|---|---|---|
UCS.00000001 - |
-400 - |
-Failed to obtain the user information. - |
-Failed to obtain the user information. - |
-
UCS.00000003 - |
-400 - |
-Failed to obtain the federation information. - |
-Failed to obtain the federation information. - |
-
UCS.00000004 - |
-403 - |
-Request forbidden. - |
-Forbidden request. - |
-
UCS.00000005 - |
-500 - |
-Database operation failed. - |
-Failed to operate the database. - |
-
UCS.00000006 - |
-500 - |
-Server internal error. - |
-Internal server error. - |
-
UCS.00000007 - |
-500 - |
-Data transform error. - |
-Data conversion failed. - |
-
UCS.00000008 - |
-500 - |
-Error add event. - |
-Failed to add the event. - |
-
UCS.00000009 - |
-500 - |
-Data unmarshal error. - |
-Failed to deserialize data. - |
-
UCS.00000010 - |
-500 - |
-Data marshal error. - |
-Failed to serialize data. - |
-
UCS.00000011 - |
-400 - |
-Bad query parameter value. - |
-Invalid request parameter. - |
-
UCS.00000012 - |
-400 - |
-Invalid request body. - |
-Invalid request body. - |
-
UCS.00000013 - |
-404 - |
-No requested resources found. - |
-The requested resource cannot be found. - |
-
UCS.00000014 - |
-500 - |
-Failed to encrypt data. - |
-Data encryption failed. - |
-
UCS.00000015 - |
-500 - |
-Failed to decrypt data. - |
-Data decryption failed. - |
-
UCS.00000016 - |
-400 - |
-Invalid header value. - |
-Invalid request header. - |
-
UCS.00000017 - |
-400 - |
-Insufficient quota - |
-Insufficient quota. - |
-
UCS.00000018 - |
-401 - |
-Authorization failed. - |
-Authorization failed. - |
-
UCS.00010001 - |
-500 - |
-Failed to get iam connection. - |
-IAM connection failed. - |
-
UCS.00010002 - |
-403 - |
-Sub-user has no authority to create agency. - |
-The IAM user does not have the permission for creating an agency. - |
-
UCS.00010003 - |
-400 - |
-Failed to create agency. - |
-Failed to create an agency. - |
-
UCS.00010004 - |
-500 - |
-Failed to get role id for te_admin. - |
-Failed to obtain the te_admin role. - |
-
UCS.00010005 - |
-500 - |
-Failed to get admin token from iam. - |
-Failed to obtain the admin token. - |
-
UCS.00010006 - |
-500 - |
-Failed to get agency list from iam. - |
-Failed to obtain the agency list. - |
-
UCS.00010007 - |
-500 - |
-Failed to get agency grants from iam. - |
-Failed to obtain the agency grants. - |
-
UCS.00010008 - |
-500 - |
-Failed to update agency role. - |
-Failed to update the agency role. - |
-
UCS.00010009 - |
-400 - |
-Failed to get project token by agency - |
-Failed to obtain the project token through the agency. - |
-
UCS.00010010 - |
-400 - |
-Failed to get op_svc account domain token - |
-Failed to obtain the token of the op account. - |
-
UCS.00010011 - |
-400 - |
-Failed to get project id by project name. - |
-Failed to obtain the project ID. - |
-
UCS.00010012 - |
-400 - |
-IAM agency quota insufficient, please expand agency quota - |
-IAM agency quota exceeded. - |
-
UCS.00010013 - |
-400 - |
-fail to get iam pdp authorize result - |
-Failed to obtain the PDP authentication result. - |
-
UCS.00010014 - |
-403 - |
-iam pdp authentication denied - |
-PDP authentication rejected. - |
-
UCS.00010015 - |
-403 - |
-iam rbac authentication denied - |
-RBAC authentication rejected. - |
-
UCS.00020001 - |
-500 - |
-Failed to get aeskey. - |
-Failed to obtain the aeskey. - |
-
UCS.00020002 - |
-500 - |
-Failed to get certs. - |
-Failed to obtain the certificate. - |
-
UCS.00020003 - |
-500 - |
-Failed to create certs. - |
-Failed to create the certificate. - |
-
UCS.00020003 - |
-500 - |
-Failed to delete certs. - |
-Failed to delete the certificate. - |
-
UCS.00030001 - |
-404 - |
-Cluster Not Found. - |
-No clusters found. - |
-
UCS.00030002 - |
-400 - |
-Failed to obtain the cluster information. - |
-Failed to obtain the cluster information. - |
-
UCS.00030003 - |
-400 - |
-Failed to get resourceJob info with cluster status - |
-Failed to obtain the resource job. - |
-
UCS.00040001 - |
-400 - |
-Failed to obtain the mesh information. - |
-Failed to obtain the mesh information. - |
-
UCS.00090001 - |
-500 - |
-Failed to create DNSRecord - |
-Failed to create the record set. - |
-
UCS.00100001 - |
-400 - |
-Failed to publish message to smn. - |
-Failed to publish messages to SMN. - |
-
UCS.00100002 - |
-400 - |
-smn topic error. - |
-Invalid SMN topic. - |
-
UCS.00100003 - |
-400 - |
-smn subscription error. - |
-SMN subscription error. - |
-
UCS.00110001 - |
-400 - |
-SDR failed to get billing raw data - |
-Failed to obtain billing data. - |
-
UCS.00110002 - |
-400 - |
-Formatting raw billing data to SDR format error - |
-Failed to format billing data. - |
-
UCS.00120001 - |
-400 - |
-CBC failed to update resources status - |
-Failed to update the CBC resource status. - |
-
UCS.00130001 - |
-400 - |
-Get UCS Agency info error - |
-Failed to obtain the UCS agency. - |
-
UCS.00140001 - |
-400 - |
-Create ClusterRole failed - |
-Failed to create a ClusterRole. - |
-
UCS.00140002 - |
-400 - |
-Delete ClusterRole failed - |
-Failed to delete a ClusterRole. - |
-
UCS.00140003 - |
-400 - |
-Update ClusterRole failed - |
-Failed to update a ClusterRole. - |
-
UCS.00140004 - |
-400 - |
-Get ClusterRole failed - |
-Failed to obtain the ClusterRole information. - |
-
UCS.00140005 - |
-400 - |
-Create ClusterRoleBinding failed - |
-Failed to create a ClusterRoleBinding. - |
-
UCS.00140006 - |
-400 - |
-Delete ClusterRoleBinding failed - |
-Failed to delete a ClusterRoleBinding. - |
-
UCS.00140007 - |
-400 - |
-Update ClusterRoleBinding failed - |
-Failed to update a ClusterRoleBinding. - |
-
UCS.00140008 - |
-400 - |
-Get ClusterRoleBinding failed - |
-Failed to obtain the ClusterRoleBinding information. - |
-
UCS.00140009 - |
-400 - |
-Create Role failed - |
-Failed to create a role. - |
-
UCS.00140010 - |
-400 - |
-Delete Role failed - |
-Failed to delete a role. - |
-
UCS.00140011 - |
-400 - |
-Update Role failed - |
-Failed to update a role. - |
-
UCS.00140012 - |
-400 - |
-Get Role failed - |
-Failed to obtain the role information. - |
-
UCS.00140013 - |
-400 - |
-Create RoleBinding failed - |
-Failed to create a RoleBinding. - |
-
UCS.00140014 - |
-400 - |
-Delete RoleBinding failed - |
-Failed to delete a RoleBinding. - |
-
UCS.00140015 - |
-400 - |
-Update RoleBinding failed - |
-Failed to update a RoleBinding. - |
-
UCS.00140016 - |
-400 - |
-Get RoleBinding failed - |
-Failed to obtain the RoleBinding information. - |
-
UCS.00150001 - |
-400 - |
-Cluster policy validate failed. - |
-Cluster policy verification failed. - |
-
UCS.00150002 - |
-400 - |
-ClusterGroup policy validate failed. - |
-Cluster group policy verification failed. - |
-
UCS.00150003 - |
-400 - |
-Cluster has enable policy. - |
-The policy has been enabled for the cluster. - |
-
UCS.00150004 - |
-400 - |
-ClusterGroup has enable policy. - |
-The policy has been enabled for the cluster group. - |
-
UCS.00150005 - |
-400 - |
-Cluster not enable policy. - |
-The policy is not enabled for the cluster. - |
-
UCS.00150006 - |
-400 - |
-ClusterGroup not enable policy. - |
-The policy is not enabled for the cluster group. - |
-
UCS.00150007 - |
-500 - |
-Get policy job failed. - |
-Failed to obtain the policy task. - |
-
UCS.01000001 - |
-400 - |
-Failed to obtain the user information. - |
-Failed to obtain the user information. - |
-
UCS.01000002 - |
-429 - |
-The throttling threshold has been reached. - |
-Throttling threshold reached. - |
-
UCS.01000003 - |
-401 - |
-Authorization failed. - |
-Authorization failed. - |
-
UCS.01000004 - |
-403 - |
-Request forbidden. - |
-Forbidden request. - |
-
UCS.01000005 - |
-500 - |
-Database operation failed. - |
-Failed to operate the database. - |
-
UCS.01000006 - |
-500 - |
-Server internal error. - |
-Internal server error. - |
-
UCS.01000007 - |
-500 - |
-Data transform error. - |
-Data conversion failed. - |
-
UCS.01000008 - |
-500 - |
-Error add event. - |
-Failed to add the event. - |
-
UCS.01000009 - |
-500 - |
-Data unmarshal error. - |
-Failed to deserialize data. - |
-
UCS.01000010 - |
-500 - |
-Data marshal error. - |
-Failed to serialize data. - |
-
UCS.01000011 - |
-400 - |
-Bad query parameter value. - |
-Invalid request parameter. - |
-
UCS.01000012 - |
-400 - |
-Invalid request body. - |
-Invalid request body. - |
-
UCS.01000013 - |
-404 - |
-No requested resources found. - |
-The requested resource cannot be found. - |
-
UCS.01000014 - |
-500 - |
-Failed to encrypt data. - |
-Data encryption failed. - |
-
UCS.01000015 - |
-500 - |
-Failed to decrypt data. - |
-Data decryption failed. - |
-
UCS.01000016 - |
-400 - |
-Invalid header value. - |
-Invalid request header. - |
-
UCS.01000017 - |
-400 - |
-Insufficient quota - |
-Insufficient quota. - |
-
UCS.01000018 - |
-400 - |
-Quota info validate failed - |
-Quota parameter verification failed. - |
-
UCS.01000019 - |
-500 - |
-Quota update failed - |
-Quota update failed. - |
-
UCS.01010001 - |
-500 - |
-Failed to get iam connection. - |
-IAM connection failed. - |
-
UCS.01010002 - |
-500 - |
-Failed to get project token by agency - |
-Failed to obtain the project token through the agency. - |
-
UCS.01010003 - |
-403 - |
-No access permission. Please contact the administrator. - |
-No permissions. - |
-
UCS.01010004 - |
-400 - |
-get deployment region's projectID error - |
-Failed to obtain the project ID. - |
-
UCS.01010005 - |
-400 - |
-get IAM agency's token error - |
-Failed to obtain the agency token. - |
-
UCS.01010006 - |
-400 - |
-fail to get iam pdp authorize result - |
-Failed to obtain the PDP authentication result. - |
-
UCS.01010007 - |
-403 - |
-iam pdp authentication denied - |
-PDP authentication rejected. - |
-
UCS.01010008 - |
-403 - |
-iam rbac authentication denied - |
-RBAC authentication rejected. - |
-
UCS.01020001 - |
-500 - |
-Failed to get aeskey. - |
-Failed to obtain the aeskey. - |
-
UCS.01020002 - |
-500 - |
-Failed to get certs. - |
-Failed to obtain the certificate. - |
-
UCS.01020003 - |
-500 - |
-Failed to create certs. - |
-Failed to create the certificate. - |
-
UCS.01020004 - |
-500 - |
-Failed to delete certs. - |
-Failed to delete the certificate. - |
-
UCS.01030001 - |
-404 - |
-Cluster Not Found. - |
-No clusters found. - |
-
UCS.01030002 - |
-400 - |
-Failed to obtain the cluster information. - |
-Failed to obtain the cluster information. - |
-
UCS.01030003 - |
-409 - |
-The same cluster already exists. - |
-The cluster name already exists. - |
-
UCS.01030004 - |
-400 - |
-Cluster status is unavailable, please fix cluster first. - |
-The cluster is unavailable. - |
-
UCS.01030005 - |
-403 - |
-No authorization for cluster - |
-Failed to authorize the cluster. - |
-
UCS.01030006 - |
-400 - |
-Create resource job for cluster error - |
-Failed to create a resource job in the cluster. - |
-
UCS.01030007 - |
-400 - |
-Create on-demand order for cluster error - |
-Failed to create the pay-per-use order. - |
-
UCS.01030008 - |
-400 - |
-Cluster kubeconfig format error. - |
-Incorrect kubeconfig format of the cluster. - |
-
UCS.01030009 - |
-400 - |
-This cluster does not support unregister - |
-The cluster does not support unregistration. - |
-
UCS.01030010 - |
-400 - |
-Failed to obtain cce cluster information. - |
-Failed to obtain the CCE cluster information. - |
-
UCS.01030011 - |
-400 - |
-Cluster category not supported - |
-The cluster type is not supported. - |
-
UCS.01030012 - |
-400 - |
-Register cce cluster error - |
-Failed to register the CCE cluster. - |
-
UCS.01030013 - |
-400 - |
-Register attached cluster error - |
-Failed to register the attached cluster. - |
-
UCS.01030014 - |
-400 - |
-Register on-premise cluster error - |
-Failed to register the on-premises cluster. - |
-
UCS.01030015 - |
-100 - |
-Register multi cloud cluster error - |
-Failed to register the multi-cloud cluster. - |
-
UCS.01030016 - |
-400 - |
-Cluster has been frozen - |
-The cluster has been frozen. - |
-
UCS.01050001 - |
-400 - |
-RecordSet create failed. - |
-Failed to create the record set. - |
-
UCS.01080001 - |
-400 - |
-Failed to obtain the federation information. - |
-Failed to obtain the federation information. - |
-
UCS.01080002 - |
-400 - |
-Cluster group has federalized. - |
-Federation has been enabled for the fleet. - |
-
UCS.01080003 - |
-500 - |
-Cluster group federation failed. - |
-Federation operation failed. - |
-
UCS.01080004 - |
-400 - |
-Cluster group federation validate failed. - |
-Failed to enable federation verification. - |
-
UCS.01080005 - |
-400 - |
-Retry join all clusters to federation failed. - |
-Failed to federate all clusters again. - |
-
UCS.01080006 - |
-400 - |
-Cluster group has not been federalized. - |
-Federation is not enabled for the fleet. - |
-
UCS.01080007 - |
-400 - |
-Retry join cluster to federation failed. - |
-Failed to add the cluster to the federation again. - |
-
UCS.01090001 - |
-400 - |
-Failed to obtain the mesh information. - |
-Failed to obtain the mesh information. - |
-
UCS.01100001 - |
-403 - |
-No authorization for cluster group - |
-The fleet is not authorized. - |
-
UCS.01100002 - |
-400 - |
-associate cluster with clustergroup error - |
-Failed to add the cluster to the fleet. - |
-
UCS.01100003 - |
-400 - |
-associate cluster with rule error - |
-Failed to associate the permission policy with the fleet. - |
-
UCS.01100004 - |
-409 - |
-The same clustergroup already exists. - |
-The fleet name already exists. - |
-
UCS.01100005 - |
-404 - |
-ClusterGroup Not Found. - |
-The fleet does not exist. - |
-
UCS.01100006 - |
-400 - |
-Cluster number in fleet exceed limit. - |
-Too many clusters in the fleet. - |
-
UCS.01100007 - |
-400 - |
-Update associated clusters validate failed - |
-Failed to verify the update of the associated cluster. - |
-
UCS.01110001 - |
-400 - |
-resource notification to SMN error - |
-Failed to send notifications to SMN. - |
-
UCS.01120001 - |
-400 - |
-Create ClusterRole failed - |
-Failed to create a ClusterRole. - |
-
UCS.01120002 - |
-400 - |
-Delete ClusterRole failed - |
-Failed to delete a ClusterRole. - |
-
UCS.01120003 - |
-400 - |
-Update ClusterRole failed - |
-Failed to update a ClusterRole. - |
-
UCS.01120004 - |
-400 - |
-Get ClusterRole failed - |
-Failed to obtain the ClusterRole information. - |
-
UCS.01120005 - |
-400 - |
-Create ClusterRoleBinding failed - |
-Failed to create a ClusterRoleBinding. - |
-
UCS.01120006 - |
-400 - |
-Delete ClusterRoleBinding failed - |
-Failed to delete a ClusterRoleBinding. - |
-
UCS.01120007 - |
-400 - |
-Update ClusterRoleBinding failed - |
-Failed to update a ClusterRoleBinding. - |
-
UCS.01120008 - |
-400 - |
-Get ClusterRoleBinding failed - |
-Failed to obtain the ClusterRoleBinding information. - |
-
UCS.01120009 - |
-400 - |
-Create Role failed - |
-Failed to create a role. - |
-
UCS.01120010 - |
-400 - |
-Delete Role failed - |
-Failed to delete a role. - |
-
UCS.01120011 - |
-400 - |
-Update Role failed - |
-Failed to update a role. - |
-
UCS.01120012 - |
-400 - |
-Get Role failed - |
-Failed to obtain the role information. - |
-
UCS.01120013 - |
-400 - |
-Create RoleBinding failed - |
-Failed to create a RoleBinding. - |
-
UCS.01120014 - |
-400 - |
-Delete RoleBinding failed - |
-Failed to delete a RoleBinding. - |
-
UCS.01120015 - |
-400 - |
-Update RoleBinding failed - |
-Failed to update a RoleBinding. - |
-
UCS.01120016 - |
-400 - |
-Get RoleBinding failed - |
-Failed to obtain the RoleBinding information. - |
-
UCS.01130001 - |
-400 - |
-policy management create reconcile job failed - |
-Failed to create a coordination job in policy management. - |
-
UCS.01130002 - |
-400 - |
-policy management create disable job failed - |
-Failed to create a disabling job in policy management. - |
-
UCS.01130003 - |
-400 - |
-cluster policy validate failed. - |
-Cluster policy verification failed. - |
-
UCS.01130004 - |
-400 - |
-clusterGroup policy validate failed. - |
-Cluster group policy verification failed. - |
-
UCS.01130005 - |
-400 - |
-cluster policy management is in installing or closing status - |
-Cluster policy management is being installed or has been disabled. - |
-
UCS.01130006 - |
-400 - |
-cluster group policy management is in installing or closing status - |
-Cluster group policy management is being installed or has been disabled. - |
-
This API is used to add a cluster to a fleet.
-POST /v1/clusters/{clusterid}/join
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clusterid - |
-Yes - |
-String - |
-Cluster ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clusterGroupID - |
-No - |
-String - |
-ID of the fleet that the cluster will be added to - |
-
None
-Adding a cluster to a fleet
-{
- "clustergroupID" : "49077339-f1cd-11ec-a2be-0255ac1001c2"
-}
-Status code: 200
-The cluster has been added to the fleet.
-{ }
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The cluster has been added to the fleet. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to remove a cluster from a fleet.
-POST /v1/clusters/{clusterid}/unjoin
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clusterid - |
-Yes - |
-String - |
-Cluster ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
None
-None
-None
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The cluster has been removed from the fleet. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
404 - |
-Resources not found. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to obtain the fleet list.
-GET /v1/clustergroups
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
limit - |
-No - |
-Integer - |
-The number of records allowed on each page when the list is queried by page. The default value is -1. - |
-
offset - |
-No - |
-Integer - |
-Start offset when the list is queried by page. The default value is 0. - |
-
order_by - |
-No - |
-String - |
-Sorting parameter when the list is queried by page. The value can be create_at or update_at. - |
-
order - |
-No - |
-String - |
-Sorting order when the list is queried by page. The value can be desc or asc. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Status code: 200
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
items - |
-Array of ClusterGroup objects - |
-Fleet list - |
-
total - |
-Integer - |
-Total number of records on all pages - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kind - |
-String - |
-API type. The value is fixed at ClusterGroup and cannot be changed. - |
-
apiVersion - |
-String - |
-API version. The value is fixed at v1 and cannot be changed. - |
-
metadata - |
-ObjectMeta object - |
-Basic information about the fleet. Metadata is a collection of attributes. - |
-
spec - |
-ClusterGroupSpec object - |
-Details about the fleet. UCS creates or updates the fleet based on spec. - |
-
status - |
-ClusterGroupStatus object - |
-Fleet status - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
uid - |
-String - |
-Cluster ID - |
-
name - |
-String - |
-Cluster name - |
-
labels - |
-Map<String,String> - |
-Labels - |
-
creationTimestamp - |
-String - |
-Creation time. It is the UTC time in the RFC 3339 format. - |
-
updateTimestamp - |
-String - |
-Update timestamp - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
ruleNamespaces - |
-Array of strings - |
-List of namespaces associated with a permission policy - |
-
federationId - |
-String - |
-ID of the federation enabled for the fleet - |
-
description - |
-String - |
-Description - |
-
dnsSuffix - |
-Array of strings - |
-DNS suffix of the federation corresponding to the fleet. This parameter is visible after federation is enabled. - |
-
federationExpirationTimestamp - |
-String - |
-Federation expiration timestamp - |
-
policyId - |
-String - |
-Policy management ID - |
-
federationVersion - |
-String - |
-Version of the federation enabled for the fleet - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
conditions - |
-Array of ClusterGroupCondition objects - |
-Federation or permission policy information for the fleet - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
type - |
-String - |
-Type. Options: - - |
-
status - |
-String - |
-Status of the federation or permission policy enabled for a fleet - |
-
reason - |
-String - |
-Cause of a status - |
-
message - |
-String - |
-Status information - |
-
lastTransitionTime - |
-String - |
-Status update time - |
-
None
-Status code: 200
-The fleet list has been obtained.
-{
- "items" : [ {
- "kind" : "ClusterGroup",
- "apiVersion" : "v1",
- "metadata" : {
- "name" : "cluster-test",
- "uid" : "bffbb35b-7949-11ee-886c-0255ac100037",
- "creationTimestamp" : "2023-11-02 06:33:35.558128 +0000 UTC",
- "updateTimestamp" : "2023-11-14 06:20:20.446476 +0000 UTC"
- },
- "spec" : {
- "federationId" : "e2f27cc6-82b5-11ee-84e3-0255ac100032",
- "federationVersion" : "v1.7.0-t1109",
- "dnsSuffix" : [ "www.oidc.com" ]
- },
- "status" : {
- "conditions" : [ {
- "type" : "Federation",
- "status" : "Unavailable",
- "reason" : "FederationUnavailable",
- "message" : "component volcano-scheduler is unhealthy",
- "lastTransitionTime" : "0001-01-01T00:00:00Z"
- } ]
- }
- }, {
- "kind" : "ClusterGroup",
- "apiVersion" : "v1",
- "metadata" : {
- "name" : "cluster-dev",
- "uid" : "4557ad49-22bf-11ee-b0c9-0255ac10004b",
- "creationTimestamp" : "2023-07-15 03:25:39.253589 +0000 UTC",
- "updateTimestamp" : "2023-10-19 11:52:14.509405 +0000 UTC"
- },
- "spec" : { },
- "status" : { }
- }, {
- "kind" : "ClusterGroup",
- "apiVersion" : "v1",
- "metadata" : {
- "name" : "test0131",
- "uid" : "108f5981-a105-11ed-a23e-0255ac100032",
- "creationTimestamp" : "2023-01-31 01:17:44.309185 +0000 UTC",
- "updateTimestamp" : "2023-06-29 01:02:28.78095 +0000 UTC"
- },
- "spec" : { },
- "status" : { }
- } ],
- "total" : 3
-}
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The fleet list has been obtained. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to obtain the CCE cluster list of the current tenant.
-GET /v1/managedclusters
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
unimported - |
-No - |
-Boolean - |
-Whether to register a cluster with UCS - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Status code: 200
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
[Array] - |
-Array of Cluster objects - |
-CCE clusters that are not registered with UCS are returned. - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kind - |
-String - |
-API type. The value is fixed at Cluster and cannot be changed. - |
-
apiVersion - |
-String - |
-API version. The value is fixed at v1 and cannot be changed. - |
-
metadata - |
-ObjectMeta object - |
-Basic information about the cluster. Metadata is a collection of attributes. - |
-
spec - |
-ClusterSpec object - |
-Detailed description of the cluster. UCS creates or updates the cluster based on spec. - |
-
status - |
-ClusterStatus object - |
-Cluster 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. - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
syncMode - |
-String - |
-Synchronization mode between the cluster and the Karmada control plane - |
-
clusterGroupID - |
-String - |
-Fleet ID - |
-
manageType - |
-String - |
-Cluster type. The options are as follows: -
|
-
ruleNamespaces - |
-Array of RuleNamespace objects - |
-List of namespaces associated with permission policies in a cluster - |
-
apiEndpoint - |
-String - |
-API server address - |
-
secretRef - |
-LocalSecretReference object - |
-Secret information for accessing a cluster - |
-
insecureSkipTLSVerification - |
-Boolean - |
-Whether to skip HTTPS verification - |
-
proxyURL - |
-String - |
-Proxy URL - |
-
provider - |
-String - |
-Provider - |
-
type - |
-String - |
-Type - |
-
category - |
-String - |
-Category - |
-
enableDistMgt - |
-Boolean - |
-Whether CCE Turbo clusters can manage edge infrastructure - |
-
region - |
-String - |
-Region - |
-
country - |
-String - |
-Country - |
-
city - |
-String - |
-City (consistent with the country) - |
-
projectID - |
-String - |
-Project ID - |
-
projectName - |
-String - |
-Project name - |
-
zone - |
-String - |
-Zone - |
-
taints - |
-Array of Taint objects - |
-Taints - |
-
IsDownloadedCert - |
-Boolean - |
-Whether the certificate has been downloaded - |
-
policyId - |
-String - |
-Policy management ID - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
rules - |
-Array of RuleInfo objects - |
-Permission policy list - |
-
namespaces - |
-Array of strings - |
-Namespace list - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
ruleID - |
-String - |
-Permission policy ID - |
-
ruleName - |
-String - |
-Permission policy name - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
namespace - |
-String - |
-Namespace that the resource belongs to - |
-
name - |
-String - |
-Resource name - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
key - |
-String - |
-Key - |
-
value - |
-String - |
-Value - |
-
effect - |
-String - |
-Effect information - |
-
timeadded - |
-String - |
-Timestamp information - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kubernetesVersion - |
-String - |
-Kubernetes version - |
-
conditions - |
-Array of ConditionStatus objects - |
-Conditions - |
-
nodeSummary - |
-NodeSummary object - |
-Node statistics - |
-
resourceSummary - |
-ResourceSummary object - |
-Resource statistics - |
-
endpoints - |
-Endpoint object - |
-Endpoint - |
-
phase - |
-String - |
-Phase information - |
-
reason - |
-String - |
-Reason of the last change - |
-
message - |
-String - |
-Details about the last state transition - |
-
arrearFreeze - |
-String - |
-Frozen due to arrears - |
-
policeFreeze - |
-String - |
-Frozen for legal reasons - |
-
apiEnablements - |
-Array of APIEnablement objects - |
-List of enabled resources - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
type - |
-String - |
-Status type - |
-
status - |
-String - |
-Status - |
-
observedgeneration - |
-Integer - |
-Version of a status object - |
-
lastTransitionTime - |
-String - |
-Time of the last transition - |
-
reason - |
-String - |
-Cause of status - |
-
message - |
-String - |
-Status information - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
totalNum - |
-String - |
-The number of all nodes in a cluster - |
-
readyNum - |
-String - |
-The number of ready nodes in a cluster - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
allocatable - |
-map<string, object> - |
-Allocatable resources - |
-
allocating - |
-map<string, object> - |
-Resources in allocation - |
-
allocated - |
-map<string, object> - |
-Allocated resources - |
-
capacity - |
-map<string, object> - |
-Total resources - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
url - |
-String - |
-URL - |
-
type - |
-String - |
-Port type - |
-
status - |
-String - |
-Port status - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
groupVersion - |
-String - |
-Resource group and version - |
-
resources - |
-Array of APIResource objects - |
-Resource type and name - |
-
None
-Status code: 200
-CCE clusters that are not registered with UCS are returned.
-[ {
- "kind" : "Cluster",
- "apiVersion" : "v1",
- "metadata" : {
- "name" : "cluster-test",
- "uid" : "57ef11e7-7d72-11ee-a590-0255ac100b05",
- "creationTimestamp" : "2023-11-07T13:34:15Z",
- "labels" : {
- "FeatureGates" : "elbv3,SupportClientCertificateRevocation,xGPU"
- }
- },
- "spec" : {
- "syncMode" : "",
- "apiEndpoint" : "https://cloudmonitoralarm.cidc-rp-12.joint.cmecloud.cn",
- "provider" : "cmccloud",
- "type" : "cce",
- "category" : "self",
- "region" : "cidc-rp-12",
- "country" : "CN",
- "city" : "150900",
- "projectID" : "b6315dd3d0ff4be5b31a963256794989",
- "projectName" : "cidc-rp-12",
- "IsDownloadedCert" : false
- },
- "status" : {
- "kubernetesVersion" : "v1.27",
- "conditions" : [ {
- "type" : "Ready",
- "status" : "True",
- "lastTransitionTime" : "2023-11-27T12:42:24.182645394+08:00",
- "reason" : "ClusterAvailable"
- }, {
- "type" : "Cluster",
- "status" : "Available",
- "lastTransitionTime" : "2023-11-27T12:42:24.182646152+08:00",
- "reason" : "ClusterAvailable"
- } ],
- "endpoints" : [ {
- "url" : "https://192.168.1.44:5443",
- "type" : "Internal"
- } ],
- "phase" : "Available"
- }
-} ]
-Status Code - |
-Description - |
-
|---|---|
200 - |
-CCE clusters that are not registered with UCS are returned. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
See Error Codes.
-This API is used to query the version list of clusters that can be connected to UCS.
-GET /v1/config/registeredclusterversions
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Status code: 200
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
versions - |
-Array of strings - |
-Cluster version list - |
-
None
-Status code: 200
-Version list of clusters that can be connected to UCS
-{
- "versions" : [ "v1.19", "v1.20", "v1.21", "v1.22", "v1.23", "v1.24", "v1.25" ]
-}
-Status Code - |
-Description - |
-
|---|---|
200 - |
-Version list of clusters that can be connected to UCS - |
-
See Error Codes.
-This API is used to obtain the permission policy list.
-GET /v1/permissions/rules
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
limit - |
-No - |
-Integer - |
-The number of records allowed on each page when the list is queried by page. The default value is -1. - |
-
offset - |
-No - |
-Integer - |
-Start offset when the list is queried by page. The default value is 0. - |
-
order_by - |
-No - |
-String - |
-Sorting parameter when the list is queried by page. The value can be create_at or update_at. - |
-
order - |
-No - |
-String - |
-Sorting order when the list is queried by page. The value can be desc or asc. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Identity authentication information -Minimum length: 1 -Maximum length: 16384 - |
-
Status code: 200
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
items - |
-Array of Rule objects - |
-Permission policy list - |
-
total - |
-Integer - |
-Total number of records on all pages - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kind - |
-String - |
-API type. - |
-
apiVersion - |
-String - |
-API version. The value is fixed at v1 and cannot be changed. - |
-
metadata - |
-ObjectMeta object - |
-Basic information. - |
-
spec - |
-RuleSpec object - |
-Details about the permission policy. UCS creates or updates the permission policy by spec. - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
uid - |
-String - |
-Cluster ID - |
-
name - |
-String - |
-Cluster name - |
-
labels - |
-Map<String,String> - |
-Labels - |
-
creationTimestamp - |
-String - |
-Creation time. It is the UTC time in the RFC 3339 format. - |
-
updateTimestamp - |
-String - |
-Update timestamp - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
iamuserids - |
-Array of strings - |
-Information of IAM users associated with a permission policy - |
-
type - |
-String - |
-Permission policy type. The value can be readonly, develop, admin, or custom. - |
-
contents - |
-Array of Content objects - |
-Permission policy content - |
-
description - |
-String - |
-Permission policy description -Minimum length: 0 -Maximum length: 255 - |
-
None
-Status code: 200
-Permission policy list
-{
- "items" : [ {
- "metadata" : {
- "name" : "admin",
- "uid" : "3dcdef78-65bb-11ee-bdf2-0255ac100033",
- "creationTimestamp" : "2023-10-08 09:15:36.526016 +0000 UTC",
- "updateTimestamp" : "2023-10-08 09:15:36.526016 +0000 UTC"
- },
- "spec" : {
- "iamUserIDs" : [ "873395a21c8d4d8ba9e37d6d32debc41" ],
- "type" : "admin",
- "contents" : [ {
- "verbs" : [ "*" ],
- "resources" : [ "*" ]
- } ]
- }
- } ],
- "total" : 1
-}
-Status Code - |
-Description - |
-
|---|---|
200 - |
-Permission policy list - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to register a cluster. Third-party clusters and CCE clusters can be registered.
-POST /v1/clusters
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
kind - |
-No - |
-String - |
-Resource type. For a registered cluster, set this parameter to Cluster. -This parameter is optional for a CCE cluster and mandatory for an attached cluster. - |
-
apiVersion - |
-No - |
-String - |
-API version. The current version is v1. -This parameter is optional for a CCE cluster and mandatory for an attached cluster. - |
-
metadata - |
-Yes - |
-metadata object - |
-Cluster metadata information - |
-
spec - |
-Yes - |
-spec object - |
-Cluster specifications - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
uid - |
-No - |
-String - |
-Cluster ID. This parameter is used only when a CCE cluster is imported for registration. For other types of clusters, you do not need to set this parameter. - |
-
name - |
-No - |
-String - |
-CCE cluster name or a custom cluster name (for other types of clusters). - |
-
labels - |
-No - |
-Map<String,String> - |
-Label information. This parameter can be left blank. If this parameter is not left blank, the value must comply with the Kubernetes label specifications. A maximum of 100 labels are supported. - |
-
annotations - |
-No - |
-Map<String,String> - |
-Cluster annotations. The kubeconfig field is mandatory for an attached cluster, and its value is the content of the kubeconfig file. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clusterGroupID - |
-No - |
-String - |
-Fleet ID. - |
-
category - |
-Yes - |
-String - |
-Cluster category. The value must meet the requirements for provider and type. For details, see Cluster Categories and Types. - |
-
type - |
-Yes - |
-String - |
-Cluster type. The value must meet the requirements for provider and category. For details, see Cluster Categories and Types. - |
-
provider - |
-No - |
-String - |
-Provider. The value must meet the requirements for category and type. For details, see Cluster Categories and Types. - |
-
country - |
-No - |
-String - |
-Country code -This parameter is optional for a CCE cluster and mandatory for an attached cluster. - |
-
city - |
-No - |
-String - |
-City code (consistent with the country) -This parameter is optional for a CCE cluster and mandatory for an attached cluster. - |
-
region - |
-No - |
-String - |
-Region information. This parameter is used only when a CCE cluster is imported for registration. You can obtain the value from the region field in the API for querying CCE clusters that have not been registered with UCS. - |
-
projectID - |
-No - |
-String - |
-Project ID. This parameter is used only when a CCE cluster is imported for registration. You can obtain the value from the projectID field in the API for querying CCE clusters that have not been registered with UCS. - |
-
manageType - |
-Yes - |
-String - |
-Cluster management type. Options: -
|
-
network - |
-No - |
-NetworkConfig object - |
-Network configuration of a multi-cloud cluster. You do not need to set this parameter for other types of clusters. - |
-
Status code: 201
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
uid - |
-String - |
-Cluster ID - |
-
{
- "metadata" : {
- "uid" : "44052cdd-8cd2-11ee-abd1-0255ac1001bd"
- },
- "spec" : {
- "region" : "cidc-rp-12",
- "category" : "self",
- "type" : "turbo",
- "projectID" : "05495693df80d3c92fa1c01795c2be02",
- "clusterGroupID" : "",
- "manageType" : "discrete"
- }
-}
-Status code: 201
-The cluster has been registered, and the ID of the registered cluster is returned.
-{
- "uid" : "b0d1ecb5-7947-11ee-9467-0255ac1001bf"
-}
-Status Code - |
-Description - |
-
|---|---|
201 - |
-The cluster has been registered, and the ID of the registered cluster is returned. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
404 - |
-Resources not found. - |
-
409 - |
-There was a request conflict. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to create a fleet. You can select clusters during fleet creation.
-POST /v1/clustergroups
-Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
metadata - |
-Yes - |
-- | -Fleet metadata information - |
-
spec - |
-No - |
-RegisterClusterGroupSpec object - |
-Attributes - |
-
Status code: 201
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
uid - |
-String - |
-Fleet UID - |
-
Creating a fleet and (optional) adding clusters to the fleet
-{
- "metadata" : {
- "name" : "group02281605"
- },
- "spec" : {
- "clusterIds" : [ "514c1a3c-8ec7-11ec-b384-0255ac100189", "d4804da3-8f03-11ec-b384-0255ac100189" ],
- "description" : "aaaaaaaaa"
- }
-}
-Status code: 201
-The UID of the fleet that has been created is returned.
-{
- "uid" : "6efb4a18-2fa4-11ee-ad1d-0255ac1001c4"
-}
-Status Code - |
-Description - |
-
|---|---|
201 - |
-The UID of the fleet that has been created is returned. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to activate a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permission on the corresponding cluster. Otherwise, the authentication fails.
-PUT /v1/clusters/{clusterid}/activation
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clusterid - |
-Yes - |
-String - |
-Cluster ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
None
-None
-None
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The cluster has been activated for reconnection. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to obtain a cluster. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the required permissions on the cluster. Otherwise, the authentication fails.
-GET /v1/clusters/{clusterid}
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clusterid - |
-Yes - |
-String - |
-Cluster ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Status code: 200
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kind - |
-String - |
-API type. The value is fixed at Cluster and cannot be changed. - |
-
apiVersion - |
-String - |
-API version. The value is fixed at v1 and cannot be changed. - |
-
metadata - |
-ObjectMeta object - |
-Basic information about the cluster. Metadata is a collection of attributes. - |
-
spec - |
-ClusterSpec object - |
-Details about the cluster. UCS creates or updates the cluster based on spec. - |
-
status - |
-ClusterStatus object - |
-Cluster 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. - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
syncMode - |
-String - |
-Synchronization mode between the cluster and the Karmada control plane - |
-
clusterGroupID - |
-String - |
-Fleet ID - |
-
manageType - |
-String - |
-Cluster type. The options are as follows: -
|
-
ruleNamespaces - |
-Array of RuleNamespace objects - |
-List of namespaces associated with permission policies in a cluster - |
-
apiEndpoint - |
-String - |
-API server address - |
-
secretRef - |
-LocalSecretReference object - |
-Secret information for accessing a cluster - |
-
insecureSkipTLSVerification - |
-Boolean - |
-Whether to skip HTTPS verification - |
-
proxyURL - |
-String - |
-Proxy URL - |
-
provider - |
-String - |
-Provider - |
-
type - |
-String - |
-Type - |
-
category - |
-String - |
-Category - |
-
enableDistMgt - |
-Boolean - |
-Whether CCE Turbo clusters can manage edge infrastructure - |
-
region - |
-String - |
-Region - |
-
country - |
-String - |
-Country - |
-
city - |
-String - |
-City (consistent with the country) - |
-
projectID - |
-String - |
-Project ID - |
-
projectName - |
-String - |
-Project name - |
-
zone - |
-String - |
-Zone - |
-
taints - |
-Array of Taint objects - |
-Taints - |
-
IsDownloadedCert - |
-Boolean - |
-Whether the certificate has been downloaded - |
-
policyId - |
-String - |
-Policy management ID - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
rules - |
-Array of RuleInfo objects - |
-Permission policy list - |
-
namespaces - |
-Array of strings - |
-Namespace list - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
ruleID - |
-String - |
-Permission policy ID - |
-
ruleName - |
-String - |
-Permission policy name - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
namespace - |
-String - |
-Namespace that the resource belongs to - |
-
name - |
-String - |
-Resource name - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
key - |
-String - |
-Key - |
-
value - |
-String - |
-Value - |
-
effect - |
-String - |
-Effect information - |
-
timeadded - |
-String - |
-Timestamp information - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kubernetesVersion - |
-String - |
-Kubernetes version - |
-
conditions - |
-Array of ConditionStatus objects - |
-Conditions - |
-
nodeSummary - |
-NodeSummary object - |
-Node statistics - |
-
resourceSummary - |
-ResourceSummary object - |
-Resource statistics - |
-
endpoints - |
-Endpoint object - |
-Endpoint - |
-
phase - |
-String - |
-Phase information - |
-
reason - |
-String - |
-Reason of the last change - |
-
message - |
-String - |
-Details about the last state transition - |
-
arrearFreeze - |
-String - |
-Frozen due to arrears - |
-
policeFreeze - |
-String - |
-Frozen for legal reasons - |
-
apiEnablements - |
-Array of APIEnablement objects - |
-List of enabled resources - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
type - |
-String - |
-Status type - |
-
status - |
-String - |
-Status - |
-
observedgeneration - |
-Integer - |
-Version of a status object - |
-
lastTransitionTime - |
-String - |
-Time of the last transition - |
-
reason - |
-String - |
-Cause of status - |
-
message - |
-String - |
-Status information - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
totalNum - |
-String - |
-The number of all nodes in a cluster - |
-
readyNum - |
-String - |
-The number of ready nodes in a cluster - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
allocatable - |
-map<string, object> - |
-Allocatable resources - |
-
allocating - |
-map<string, object> - |
-Resources in allocation - |
-
allocated - |
-map<string, object> - |
-Allocated resources - |
-
capacity - |
-map<string, object> - |
-Total resources - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
internal - |
-String - |
-Internal network address. - |
-
external - |
-String - |
-External network address. - |
-
external_otc - |
-String - |
-Endpoint of the cluster to be accessed through API Gateway. - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
groupVersion - |
-String - |
-Resource group and version - |
-
resources - |
-Array of APIResource objects - |
-Resource type and name - |
-
None
-Status code: 200
-Cluster information, such as its status and synchronization mode between the cluster and Karmada control plane
-{
- "kind" : "Cluster",
- "apiVersion" : "v1",
- "metadata" : {
- "name" : "test-cluster",
- "uid" : "b0d1ecb5-7947-11ee-9467-0255ac1001bf",
- "creationTimestamp" : "2023-11-02T06:36:14Z",
- "labels" : {
- "FeatureGates" : "elbv3,SupportClientCertificateRevocation,xGPU"
- },
- "annotations" : {
- "vpcId" : "11c9fe72-5a90-4295-bcfe-774726fb9066"
- }
- },
- "spec" : {
- "syncMode" : "",
- "clusterGroupID" : "bffbb35b-7949-11ee-886c-0255ac100037",
- "manageType" : "grouped",
- "provider" : "cmccloud",
- "type" : "cce",
- "category" : "self",
- "region" : "cidc-rp-12",
- "country" : "CN",
- "city" : "150900",
- "projectID" : "b6315dd3d0ff4be5b31a963256794989",
- "projectName" : "cidc-rp-12",
- "IsDownloadedCert" : false,
- "operatorNamespace" : "2cd7ebd02e4743eba4e6342c09e49344"
- },
- "status" : {
- "kubernetesVersion" : "v1.25",
- "conditions" : [ {
- "type" : "Ready",
- "status" : "True",
- "lastTransitionTime" : "2023-11-27T11:05:09+08:00",
- "reason" : "ClusterAvailable"
- }, {
- "type" : "Cluster",
- "status" : "Available",
- "lastTransitionTime" : "2023-11-27T11:05:09+08:00",
- "reason" : "ClusterAvailable"
- }, {
- "type" : "Federation",
- "status" : "Federalized",
- "lastTransitionTime" : "2023-11-14T14:31:58.744215+08:00"
- } ],
- "endpoints" : [ {
- "url" : "https://192.168.1.251:5443",
- "type" : "Internal"
- } ],
- "phase" : "Available",
- "arrearFreeze" : "false",
- "policeFreeze" : "false"
- }
-}
-Status Code - |
-Description - |
-
|---|---|
200 - |
-Cluster information, such as its status and synchronization mode between the cluster and Karmada control plane - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
404 - |
-Resources not found. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to obtain the cluster access information. The cluster ID must comply with the Kubernetes UUID format rules, and you must have the permission to query the corresponding cluster. Otherwise, the authentication fails. The agent certificate can be downloaded only once. This API is only used to obtain the access information of third-party clusters. If a CCE cluster ID is transferred, 400 will be returned.
-GET /v1/clusters/{clusterid}/accessinfo
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clusterid - |
-Yes - |
-String - |
-Cluster ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
vpcendpoint - |
-No - |
-String - |
-IP address of the VPC endpoint. This parameter is mandatory for clusters accessed over the private network. The third-party network and the VPC network must be connected. - |
-
region - |
-No - |
-String - |
-Access region. This parameter is mandatory for clusters accessed over the private network. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Status code: 200
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
[Array] - |
-Array of strings - |
-The cluster access information is returned. If the API has been called, the message "Downloaded" is returned. - |
-
None
-None
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The cluster access information is returned. If the API has been called, the message "Downloaded" is returned. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to obtain a fleet.
-GET /v1/clustergroups/{clustergroupid}
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clustergroupid - |
-Yes - |
-String - |
-Fleet ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Status code: 200
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kind - |
-String - |
-API type. The value is fixed at ClusterGroup and cannot be changed. - |
-
apiVersion - |
-String - |
-API version. The value is fixed at v1 and cannot be changed. - |
-
metadata - |
-ObjectMeta object - |
-Basic information about the fleet. Metadata is a collection of attributes. - |
-
spec - |
-ClusterGroupSpec object - |
-Details about the fleet. UCS creates or updates the fleet based on spec. - |
-
status - |
-ClusterGroupStatus object - |
-Fleet status - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
uid - |
-String - |
-Cluster ID - |
-
name - |
-String - |
-Cluster name - |
-
labels - |
-Map<String,String> - |
-Labels - |
-
creationTimestamp - |
-String - |
-Creation time. It is the UTC time in the RFC 3339 format. - |
-
updateTimestamp - |
-String - |
-Update timestamp - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
ruleNamespaces - |
-Array of strings - |
-List of namespaces associated with a permission policy - |
-
federationId - |
-String - |
-ID of the federation enabled for the fleet - |
-
description - |
-String - |
-Description - |
-
dnsSuffix - |
-Array of strings - |
-DNS suffix of the federation corresponding to the fleet. This parameter is visible after federation is enabled. - |
-
federationExpirationTimestamp - |
-String - |
-Federation expiration timestamp - |
-
policyId - |
-String - |
-Policy management ID - |
-
federationVersion - |
-String - |
-Version of the federation enabled for the fleet - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
conditions - |
-Array of ClusterGroupCondition objects - |
-Federation or permission policy information for the fleet - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
type - |
-String - |
-Type. Options: - - |
-
status - |
-String - |
-Status of the federation or permission policy enabled for the fleet - |
-
reason - |
-String - |
-Cause of a status - |
-
message - |
-String - |
-Status information - |
-
lastTransitionTime - |
-String - |
-Status update time - |
-
None
-Status code: 200
-Fleet object
-{
- "kind" : "ClusterGroup",
- "apiVersion" : "v1",
- "metadata" : {
- "name" : "cluster-test",
- "uid" : "bffbb35b-7949-11ee-886c-0255ac100037",
- "creationTimestamp" : "2023-11-02 06:33:35.558128 +0000 UTC",
- "updateTimestamp" : "2023-11-14 06:20:20.446476 +0000 UTC"
- },
- "spec" : {
- "federationId" : "e2f27cc6-82b5-11ee-84e3-0255ac100032",
- "federationVersion" : "v1.7.0-t1109",
- "dnsSuffix" : [ "www.oidc.com" ]
- },
- "status" : {
- "conditions" : [ {
- "type" : "Federation",
- "status" : "Unavailable",
- "reason" : "FederationUnavailable",
- "message" : "component volcano-scheduler is unhealthy",
- "lastTransitionTime" : "0001-01-01T00:00:00Z"
- } ]
- }
-}
-Status Code - |
-Description - |
-
|---|---|
200 - |
-Fleet object - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
404 - |
-Resources not found. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to obtain the cluster list.
-GET /v1/clusters
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
category - |
-No - |
-String - |
-Used to obtain clusters of a specific category. - |
-
enablestatus - |
-No - |
-Boolean - |
-Whether to obtain the resource information of a cluster. If this parameter is not specified or set to true, the cluster resource summary information is returned. If this parameter is set to false, the cluster status is not returned. The default value is true. - |
-
clustergroupid - |
-No - |
-String - |
-Fleet ID. If this parameter is not specified, all clusters are returned. If this parameter is specified, clusters that belong to the fleet are returned. - |
-
limit - |
-No - |
-Integer - |
-The number of records allowed on each page when the list is queried by page. The default value is -1. - |
-
offset - |
-No - |
-Integer - |
-Start offset when the list is queried by page. The default value is 0. - |
-
order_by - |
-No - |
-String - |
-Sorting parameter when the list is queried by page. The value can be create_at or update_at. - |
-
order - |
-No - |
-String - |
-Sorting order when the list is queried by page. The value can be desc or asc. - |
-
managetype - |
-No - |
-String - |
-Cluster type for listing the clusters. The value can be all, grouped, or discrete. If this parameter is not specified, the default value is all. -
|
-
clusterids - |
-No - |
-String - |
-Cluster ID. If there are multiple IDs, separate them using commas (,). - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Status code: 200
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
items - |
-Array of Cluster objects - |
-List of cluster members - |
-
total - |
-Integer - |
-Total number of clusters - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kind - |
-String - |
-API type. The value is fixed at Cluster and cannot be changed. - |
-
apiVersion - |
-String - |
-API version. The value is fixed at v1 and cannot be changed. - |
-
metadata - |
-ObjectMeta object - |
-Basic information about the cluster. Metadata is a collection of attributes. - |
-
spec - |
-ClusterSpec object - |
-Details about the cluster. UCS creates or updates the cluster based on spec. - |
-
status - |
-ClusterStatus object - |
-Cluster 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. - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
syncMode - |
-String - |
-Synchronization mode between the cluster and the Karmada control plane - |
-
clusterGroupID - |
-String - |
-Fleet ID - |
-
manageType - |
-String - |
-Cluster type. The options are as follows: -
|
-
ruleNamespaces - |
-Array of RuleNamespace objects - |
-List of namespaces associated with permission policies in a cluster - |
-
apiEndpoint - |
-String - |
-API server address - |
-
secretRef - |
-LocalSecretReference object - |
-Secret information for accessing a cluster - |
-
insecureSkipTLSVerification - |
-Boolean - |
-Whether to skip HTTPS verification - |
-
proxyURL - |
-String - |
-Proxy URL - |
-
provider - |
-String - |
-Provider - |
-
type - |
-String - |
-Type - |
-
category - |
-String - |
-Category - |
-
enableDistMgt - |
-Boolean - |
-Whether CCE Turbo clusters can manage edge infrastructure - |
-
region - |
-String - |
-Region - |
-
country - |
-String - |
-Country - |
-
city - |
-String - |
-City (consistent with the country) - |
-
projectID - |
-String - |
-Project ID - |
-
projectName - |
-String - |
-Project name - |
-
zone - |
-String - |
-Zone - |
-
taints - |
-Array of Taint objects - |
-Taints - |
-
IsDownloadedCert - |
-Boolean - |
-Whether the certificate has been downloaded - |
-
policyId - |
-String - |
-Policy management ID - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
rules - |
-Array of RuleInfo objects - |
-Permission policy list - |
-
namespaces - |
-Array of strings - |
-Namespace list - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
ruleID - |
-String - |
-Permission policy ID - |
-
ruleName - |
-String - |
-Permission policy name - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
namespace - |
-String - |
-Namespace that the resource belongs to - |
-
name - |
-String - |
-Resource name - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
key - |
-String - |
-Key - |
-
value - |
-String - |
-Value - |
-
effect - |
-String - |
-Effect information - |
-
timeadded - |
-String - |
-Timestamp information - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
kubernetesVersion - |
-String - |
-Kubernetes version - |
-
conditions - |
-Array of ConditionStatus objects - |
-Conditions - |
-
nodeSummary - |
-NodeSummary object - |
-Node statistics - |
-
resourceSummary - |
-ResourceSummary object - |
-Resource statistics - |
-
endpoints - |
-Endpoint object - |
-Endpoint - |
-
phase - |
-String - |
-Phase information - |
-
reason - |
-String - |
-Reason of the last change - |
-
message - |
-String - |
-Details about the last state transition - |
-
arrearFreeze - |
-String - |
-Frozen due to arrears - |
-
policeFreeze - |
-String - |
-Frozen for legal reasons - |
-
apiEnablements - |
-Array of APIEnablement objects - |
-List of enabled resources - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
type - |
-String - |
-Status type - |
-
status - |
-String - |
-Status - |
-
observedgeneration - |
-Integer - |
-Version of a status object - |
-
lastTransitionTime - |
-String - |
-Time of the last transition - |
-
reason - |
-String - |
-Cause of status - |
-
message - |
-String - |
-Status information - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
totalNum - |
-String - |
-The number of all nodes in a cluster - |
-
readyNum - |
-String - |
-The number of ready nodes in a cluster - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
allocatable - |
-map<string, object> - |
-Allocatable resources - |
-
allocating - |
-map<string, object> - |
-Resources in allocation - |
-
allocated - |
-map<string, object> - |
-Allocated resources - |
-
capacity - |
-map<string, object> - |
-Total resources - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
internal - |
-String - |
-Internal network address. - |
-
external - |
-String - |
-External network address. - |
-
external_otc - |
-String - |
-Endpoint of the cluster to be accessed through API Gateway. - |
-
Parameter - |
-Type - |
-Description - |
-
|---|---|---|
groupVersion - |
-String - |
-Resource group and version - |
-
resources - |
-Array of APIResource objects - |
-Resource type and name - |
-
None
-Status code: 200
-Information about all clusters is obtained.
-{
- "items" : [ {
- "kind" : "Cluster",
- "apiVersion" : "v1",
- "metadata" : {
- "name" : "test-cluster",
- "uid" : "b0d1ecb5-7947-11ee-9467-0255ac1001bf",
- "creationTimestamp" : "2023-11-02T06:36:14Z",
- "labels" : {
- "FeatureGates" : "elbv3,SupportClientCertificateRevocation,xGPU"
- },
- "annotations" : {
- "vpcId" : "11c9fe72-5a90-4295-bcfe-774726fb9066"
- }
- },
- "spec" : {
- "syncMode" : "",
- "clusterGroupID" : "bffbb35b-7949-11ee-886c-0255ac100037",
- "manageType" : "grouped",
- "provider" : "cmccloud",
- "type" : "cce",
- "category" : "self",
- "region" : "cidc-rp-12",
- "country" : "CN",
- "city" : "150900",
- "projectID" : "b6315dd3d0ff4be5b31a963256794989",
- "projectName" : "cidc-rp-12",
- "IsDownloadedCert" : false,
- "operatorNamespace" : "2cd7ebd02e4743eba4e6342c09e49344"
- },
- "status" : {
- "kubernetesVersion" : "v1.25",
- "conditions" : [ {
- "type" : "Ready",
- "status" : "True",
- "lastTransitionTime" : "2023-11-27T11:05:09+08:00",
- "reason" : "ClusterAvailable"
- }, {
- "type" : "Cluster",
- "status" : "Available",
- "lastTransitionTime" : "2023-11-27T11:05:09+08:00",
- "reason" : "ClusterAvailable"
- }, {
- "type" : "Federation",
- "status" : "Federalized",
- "lastTransitionTime" : "2023-11-14T14:31:58.744215+08:00"
- } ],
- "endpoints" : [ {
- "url" : "https://192.168.1.251:5443",
- "type" : "Internal"
- } ],
- "phase" : "Available",
- "arrearFreeze" : "false",
- "policeFreeze" : "false"
- }
- } ],
- "total" : 1
-}
-Status Code - |
-Description - |
-
|---|---|
200 - |
-Information about all clusters is obtained. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to query the federation enabling progress.
-GET /v1/clustergroups/{clustergroupid}/federations/progress
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clustergroupid - |
-Yes - |
-String - |
-Fleet ID - |
-
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. - |
-
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. - |
-
None
-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 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. - |
-
See Error Codes.
-This API is used to update a cluster. Currently, only the country/city of attached clusters and on-premises clusters, and the number of worker nodes in a multi-cloud cluster can be updated.
-PUT /v1/clusters/{clusterid}
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clusterid - |
-Yes - |
-String - |
-Cluster ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
kind - |
-Yes - |
-String - |
-API type. The value is fixed at Cluster and cannot be changed. - |
-
apiVersion - |
-Yes - |
-String - |
-API version. The value is fixed at v1 and cannot be changed. - |
-
metadata - |
-No - |
-ObjectMeta object - |
-Basic information about the cluster. Metadata is a collection of attributes. - |
-
spec - |
-No - |
-UpdateClusterSpec object - |
-Details about the cluster. UCS creates or updates the cluster based on spec. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
uid - |
-No - |
-String - |
-Cluster ID - |
-
name - |
-No - |
-String - |
-Cluster name - |
-
labels - |
-No - |
-Map<String,String> - |
-Labels - |
-
creationTimestamp - |
-No - |
-String - |
-Creation time. It is the UTC time in the RFC 3339 format. - |
-
updateTimestamp - |
-No - |
-String - |
-Update timestamp - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
country - |
-No - |
-String - |
-Country where the cluster is located - |
-
city - |
-No - |
-String - |
-City where the cluster is located (consistent with the country) - |
-
workerConfig - |
-No - |
-WorkerConfig object - |
-Worker node configuration. This parameter is only available for multi-cloud clusters. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
replicas - |
-No - |
-Integer - |
-The number of nodes - |
-
strategy - |
-No - |
-NodeUpgradeStrategy object - |
-Node update policy - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
type - |
-No - |
-String - |
-Policy type - |
-
rollingUpdate - |
-No - |
-- | -Rolling update - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
maxUnavailable - |
-No - |
-Object - |
-Maximum number of nodes that can be unavailable during an update - |
-
maxSurge - |
-No - |
-Object - |
-Maximum number of nodes that can be created over the desired number of nodes - |
-
deletePolicy - |
-No - |
-String - |
-Deletion policy. The options are Random, Oldest, and Newest. - |
-
Status code: 200
-Cluster information updated.
-Status code: 400
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
- - |
-String - |
-- - |
-
Status code: 403
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
- - |
-String - |
-- - |
-
Status code: 500
- -Parameter - |
-Type - |
-Description - |
-
|---|---|---|
- - |
-String - |
-- - |
-
Updating a cluster
-{
- "kind" : "Cluster",
- "apiVersion" : "v1",
- "metadata" : {
- "annotations" : {
- "kubeconfig" : "{\"kind\":\"Config\",\"apiVersion\":\"v1\",\"preferences\":{},\"clusters\":[{\"name\":\"internalCluster\",\"cluster\":{\"server\":\"https://100.94.13.93:5443\",\"insecure-skip-tls-verify\":true}}],\"users\":[{\"name\":\"user\",\"user\":{\"client-certificate-data\":\"\",\"client-key-data\":\"\"}}],\"contexts\":[{\"name\":\"internal\",\"context\":{\"cluster\":\"internalCluster\",\"user\":\"user\"}}],\"current-context\":\"internal\"}"
- }
- },
- "spec" : {
- "country" : "AL",
- "city" : "AL"
- }
-}
-Status code: 200
-The cluster has been updated.
-{ }
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The cluster has been updated. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to update the description of a fleet. You must have the permissions to update the fleet.
-PUT /v1/clustergroups/{clustergroupid}/description
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clustergroupid - |
-Yes - |
-String - |
-Fleet ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
description - |
-Yes - |
-String - |
-Fleet description - |
-
None
-Updating fleet description
-{
- "description" : "aaaaaaaaa"
-}
-None
-Status Code - |
-Description - |
-
|---|---|
200 - |
-Updated. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
404 - |
-Resources not found. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to add clusters to a fleet. One or more clusters can be added at the same time. This API cannot be used to remove all or some clusters from a fleet.
-PUT /v1/clustergroups/{clustergroupid}/associatedclusters
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clustergroupid - |
-Yes - |
-String - |
-Fleet ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-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. - |
-
Content-Type - |
-Yes - |
-String - |
-Message body type (format). Only application/json is supported. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clusterIds - |
-No - |
-Array of strings - |
-Cluster IDs for updating information about clusters associated with a fleet - |
-
None
-Updating clusters in a fleet
-{
- "clusterids" : [ "xxxx-xxxx-xxxx" ]
-}
-None
-Status Code - |
-Description - |
-
|---|---|
200 - |
-Clusters have been added to the fleet. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to update the permission policies associated with a fleet.
-PUT /v1/clustergroups/{clustergroupid}/associatedrules
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clustergroupid - |
-Yes - |
-String - |
-Fleet ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Token authentication information -Minimum length: 1 -Maximum length: 16384 - |
-
Content-Type - |
-Yes - |
-String - |
-Request body type or format - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
ruleIDNamespaces - |
-No - |
-Array of RuleIDNamespaces objects - |
-Permission policy ID and namespaces related to the permission policy - |
-
None
-Updating the permission policies associated with a fleet
-{
- "ruleIDNamespaces" : [ {
- "ruleIDs" : [ "f6434332-60d6-11ed-a847-0255ac10003f" ],
- "namespaces" : [ "default", "kube-system" ]
- } ]
-}
-None
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The fleet has been associated with permission policies. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to associate a cluster with permission policies.
-PUT /v1/clusters/{clusterid}/associatedrules
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
clusterid - |
-Yes - |
-String - |
-Cluster ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Identity authentication information - |
-
Content-Type - |
-Yes - |
-String - |
-Request body type or format - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
ruleIDNamespaces - |
-No - |
-Array of RuleIDNamespaces objects - |
-Permission policy ID and namespaces related to the permission policy - |
-
None
-Associating a cluster with permission policies
-{
- "ruleIDNamespaces" : [ {
- "ruleIDs" : [ "f6434332-60d6-11ed-a847-0255ac10003f" ],
- "namespaces" : [ "default", "xxxxx" ]
- } ]
-}
-None
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The cluster has been associated with permission policies. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
403 - |
-The server refused the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
-This API is used to update a permission policy.
-PUT /v1/permissions/rules/{ruleid}
- -Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
ruleid - |
-Yes - |
-String - |
-Permission policy ID - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
X-Auth-Token - |
-Yes - |
-String - |
-Identity authentication information -Minimum length: 1 -Maximum length: 16384 - |
-
Content-Type - |
-Yes - |
-String - |
-Request body type or format - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
spec - |
-No - |
-RuleSpec object - |
-Details about the permission policy. UCS creates or updates the permission policy by spec. - |
-
Parameter - |
-Mandatory - |
-Type - |
-Description - |
-
|---|---|---|---|
iamuserids - |
-No - |
-Array of strings - |
-Information of IAM users associated with a permission policy - |
-
type - |
-No - |
-String - |
-Permission policy type. The value can be readonly, develop, admin, or custom. - |
-
contents - |
-No - |
-Array of Content objects - |
-Permission policy content - |
-
description - |
-No - |
-String - |
-Permission policy description -Minimum length: 0 -Maximum length: 255 - |
-
None
-Updating a permission policy
-{
- "spec" : {
- "iamUserIDs" : [ "978ff70ec1494a5680f6218faa3567d9", "5acdb44b47ba4bd79783ad40e5346783" ],
- "type" : "custom",
- "description" : "this is description"
- }
-}
-None
-Status Code - |
-Description - |
-
|---|---|
200 - |
-The permission policy has been updated. - |
-
400 - |
-Client request error. The server could not execute the request. - |
-
500 - |
-Internal server error. - |
-
See Error Codes.
--
-
Ubiquitous Cloud Native Service (UCS) is the first distributed cloud native product in the industry. It provides a consistent experience in cloud native application deployment, management, and ecosystem. Cloud native applications can run across regions and clouds with intelligent traffic distribution.
-This document describes how to use application programming interfaces (APIs) to perform operations on UCS, such as creating or deleting fleets, registering or deleting clusters, and creating, updating, or deleting permission policies.
-UCS supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see Calling APIs.
-An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. The endpoint of UCS consists of the service name, region ID, and external domain name. The format is as follows: ucs.region0_id.external_global_domain_name.
-A domain is created upon successful signing up. The domain has full access permissions for all of its cloud services and resources. It can be used to reset user passwords and grant user permissions. The domain is a payment entity, which should not be used directly to perform routine management. For security purposes, create Identity and Access Management (IAM) users and grant them permissions for routine management.
-An IAM user is created by an account in IAM to use cloud services. Each IAM user has its own identity credentials (password and access keys).
-You can view the domain name and IAM user ID on the My Credentials page. API authentication requires information such as the domain, username, and password.
-A region is a geographic area in which cloud resources are deployed. Availability zones (AZs) in the same region can communicate with each other over an intranet, while AZs in different regions are isolated from each other. Deploying cloud resources in different regions can better suit certain user requirements or comply with local laws or regulations.
-For details, see Region and AZ.
-An AZ comprises one or more physical data centers equipped with independent ventilation, fire, water, and electricity facilities. Computing, network, storage, and other resources in an AZ are logically divided into multiple clusters. AZs within a region are interconnected using high-speed optical fibers to allow you to build cross-AZ high-availability systems.
-A region corresponds to a project by default. Default projects are defined to group and physically isolate resources (including computing, storage, and network resources) across regions. Users can be granted permissions in a default project to access all resources under theirdomains in the region associated with the project. If you need more refined access control, create subprojects under a default project and create resources in subprojects. Then you can assign users the permissions required to access only the resources in the specific subprojects.
-
Enterprise projects group and manage resources across regions. Resources in different enterprise projects are logically isolated.
-For details about enterprise projects and about how to obtain enterprise project IDs, see Enterprise Management User Guide.
-This section describes the structure of a REST API request, and uses the IAM API for obtaining a user tokenobtaining a user token as an example to demonstrate how to call an API. The obtained token can then be used to authenticate the calling of other APIs.
-A request URI is in the following format:
-{URI-scheme}://{Endpoint}/{resource-path}?{query-string}
-Although a request URI is included in the request header, most programming languages or frameworks require the request URI to be transmitted separately.
- -Parameter - |
-Description - |
-
|---|---|
URI-scheme - |
-Protocol used to transmit requests. All APIs use HTTPS. - |
-
Endpoint - |
-Domain name or IP address of the server bearing the REST service. The endpoint varies between services in different regions. It can be obtained from Regions and Endpoints"Regions and Endpoints". - |
-
resource-path - |
-Access path of an API for performing a specified operation. Obtain the path from the URI of an API. For example, the resource-path of the API used to obtain a user token is /v3/auth/tokens. - |
-
query-string - |
-Query parameter, which is optional. Ensure that a question mark (?) is included before each query parameter that is in the format of Parameter name=Parameter value. For example, ?limit=10 indicates that a maximum of 10 data records will be displayed. - |
-
To simplify the URI display in this document, each API is provided only with a resource-path and a request method. The URI-scheme of all APIs is HTTPS, and the endpoints of all APIs in the same region are identical.
-Method - |
-Description - |
-
|---|---|
GET - |
-Requests the server to return specified resources. - |
-
PUT - |
-Requests the server to update specified resources. - |
-
POST - |
-Requests the server to add resources or perform special operations. - |
-
DELETE - |
-Requests the server to delete specified resources, for example, an object. - |
-
HEAD - |
-Requests the server to return the response header. - |
-
PATCH - |
-Requests the server to update partial content of a specified resource. -If the resource does not exist, a new resource will be created. - |
-
For example, in the case of the API used to obtain a user tokenobtain a user token, the request method is POST. The request is as follows:
-1 | POST https://{{endpoint}}/v3/auth/tokens - |
You can also add additional header fields to a request, such as the fields required by a specified URI or HTTP method. For example, to request for the authentication information, add Content-Type, which specifies the request body type.
-Parameter - |
-Description - |
-Mandatory - |
-Example Value - |
-
|---|---|---|---|
Host - |
-Specifies the server domain name and port number of the resources being requested. The value can be obtained from the URL of the service API. The value is in the format of Hostname:Port number. If the port number is not specified, the default port is used. The default port number for https is 443. - |
-No -This field is mandatory for AK/SK authentication. - |
-code.test.com -or -code.test.com:443 - |
-
Content-Type - |
-Specifies the type (or format) of the message body. The default value application/json is recommended. Other values of this field will be provided for specific APIs if any. - |
-Yes - |
-application/json - |
-
Content-Length - |
-Specifies the length of the request body. The unit is byte. - |
-No - |
-3495 - |
-
X-Project-Id - |
-Specifies the project ID. Obtain the project ID by following the instructions in Obtaining a Project ID. - |
-No - |
-e9993fc787d94b6c886cbaa340f9c0f4 - |
-
X-Auth-Token - |
-Specifies the user token. -It is a response to the API for obtaining a user token. (This is the only API that does not require authentication.) -After the request is processed, the value of X-Subject-Token in the response header is the token value. - |
-No -This field is mandatory for token authentication. - |
-The following is part of an example token: -MIIPAgYJKoZIhvcNAQcCo...ggg1BBIINPXsidG9rZ - |
-
In addition to supporting authentication using tokens, APIs support authentication using AK/SK, which uses SDKs to sign a request. During the signature, the Authorization (signature authentication) and X-Sdk-Date (time when a request is sent) headers are automatically added in the request.
-For more details, see "Authentication Using AK/SK" in Authentication.
-The API used to obtain a user tokenobtain a user token does not require authentication. Only the Content-Type field needs to be added to requests for calling the API. An example of such requests is as follows:
-1 -2 | POST https://{{endpoint}}/v3/auth/tokens -Content-Type: application/json - |
This part is optional. The body of a request is often sent in a structured format (for example, JSON or XML) as specified in the Content-Type header field. The request body transfers content except the request header.
-The request body varies between APIs. Some APIs do not require the request body, such as the APIs requested using the GET and DELETE methods.
-In the case of the API used to obtain a user tokenobtain a user token, the request parameters and parameter description can be obtained from the API request. The following provides an example request with a body included. Replace username, domainname (domain), ******** (login password), and xxxxxxxxxxxxxxxxxx (project name) with the actual values. Obtain the project name from Regions and Endpoints"Regions and Endpoints".
-If all data required for the API request is available, you can send the request to call the API through curl, Postman, or coding. In the response to the API used to obtain a user token, x-subject-token is the desired user token. This token can then be used to authenticate the calling of other APIs.
-Requests for calling an API can be authenticated using an AK/SK pair.
-An AK/SK is used to verify the identity of a request sender. In AK/SK authentication, a signature needs to be obtained and then added to requests.
-
AK: access key ID, which is a unique identifier used together with an SK to sign requests cryptographically.
-SK: secret access key, which is used together with an AK to sign requests cryptographically. It identifies a request sender and prevents the request from being modified.
-The following demo shows how to sign a request and use an HTTP client to send an HTTPS request.
-Download the demo at https://github.com/api-gate-way/SdkDemo.
-If you do not need the demo project, visit the following URL to download the API Gateway signing SDK:
-Request an API Gateway signing SDK from the enterprise administrator.
-Decompress the downloaded package to obtain a JAR file. Add the decompressed JAR file to the dependency path, as shown below.
-
Keep the AK/SK secure.
-


The request signing method is integrated in the JAR files imported in 3. The request needs to be signed before it is sent. The signature will then be added as part of the HTTP header to the request.
-The demo code is classified into three classes:
-If you use other methods such as POST, PUT, and DELETE, see the corresponding comment.
-Specify region, serviceName, AK/SK, and URL with actual values. In this demo, the URLs for accessing VPC resources are used.
-To obtain the project ID in the URLs, see Obtaining a Project ID.
-To obtain the endpoint, see "Regions and Endpoints".
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 | //TODO: Replace region with the name of the region in which the service to be accessed is located. -private static final String region = ""; - -//TODO: Replace vpc with the name of the service you want to access. For example, ecs, vpc, iam, and elb. -private static final String serviceName = ""; - -public static void main(String[] args) throws UnsupportedEncodingException -{ -//TODO: Replace the AK and SK with those obtained on the My Credentials page. -String ak = "ZIRRKMTWP******1WKNKB"; -String sk = "Us0mdMNHk******YrRCnW0ecfzl"; - -//TODO: To specify a project ID (multi-project scenarios), add the X-Project-Id header. -//TODO: To access a global service, such as IAM, DNS, CDN, and TMS, add the X-Domain-Id header to specify an account ID. -//TODO: To add a header, find "Add special headers" in the AccessServiceImple.java file. - -//TODO: Test the API -String url = "https://{Endpoint}/v1/{project_id}/vpcs"; -get(ak, sk, url); - -//TODO: When creating a VPC, replace {project_id} in postUrl with the actual value. -//String postUrl = "https://serviceEndpoint/v1/{project_id}/cloudservers"; -//String postbody ="{\"vpc\": {\"name\": \"vpc\",\"cidr\": \"192.168.0.0/16\"}}"; -//post(ak, sk, postUrl, postbody); - -//TODO: When querying a VPC, replace {project_id} in url with the actual value. -//String url = "https://serviceEndpoint/v1/{project_id}/vpcs/{vpc_id}"; -//get(ak, sk, url); - -//TODO: When updating a VPC, replace {project_id} and {vpc_id} in putUrl with the actual values. -//String putUrl = "https://serviceEndpoint/v1/{project_id}/vpcs/{vpc_id}"; -//String putbody ="{\"vpc\":{\"name\": \"vpc1\",\"cidr\": \"192.168.0.0/16\"}}"; -//put(ak, sk, putUrl, putbody); - -//TODO: When deleting a VPC, replace {project_id} and {vpc_id} in deleteUrl with the actual values. -//String deleteUrl = "https://serviceEndpoint/v1/{project_id}/vpcs/{vpc_id}"; -//delete(ak, sk, deleteUrl); -} - |
In the Package Explorer area on the left, right-click Demo.java and choose Run AS > Java Application from the shortcut menu to run the demo code.
-You can view the API calling logs on the console.
-After sending a request, you will receive a response, including a status code, response header, and response body.
-A status code is a group of digits, ranging from 1xx to 5xx. It indicates the status of a request. For more information, see Status Codes.
-For example, if status code 201 is returned for calling the API used to obtain a user token, the request is successful.
-Similar to a request, a response also has a header, for example, Content-Type.
-Figure 1 shows the response header fields for the API used to obtain a user token. The X-Subject-Token header field is the desired user token. This token can then be used to authenticate the calling of other APIs.
-
For security purposes, you are advised to set the token in ciphertext in configuration files or environment variables and decrypt it when using it.
-The body of a response is often returned in structured format (for example, JSON or XML) as specified in the Content-Type header field. The response body transfers content except the response header.
-The following shows part of the response body for the API used to obtain a user token.
-1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 -10 -11 -12 | { - "token": { - "expires_at": "2019-02-13T06:52:13.855000Z", - "methods": [ - "password" - ], - "catalog": [ - { - "endpoints": [ - { - "region_id": "az-01", -...... - |
If an error occurs during API calling, an error code and a message will be displayed. The following shows an error response body.
-1 -2 -3 -4 | { - "error_msg": "The request message format is invalid.", - "error_code": "IMG.0001" -} - |
In the response body, error_code is an error code, and error_msg provides information about the error.
-Returned Value - |
-Description - |
-
|---|---|
200 OK - |
-The results of GET and PUT operations are returned as expected. - |
-
201 Created - |
-The results of the POST operation are returned as expected. - |
-
202 Accepted - |
-The request has been accepted for processing. - |
-
204 No Content - |
-The results of the DELETE operation are returned as expected. - |
-
Returned Value - |
-Description - |
-
|---|---|
400 Bad Request - |
-The server failed to process the request. - |
-
401 Unauthorized - |
-You must enter a username and password to access the requested page. - |
-
403 Forbidden - |
-You are forbidden to access the requested page. - |
-
404 Not Found - |
-The server could not find the requested page. - |
-
405 Method Not Allowed - |
-You are not allowed to use the method specified in the request. - |
-
406 Not Acceptable - |
-The response generated by the server could not be accepted by the client. - |
-
407 Proxy Authentication Required - |
-You must first authenticate yourself with the proxy. - |
-
408 Request Timeout - |
-The server timed out waiting for the request. - |
-
409 Conflict - |
-The request could not be processed due to a conflict. - |
-
500 Internal Server Error - |
-The request failed due to a service error. - |
-
501 Not Implemented - |
-The request failed because the server does not support the requested function. - |
-
502 Bad Gateway - |
-The request failed because the request is invalid. - |
-
503 Service Unavailable - |
-The request failed because the system is temporarily abnormal. - |
-
504 Gateway Timeout - |
-A gateway timeout error occurred. - |
-
A project ID is required for some URLs when an API is called. Therefore, you need to obtain a project ID in advance. Two methods are available:
- -You can obtain the project ID by calling the IAM API used to query project information based on the specified criteria.
-The API used to obtain a project ID is GET https://{Endpoint}/v3/projects. {Endpoint} is the IAM endpoint and can be obtained from the administratorRegions and Endpoints. For details about API authentication, see Authentication.
-The following is an example response. The value of id is the project ID.
-{
- "projects": [
- {
- "domain_id": "65382450e8f64ac0870cd180d14e684b",
- "is_domain": false,
- "parent_id": "65382450e8f64ac0870cd180d14e684b",
- "name": "project_name",
- "description": "",
- "links": {
- "next": null,
- "previous": null,
- "self": "https://www.example.com/v3/projects/a4a5d4098fb4474fa22cd05f897d6b99"
- },
- "id": "a4a5d4098fb4474fa22cd05f897d6b99",
- "enabled": true
- }
- ],
- "links": {
- "next": null,
- "previous": null,
- "self": "https://www.example.com/v3/projects"
- }
-}
-On the My Credentials page, view project IDs in the project list.
-
In multi-project scenarios, expand the region, and obtain your sub-project ID from the Project ID column.
-An account ID is required for some URLs when an API is called. To obtain the account ID, perform the following steps:
-On the API Credentials page, view Account ID.
-Category - |
-Type - |
-Provider - |
-
|---|---|---|
Attached clusters - |
-AKS clusters - |
-Azure - |
-
EKS clusters - |
-AWS - |
-|
GKE clusters - |
-Google Cloud - |
-|
OpenShift clusters - |
-OpenShift - |
-|
Self-managed clusters - |
-Private Kubernetes provider - |
-|
Self-hosted clusters - |
-Self - |
-|
OTC clusters (self) - |
-CCE standard clusters - |
-OTC - |
-
CCE Turbo clusters - |
-OTC - |
-