Dela via


Backend - List By Service

Visar en samling serverdelar i den angivna tjänstinstansen.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends?api-version=2022-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends?$filter={$filter}&$top={$top}&$skip={$skip}&api-version=2022-08-01

URI-parametrar

Name I Obligatorisk Typ Description
resourceGroupName
path True

string

Namnet på resursgruppen. Namnet är skiftlägesokänsligt.

serviceName
path True

string

Namnet på API Management-tjänsten.

Regex pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$

subscriptionId
path True

string

ID för målprenumerationen.

api-version
query True

string

Den API-version som ska användas för den här åtgärden.

$filter
query

string

| Fält | Användning | Operatorer som stöds | Funktioner som stöds |
|-------------|-------------|-------------|-------------|
| namn | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| rubrik | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |

$skip
query

integer

int32

Antal poster att hoppa över.

$top
query

integer

int32

Antal poster som ska returneras.

Svar

Name Typ Description
200 OK

BackendCollection

Visar en samling serverdelsentiteter.

Other Status Codes

ErrorResponse

Felsvar som beskriver varför åtgärden misslyckades.

Säkerhet

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 personifiera ditt användarkonto

Exempel

ApiManagementListBackends

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/backends?api-version=2022-08-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/backends/proxybackend",
      "type": "Microsoft.ApiManagement/service/backends",
      "name": "proxybackend",
      "properties": {
        "description": "description5308",
        "url": "https://backendname2644/",
        "protocol": "http",
        "credentials": {
          "query": {
            "sv": [
              "xx",
              "bb",
              "cc"
            ]
          },
          "header": {
            "x-my-1": [
              "val1",
              "val2"
            ]
          },
          "authorization": {
            "scheme": "Basic",
            "parameter": "opensesma"
          }
        },
        "proxy": {
          "url": "http://192.168.1.1:8080",
          "username": "Contoso\\admin",
          "password": "<password>"
        },
        "tls": {
          "validateCertificateChain": false,
          "validateCertificateName": false
        }
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/backends/sfbackend",
      "type": "Microsoft.ApiManagement/service/backends",
      "name": "sfbackend",
      "properties": {
        "description": "Service Fabric Test App 1",
        "url": "fabric:/mytestapp/mytestservice",
        "protocol": "http",
        "properties": {
          "serviceFabricCluster": {
            "managementEndpoints": [
              "https://somecluster.com"
            ],
            "clientCertificateId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/certificates/cert1",
            "serverX509Names": [
              {
                "name": "ServerCommonName1",
                "issuerCertificateThumbprint": "IssuerCertificateThumbprint1"
              }
            ],
            "maxPartitionResolutionRetries": 5
          }
        }
      }
    }
  ],
  "count": 2,
  "nextLink": ""
}

Definitioner

Name Description
BackendAuthorizationHeaderCredentials

Information om auktoriseringshuvud.

BackendCollection

Växlingslistrepresentation för serverdel.

BackendContract

Serverdelsinformation.

BackendCredentialsContract

Information om de autentiseringsuppgifter som används för att ansluta till serverdelen.

BackendProperties

Egenskaper som är specifika för serverdelstypen.

BackendProtocol

Protokoll för serverdelskommunikation.

BackendProxyContract

Information om serverdelens WebProxy-server som ska användas i begäran till serverdelen.

BackendServiceFabricClusterProperties

Egenskaper för serverdelen av Service Fabric-typ.

BackendTlsProperties

Egenskaper som styr TLS-certifikatverifiering.

ErrorFieldContract

Fel fältkontrakt.

ErrorResponse

Felsvar.

X509CertificateName

Egenskaper för servern X509Names.

BackendAuthorizationHeaderCredentials

Information om auktoriseringshuvud.

Name Typ Description
parameter

string

Värdet för autentiseringsparametern.

scheme

string

Namn på autentiseringsschema.

BackendCollection

Växlingslistrepresentation för serverdel.

Name Typ Description
count

integer

Totalt antal poster på alla sidor.

nextLink

string

Länk till nästa sida om det finns någon.

value

BackendContract[]

Serverdelsvärden.

BackendContract

Serverdelsinformation.

Name Typ Description
id

string

Fullständigt kvalificerat resurs-ID för resursen. Exempel – /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

Namnet på resursen

properties.credentials

