List Management Term Lists - Get All Term Lists

Hämtar alla termlistor.

GET {Endpoint}/contentmoderator/lists/v1.0/termlists

URI-parametrar

Name I Obligatorisk Typ Description
Endpoint
path True

string

Azure Cognitive Services-slutpunkter som stöds (protokoll och värdnamn, till exempel https://westus.api.cognitive.microsoft.com).

Begärandehuvud

Name Obligatorisk Typ Description
Ocp-Apim-Subscription-Key True

string

Svar

Name Typ Description
200 OK

TermList[]

OK.

Other Status Codes

APIError

Felsvar.

Säkerhet

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Exempel

Get All Termlists request

Sample Request

GET {Endpoint}/contentmoderator/lists/v1.0/termlists

Sample Response

[
  {
    "Id": 99083,
    "Name": "RacyContentList",
    "Description": "List of racy terms.",
    "Metadata": {
      "Contentsource": "content source A",
      "Purpose": "task A"
    }
  },
  {
    "Id": 89117,
    "Name": "AbuseContentList",
    "Description": "List of abusive terms.",
    "Metadata": {
      "Contentsource": "content source B",
      "TaggedAs": "abuse"
    }
  }
]

Definitioner

Name Description
APIError

Felinformation som API:et returnerar.

Error

Feltext.

TermList

Egenskaper för termlista.

APIError

Felinformation som API:et returnerar.

Name Typ Description
Error

Error

Feltext.

Error

Feltext.

Name Typ Description
Code

string

Message

string

TermList

Egenskaper för termlista.

Name Typ Description
Description

string

Beskrivning av termlistan.

Id

integer

Termlist-ID.

Metadata

object

Metadata för termlistan.

Name

string

Namn på termlista.