Identity Provider - List Secrets
取得識別提供者的客戶端密碼詳細數據。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}/listSecrets?api-version=2022-08-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
identity
|
path | True |
識別提供者類型識別碼。 |
|
resource
|
path | True |
string |
資源群組的名稱。 名稱不區分大小寫。 |
service
|
path | True |
string |
API 管理 服務的名稱。 Regex pattern: |
subscription
|
path | True |
string |
目標訂用帳戶的標識碼。 |
api-version
|
query | True |
string |
用於此作業的 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
回應本文包含客戶端密碼。 Headers ETag: string |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
ApiManagementIdentityProviderListSecrets
Sample Request
POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/identityProviders/aadB2C/listSecrets?api-version=2022-08-01
Sample Response
{
"clientSecret": "XXXXXXX"
}
定義
名稱 | Description |
---|---|
Client |
IdentityProviders、Aad、OpenID 或 OAuth 中使用的用戶端或應用程式密碼。 |
Error |
錯誤欄位合約。 |
Error |
錯誤回應。 |
Identity |
識別提供者類型識別碼。 |
ClientSecretContract
IdentityProviders、Aad、OpenID 或 OAuth 中使用的用戶端或應用程式密碼。
名稱 | 類型 | Description |
---|---|---|
clientSecret |
string |
IdentityProviders、Aad、OpenID 或 OAuth 中使用的用戶端或應用程式密碼。 |
ErrorFieldContract
錯誤欄位合約。
名稱 | 類型 | Description |
---|---|---|
code |
string |
屬性層級錯誤碼。 |
message |
string |
人類可讀取的屬性層級錯誤表示法。 |
target |
string |
屬性名稱。 |
ErrorResponse
錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error.code |
string |
服務定義的錯誤碼。 此代碼會作為回應中指定之 HTTP 錯誤碼的子狀態。 |
error.details |
要求中傳送無效欄位的清單,以防發生驗證錯誤。 |
|
error.message |
string |
人類可閱讀的錯誤表示法。 |
IdentityProviderType
識別提供者類型識別碼。
名稱 | 類型 | Description |
---|---|---|
aad |
string |
Azure Active Directory 作為識別提供者。 |
aadB2C |
string |
Azure Active Directory B2C 作為識別提供者。 |
string |
Facebook 身分識別提供者。 |
|
string |
Google 作為身分識別提供者。 |
|
microsoft |
string |
Microsoft Live 作為識別提供者。 |
string |
Twitter 作為識別提供者。 |