BackendCredentialsContract

Egenskaper för kontrakt för serverdelsautentiseringsuppgifter

properties.description

string

Beskrivning av serverdelen.

properties.properties

BackendProperties

Kontrakt för serverdelsegenskaper

properties.protocol

BackendProtocol

Protokoll för serverdelskommunikation.

properties.proxy

BackendProxyContract

Egenskaper för serverdelsgatewaykontrakt

properties.resourceId

string

Hanterings-URI för resursen i det externa systemet. Den här URL:en kan vara armresurs-ID för Logic Apps, Funktionsappar eller API Apps.

properties.title

string

Serverdelsrubrik.

properties.tls

BackendTlsProperties

Egenskaper för serverdels-TLS

properties.url

string

Körnings-URL för serverdelen.

type

string

Resurstypen. Till exempel "Microsoft.Compute/virtualMachines" eller "Microsoft.Storage/storageAccounts"

BackendCredentialsContract

Information om de autentiseringsuppgifter som används för att ansluta till serverdelen.

Name Typ Description
authorization

BackendAuthorizationHeaderCredentials

Autentisering med auktoriseringshuvud

certificate

string[]

Lista över tumavtryck för klientcertifikat. Ignoreras om certificatesIds tillhandahålls.

certificateIds

string[]

Lista över klientcertifikat-ID:t.

header

object

Beskrivning av rubrikparameter.

query

object

Beskrivning av frågeparameter.

BackendProperties

Egenskaper som är specifika för serverdelstypen.

Name Typ Description
serviceFabricCluster

BackendServiceFabricClusterProperties

Egenskaper för Service Fabric-kluster i serverdelen

BackendProtocol

Protokoll för serverdelskommunikation.

Name Typ Description
http

string

Serverdelen är en RESTful-tjänst.

soap

string

Serverdelen är en SOAP-tjänst.

BackendProxyContract

Information om serverdelens WebProxy-server som ska användas i begäran till serverdelen.

Name Typ Description
password

string

Lösenord för att ansluta till WebProxy-servern

url

string

Egenskapen WebProxy Server AbsoluteUri som innehåller hela URI:n som lagras i URI-instansen, inklusive alla fragment och frågesträngar.

username

string

Användarnamn för att ansluta till WebProxy-servern

BackendServiceFabricClusterProperties

Egenskaper för serverdelen av Service Fabric-typ.

Name Typ Description
clientCertificateId

string

Klientcertifikat-ID för hanteringsslutpunkten.

clientCertificatethumbprint

string

Tumavtrycket för klientcertifikatet för hanteringsslutpunkten. Ignoreras om certificatesIds tillhandahålls

managementEndpoints

string[]

Slutpunkten för klusterhantering.

maxPartitionResolutionRetries

integer

Maximalt antal återförsök vid försök att lösa partitionen.

serverCertificateThumbprints

string[]

Tumavtryck för certifikat som klusterhanteringstjänsten använder för TLS-kommunikation

serverX509Names

X509CertificateName[]

Server X509-certifikatnamnsamling

BackendTlsProperties

Egenskaper som styr TLS-certifikatverifiering.

Name Typ Standardvärde Description
validateCertificateChain

boolean

True

Flagga som anger om SSL-certifikatkedjans validering ska utföras när du använder självsignerade certifikat för den här serverdelsvärden.

validateCertificateName

boolean

True

Flagga som anger om SSL-certifikatets namnverifiering ska utföras när du använder självsignerade certifikat för den här serverdelsvärden.

ErrorFieldContract

Fel fältkontrakt.

Name Typ Description
code

string

Felkod på egenskapsnivå.

message

string

Mänsklig läsbar representation av fel på egenskapsnivå.

target

string

Egenskapsnamn.

ErrorResponse

Felsvar.

Name Typ Description
error.code

string

Tjänstdefinierad felkod. Den här koden fungerar som en understatus för HTTP-felkoden som anges i svaret.

error.details

ErrorFieldContract[]

Listan över ogiltiga fält som skickas i begäran, vid valideringsfel.

error.message

string

Mänsklig läsbar representation av felet.

X509CertificateName

Egenskaper för servern X509Names.

Name Typ Description
issuerCertificateThumbprint

string

Tumavtryck för certifikatutfärdaren.

name

string

Eget namn på certifikatet.