Content Type - List By Service
Geliştirici portalının içerik türlerini listeler. İçerik türleri içerik öğelerinin özelliklerini, doğrulama kurallarını ve kısıtlamalarını açıklar.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes?api-version=2022-08-01
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
resource
|
path | True |
string |
Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir. |
service
|
path | True |
string |
API Management hizmetinin adı. Regex pattern: |
subscription
|
path | True |
string |
Hedef aboneliğin kimliği. |
api-version
|
query | True |
string |
Bu işlem için kullanılacak API sürümü. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
İçerik Türü varlıklarından oluşan bir koleksiyon döndürür. |
|
Other Status Codes |
İşlemin neden başarısız olduğunu açıklayan hata yanıtı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
ApiManagementListContentTypes
Sample Request
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/contentTypes?api-version=2022-08-01
Sample Response
{
"value": [
{
"id": "/contentTypes/page",
"type": "Microsoft.ApiManagement/service/contentTypes",
"name": "page",
"properties": {
"name": "Page",
"description": "A regular page",
"schema": {
"properties": {
"en_us": {
"type": "object",
"properties": {
"title": {
"title": "Title",
"description": "Page title. This property gets included in SEO attributes.",
"type": "string",
"indexed": true
},
"description": {
"title": "Description",
"description": "Page description. This property gets included in SEO attributes.",
"type": "string",
"indexed": true
},
"keywords": {
"title": "Keywords",
"description": "Page keywords. This property gets included in SEO attributes.",
"type": "string",
"indexed": true
},
"permalink": {
"title": "Permalink",
"description": "Page permalink, e.g. '/about'.",
"type": "string",
"indexed": true
},
"documentId": {
"title": "Document ID",
"description": "Reference to page content document.",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"title",
"permalink",
"documentId"
]
}
},
"additionalProperties": false
},
"version": "1.0.0"
}
}
]
}
Tanımlar
Name | Description |
---|---|
Content |
İçerik türlerinin sayfalanmış listesi. |
Content |
İçerik türü sözleşme ayrıntıları. |
Error |
Hata Alanı sözleşmesi. |
Error |
Hata Yanıtı. |
ContentTypeCollection
İçerik türlerinin sayfalanmış listesi.
Name | Tür | Description |
---|---|---|
nextLink |
string |
Varsa sonraki sayfa bağlantısı. |
value |
İçerik türleri koleksiyonu. |
ContentTypeContract
İçerik türü sözleşme 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.description |
string |
İçerik türü açıklaması. |
properties.id |
string |
İçerik türü tanımlayıcısı |
properties.name |
string |
İçerik türü adı. 1 ile 250 karakter uzunluğunda olmalıdır. |
properties.schema |
object |
İçerik türü şeması. |
properties.version |
string |
İçerik türü sürümü. |
type |
string |
Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts" |
ErrorFieldContract
Hata Alanı sözleşmesi.
Name | Tür | Description |
---|---|---|
code |
string |
Özellik düzeyi hata kodu. |
message |
string |
Özellik düzeyi hatanın insan tarafından okunabilir gösterimi. |
target |
string |
Özellik adı. |
ErrorResponse
Hata Yanıtı.
Name | Tür | Description |
---|---|---|
error.code |
string |
Hizmet tanımlı hata kodu. Bu kod, yanıtta belirtilen HTTP hata kodu için bir alt durum görevi görür. |
error.details |
Doğrulama hatası durumunda istekte gönderilen geçersiz alanların listesi. |
|
error.message |
string |
Hatanın insan tarafından okunabilir gösterimi. |