你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Open Shift Clusters - List Credentials
Lists具有指定订阅、资源组和资源名称的 OpenShift 群集的凭据。
操作返回凭据。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials?api-version=2023-09-04
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string |
资源组的名称。 此名称不区分大小写。 |
resource
|
path | True |
string |
OpenShift 群集资源的名称。 |
subscription
|
path | True |
string |
目标订阅的 ID。 |
api-version
|
query | True |
string |
要用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
|
Other Status Codes |
描述操作失败原因的错误响应。 如果资源不存在,则返回 404 (找不到) 。 如果任何输入参数错误,则返回 400 (错误的请求) 。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Lists credentials of an OpenShift cluster with the specified subscription, resource group and resource name.
Sample Request
Sample Response
{
"kubeadminUsername": "kubeadmin",
"kubeadminPassword": "password"
}
定义
名称 | 说明 |
---|---|
Cloud |
CloudError 表示云错误。 |
Cloud |
CloudErrorBody 表示云错误的正文。 |
Open |
OpenShiftClusterCredentials 表示 OpenShift 群集的凭据。 |
CloudError
CloudError 表示云错误。
名称 | 类型 | 说明 |
---|---|---|
error |
来自服务的错误响应。 |
CloudErrorBody
CloudErrorBody 表示云错误的正文。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误的标识符。 代码是固定的,旨在以编程方式使用。 |
details |
有关错误的其他详细信息的列表。 |
|
message |
string |
描述错误的消息,该消息适用于在用户界面中显示。 |
target |
string |
特定错误的目标。 例如,属性的名称出错。 |
OpenShiftClusterCredentials
OpenShiftClusterCredentials 表示 OpenShift 群集的凭据。
名称 | 类型 | 说明 |
---|---|---|
kubeadminPassword |
string |
kubeadmin 用户的密码。 |
kubeadminUsername |
string |
kubeadmin 用户的用户名。 |