{

  "routes": [

    {

      "downstreamPathTemplate": "/WeatherForecast",

      "upstreamPathTemplate": "/WeatherForecast",

      "upstreamHttpMethod": [

        "Get"

      ],

      "downstreamHttpMethod": null,

      "addHeadersToRequest": {},

      "upstreamHeaderTransform": {},

      "downstreamHeaderTransform": {},

      "addClaimsToRequest": {},

      "routeClaimsRequirement": {},

      "addQueriesToRequest": {},

      "changeDownstreamPathTemplate": {},

      "requestIdKey": null,

      "fileCacheOptions": {

        "ttlSeconds": 0,

        "region": null

      },

      "routeIsCaseSensitive": false,

      "serviceName": "service-a",

      "serviceNamespace": null,

      "downstreamScheme": "http",

      "qoSOptions": {

        "exceptionsAllowedBeforeBreaking": 3,

        "durationOfBreak": 60000,

        "timeoutValue": 1000

      },

      "loadBalancerOptions": {

        "type": "RoundRobin",

        "key": null,

        "expiry": 0

      },

      "rateLimitOptions": {

        "clientWhitelist": [],

        "enableRateLimiting": false,

        "period": null,

        "periodTimespan": 0,

        "limit": 0

      },

      "authenticationOptions": {

        "authenticationProviderKey": "Gatewaykey",

        "allowedScopes": []

      },

      "httpHandlerOptions": {

        "allowAutoRedirect": false,

        "useCookieContainer": false,

        "useTracing": false,

        "useProxy": true,

        "maxConnectionsPerServer": 2147483647

      },

      "downstreamHostAndPorts": [],

      "upstreamHost": null,

      "key": null,

      "delegatingHandlers": [],

      "priority": 1,

      "timeout": 0,

      "dangerousAcceptAnyServerCertificateValidator": false,

      "securityOptions": {

        "ipAllowedList": [],

        "ipBlockedList": []

      },

      "downstreamHttpVersion": null

    }

  ],

  "dynamicRoutes": [],

  "aggregates": [],

  "globalConfiguration": {

    "requestIdKey": null,

    "serviceDiscoveryProvider": {

      "scheme": null,

      "host": null,

      "port": 0,

      "type": null,

      "token": null,

      "configurationKey": null,

      "pollingInterval": 0,

      "namespace": null

    },

    "rateLimitOptions": {

      "clientIdHeader": "ClientId",

      "quotaExceededMessage": null,

      "rateLimitCounterPrefix": "ocelot",

      "disableRateLimitHeaders": false,

      "httpStatusCode": 429

    },

    "qoSOptions": {

      "exceptionsAllowedBeforeBreaking": 0,

      "durationOfBreak": 0,

      "timeoutValue": 0

    },

    "baseUrl": "http://localhost:5000",

    "loadBalancerOptions": {

      "type": null,

      "key": null,

      "expiry": 0

    },

    "downstreamScheme": null,

    "httpHandlerOptions": {

      "allowAutoRedirect": false,

      "useCookieContainer": false,

      "useTracing": false,

      "useProxy": true,

      "maxConnectionsPerServer": 2147483647

    },

    "downstreamHttpVersion": null

  }

}

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注