|
143 | 143 | "description": "Enabling this allows the 'Host' header to be passed through to the origin.\n", |
144 | 144 | "type": "boolean" |
145 | 145 | }, |
| 146 | + "labels": { |
| 147 | + "additionalProperties": { |
| 148 | + "type": "string" |
| 149 | + }, |
| 150 | + "description": "Labels are key-value string pairs that can be attached to a distribution.", |
| 151 | + "type": "object" |
| 152 | + }, |
146 | 153 | "logSink": { |
147 | 154 | "discriminator": { |
148 | 155 | "mapping": { |
|
246 | 253 | "description": "Enabling this allows the 'Host' header to be passed through to the origin.\n", |
247 | 254 | "type": "boolean" |
248 | 255 | }, |
| 256 | + "labels": { |
| 257 | + "additionalProperties": { |
| 258 | + "nullable": true, |
| 259 | + "type": "string" |
| 260 | + }, |
| 261 | + "description": "Labels are key-value string pairs that can be attached to a distribution.\nJSON Merge Patch is supported, meaning setting a key to null will remove it.\n", |
| 262 | + "type": "object" |
| 263 | + }, |
249 | 264 | "logSink": { |
250 | 265 | "discriminator": { |
251 | 266 | "mapping": { |
|
344 | 359 | "description": "While optional, it is greatly encouraged to provide an `intentId`.\nThis is used to deduplicate requests.\nIf multiple POST-Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped.\n", |
345 | 360 | "type": "string" |
346 | 361 | }, |
| 362 | + "labels": { |
| 363 | + "additionalProperties": { |
| 364 | + "type": "string" |
| 365 | + }, |
| 366 | + "description": "Labels are key-value string pairs that can be attached to a distribution.", |
| 367 | + "type": "object" |
| 368 | + }, |
347 | 369 | "logSink": { |
348 | 370 | "discriminator": { |
349 | 371 | "mapping": { |
|
2224 | 2246 | }, |
2225 | 2247 | "blockedCountries": [], |
2226 | 2248 | "blockedIps": [], |
| 2249 | + "labels": {}, |
2227 | 2250 | "regions": [ |
2228 | 2251 | "EU", |
2229 | 2252 | "ASIA" |
|
2254 | 2277 | }, |
2255 | 2278 | "blockedCountries": [], |
2256 | 2279 | "blockedIps": [], |
| 2280 | + "labels": {}, |
2257 | 2281 | "regions": [ |
2258 | 2282 | "EU", |
2259 | 2283 | "ASIA" |
|
2299 | 2323 | }, |
2300 | 2324 | "blockedCountries": [], |
2301 | 2325 | "blockedIps": [], |
| 2326 | + "labels": {}, |
2302 | 2327 | "regions": [ |
2303 | 2328 | "EU", |
2304 | 2329 | "ASIA" |
|
2329 | 2354 | }, |
2330 | 2355 | "blockedCountries": [], |
2331 | 2356 | "blockedIps": [], |
| 2357 | + "labels": {}, |
2332 | 2358 | "regions": [ |
2333 | 2359 | "EU", |
2334 | 2360 | "ASIA" |
|
2443 | 2469 | "application/json": { |
2444 | 2470 | "examples": { |
2445 | 2471 | "full HTTP distribution": { |
2446 | | - "description": "Creates a minimal distribution which is served in `EU` and `ASIA`.\nThe upstream host for this example is `httpbin.org`.\nThis enables some features in the initial request like\n- waf\n- geofencing\n- geoblocking\n- originRequestHeaders\n- traffic limiting\n", |
| 2472 | + "description": "Creates a minimal distribution which is served in `EU` and `ASIA`.\nThe upstream host for this example is `httpbin.org`.\nThis enables some features in the initial request like\n- waf\n- geofencing\n- geoblocking\n- originRequestHeaders\n- labels\n- traffic limiting\n", |
2447 | 2473 | "value": { |
2448 | 2474 | "backend": { |
2449 | 2475 | "geofencing": { |
|
2462 | 2488 | "1.2.3.4" |
2463 | 2489 | ], |
2464 | 2490 | "intentId": "someRandomValue", |
| 2491 | + "labels": { |
| 2492 | + "environment": "production", |
| 2493 | + "team": "web-development" |
| 2494 | + }, |
2465 | 2495 | "monthlyLimitBytes": 123000000, |
2466 | 2496 | "regions": [ |
2467 | 2497 | "EU", |
|
2531 | 2561 | }, |
2532 | 2562 | "blockedCountries": [], |
2533 | 2563 | "blockedIps": [], |
| 2564 | + "labels": { |
| 2565 | + "environment": "production", |
| 2566 | + "team": "web-development" |
| 2567 | + }, |
2534 | 2568 | "regions": [ |
2535 | 2569 | "EU", |
2536 | 2570 | "ASIA" |
|
2674 | 2708 | }, |
2675 | 2709 | "blockedCountries": [], |
2676 | 2710 | "blockedIps": [], |
| 2711 | + "labels": {}, |
2677 | 2712 | "regions": [ |
2678 | 2713 | "EU", |
2679 | 2714 | "ASIA" |
|
2802 | 2837 | }, |
2803 | 2838 | "blockedCountries": [], |
2804 | 2839 | "blockedIps": [], |
| 2840 | + "labels": {}, |
2805 | 2841 | "regions": [ |
2806 | 2842 | "EU", |
2807 | 2843 | "ASIA" |
|
2840 | 2876 | }, |
2841 | 2877 | "blockedCountries": [], |
2842 | 2878 | "blockedIps": [], |
| 2879 | + "labels": {}, |
2843 | 2880 | "regions": [ |
2844 | 2881 | "EU", |
2845 | 2882 | "ASIA" |
|
2872 | 2909 | }, |
2873 | 2910 | "blockedCountries": [], |
2874 | 2911 | "blockedIps": [], |
| 2912 | + "labels": {}, |
2875 | 2913 | "regions": [ |
2876 | 2914 | "EU", |
2877 | 2915 | "ASIA" |
|
2904 | 2942 | }, |
2905 | 2943 | "blockedCountries": [], |
2906 | 2944 | "blockedIps": [], |
| 2945 | + "labels": {}, |
2907 | 2946 | "regions": [ |
2908 | 2947 | "EU", |
2909 | 2948 | "ASIA" |
|
3032 | 3071 | } |
3033 | 3072 | } |
3034 | 3073 | }, |
| 3074 | + "labels only": { |
| 3075 | + "description": "Labels are updated using JSON Merge Patch. Setting a label to null removes it.", |
| 3076 | + "value": { |
| 3077 | + "config": { |
| 3078 | + "labels": { |
| 3079 | + "environment": "development", |
| 3080 | + "team": null |
| 3081 | + } |
| 3082 | + }, |
| 3083 | + "intentId": "someIntent" |
| 3084 | + } |
| 3085 | + }, |
3035 | 3086 | "originUrl and regions": { |
3036 | 3087 | "description": "Both regions and originUrl are modified in the same Patch Request", |
3037 | 3088 | "value": { |
|
3097 | 3148 | }, |
3098 | 3149 | "blockedCountries": [], |
3099 | 3150 | "blockedIps": [], |
| 3151 | + "labels": { |
| 3152 | + "environment": "development" |
| 3153 | + }, |
3100 | 3154 | "regions": [ |
3101 | 3155 | "EU", |
3102 | 3156 | "ASIA" |
|
0 commit comments