OpenId Connect Provider - Create Or Update
OpenID Connect Sağlayıcısını oluşturur veya güncelleştirir.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}?api-version=2024-05-01
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
opid
|
path | True |
string maxLength: 256pattern: ^[^*#&+:<>?]+$ |
OpenID Connect Sağlayıcısının tanımlayıcısı. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
Kaynak grubunun adı. Ad büyük/küçük harfe duyarsız. |
service
|
path | True |
string minLength: 1maxLength: 50 pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$ |
API Management hizmetinin adı. |
subscription
|
path | True |
string (uuid) |
Hedef aboneliğin kimliği. Değer bir UUID olmalıdır. |
api-version
|
query | True |
string minLength: 1 |
Bu işlem için kullanılacak API sürümü. |
İstek Başlığı
Name | Gerekli | Tür | Description |
---|---|---|---|
If-Match |
string |
Varlığın ETag'i. Varlık oluştururken gerekli değildir, ancak varlığı güncelleştirirken gereklidir. |
İstek Gövdesi
Name | Gerekli | Tür | Description |
---|---|---|---|
properties.clientId | True |
string |
İstemci uygulaması olan geliştirici konsolunun istemci kimliği. |
properties.displayName | True |
string maxLength: 50 |
Kullanıcı dostu OpenID Connect Sağlayıcısı adı. |
properties.metadataEndpoint | True |
string |
Meta veri uç noktası URI'si. |
properties.clientSecret |
string |
İstemci uygulaması olan geliştirici konsolunun İstemci Gizli Anahtarı. |
|
properties.description |
string |
OpenID Connect Sağlayıcısının kullanıcı dostu açıklaması. |
|
properties.useInApiDocumentation |
boolean |
Doğruysa, Open ID Connect sağlayıcısı geliştirici portalındaki API belgelerinde kullanılır. Değer sağlanmazsa varsayılan olarak false olur. |
|
properties.useInTestConsole |
boolean |
Doğruysa, Open ID Connect sağlayıcısı geliştirici portalı test konsolunda kullanılabilir. Değer sağlanmazsa varsayılan olarak True olur. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
OpenIdConnect Sağlayıcısı başarıyla güncelleştirildi. Üst Bilgiler ETag: string |
|
201 Created |
OpenIdConnect Sağlayıcısı başarıyla oluşturuldu. Üst Bilgiler ETag: string |
|
Other Status Codes |
İşlemin neden başarısız olduğunu açıklayan hata yanıtı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Akışı.
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/authorize
Kapsamlar
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
ApiManagementCreateOpenIdConnectProvider
Örnek isteği
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/openidConnectProviders/templateOpenIdConnect3?api-version=2024-05-01
{
"properties": {
"displayName": "templateoidprovider3",
"metadataEndpoint": "https://example.com",
"clientId": "oidprovidertemplate3",
"clientSecret": "x",
"useInTestConsole": false,
"useInApiDocumentation": true
}
}
Örnek yanıt
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/openidConnectProviders/templateOpenIdConnect3",
"type": "Microsoft.ApiManagement/service/openidconnectproviders",
"name": "templateOpenIdConnect3",
"properties": {
"displayName": "templateoidprovider3",
"metadataEndpoint": "https://example.com",
"clientId": "oidprovidertemplate3",
"useInTestConsole": false,
"useInApiDocumentation": true
}
}
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/openidConnectProviders/templateOpenIdConnect3",
"type": "Microsoft.ApiManagement/service/openidconnectproviders",
"name": "templateOpenIdConnect3",
"properties": {
"displayName": "templateoidprovider3",
"metadataEndpoint": "https://example.com",
"clientId": "oidprovidertemplate3",
"useInTestConsole": false,
"useInApiDocumentation": true
}
}
Tanımlar
Name | Description |
---|---|
Error |
Kaynak yönetimi hatası ek bilgileri. |
Error |
Hata ayrıntısı. |
Error |
Hata yanıtı |
Openid |
OpenId Connect Sağlayıcısı ayrıntıları. |
ErrorAdditionalInfo
Kaynak yönetimi hatası ek bilgileri.
Name | Tür | Description |
---|---|---|
info |
object |
Ek bilgiler. |
type |
string |
Ek bilgi türü. |
ErrorDetail
Hata ayrıntısı.
Name | Tür | Description |
---|---|---|
additionalInfo |
Hata ek bilgileri. |
|
code |
string |
Hata kodu. |
details |
Hata ayrıntıları. |
|
message |
string |
Hata iletisi. |
target |
string |
Hata hedefi. |
ErrorResponse
Hata yanıtı
Name | Tür | Description |
---|---|---|
error |
Hata nesnesi. |
OpenidConnectProviderContract
OpenId Connect Sağlayıcısı ayrıntıları.
Name | Tür | Description |
---|---|---|
id |
string |
Kaynağın tam kaynak kimliği. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
Kaynağın adı |
properties.clientId |
string |
İstemci uygulaması olan geliştirici konsolunun istemci kimliği. |
properties.clientSecret |
string |
İstemci uygulaması olan geliştirici konsolunun İstemci Gizli Anahtarı. |
properties.description |
string |
OpenID Connect Sağlayıcısının kullanıcı dostu açıklaması. |
properties.displayName |
string maxLength: 50 |
Kullanıcı dostu OpenID Connect Sağlayıcısı adı. |
properties.metadataEndpoint |
string |
Meta veri uç noktası URI'si. |
properties.useInApiDocumentation |
boolean |
Doğruysa, Open ID Connect sağlayıcısı geliştirici portalındaki API belgelerinde kullanılır. Değer sağlanmazsa varsayılan olarak false olur. |
properties.useInTestConsole |
boolean |
Doğruysa, Open ID Connect sağlayıcısı geliştirici portalı test konsolunda kullanılabilir. Değer sağlanmazsa varsayılan olarak True olur. |
type |
string |
Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts" |