|
| 1 | +{ |
| 2 | + "id": "https://schema.management.azure.com/schemas/2019-03-01-preview/Microsoft.CostManagement.json#", |
| 3 | + "$schema": "http://json-schema.org/draft-04/schema#", |
| 4 | + "title": "Microsoft.CostManagement", |
| 5 | + "description": "Microsoft CostManagement Resource Types", |
| 6 | + "resourceDefinitions": {}, |
| 7 | + "managementGroup_resourceDefinitions": { |
| 8 | + "externalSubscriptions": { |
| 9 | + "type": "object", |
| 10 | + "properties": { |
| 11 | + "apiVersion": { |
| 12 | + "type": "string", |
| 13 | + "enum": [ |
| 14 | + "2019-03-01-preview" |
| 15 | + ] |
| 16 | + }, |
| 17 | + "name": { |
| 18 | + "type": "string", |
| 19 | + "description": "External Subscription Name. (eg 'aws-{UsageAccountId}')" |
| 20 | + }, |
| 21 | + "type": { |
| 22 | + "type": "string", |
| 23 | + "enum": [ |
| 24 | + "Microsoft.CostManagement/externalSubscriptions" |
| 25 | + ] |
| 26 | + } |
| 27 | + }, |
| 28 | + "required": [ |
| 29 | + "apiVersion", |
| 30 | + "name", |
| 31 | + "type" |
| 32 | + ], |
| 33 | + "description": "Microsoft.CostManagement/externalSubscriptions" |
| 34 | + } |
| 35 | + }, |
| 36 | + "tenant_resourceDefinitions": { |
| 37 | + "cloudConnectors": { |
| 38 | + "type": "object", |
| 39 | + "properties": { |
| 40 | + "apiVersion": { |
| 41 | + "type": "string", |
| 42 | + "enum": [ |
| 43 | + "2019-03-01-preview" |
| 44 | + ] |
| 45 | + }, |
| 46 | + "kind": { |
| 47 | + "type": "string", |
| 48 | + "description": "Connector kind (eg aws)" |
| 49 | + }, |
| 50 | + "name": { |
| 51 | + "type": "string", |
| 52 | + "description": "Connector Name." |
| 53 | + }, |
| 54 | + "properties": { |
| 55 | + "oneOf": [ |
| 56 | + { |
| 57 | + "$ref": "#/definitions/ConnectorProperties" |
| 58 | + }, |
| 59 | + { |
| 60 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 61 | + } |
| 62 | + ], |
| 63 | + "description": "The properties of a Connector" |
| 64 | + }, |
| 65 | + "type": { |
| 66 | + "type": "string", |
| 67 | + "enum": [ |
| 68 | + "Microsoft.CostManagement/cloudConnectors" |
| 69 | + ] |
| 70 | + } |
| 71 | + }, |
| 72 | + "required": [ |
| 73 | + "apiVersion", |
| 74 | + "name", |
| 75 | + "properties", |
| 76 | + "type" |
| 77 | + ], |
| 78 | + "description": "Microsoft.CostManagement/cloudConnectors" |
| 79 | + } |
| 80 | + }, |
| 81 | + "extension_resourceDefinitions": { |
| 82 | + "showbackRules": { |
| 83 | + "type": "object", |
| 84 | + "properties": { |
| 85 | + "apiVersion": { |
| 86 | + "type": "string", |
| 87 | + "enum": [ |
| 88 | + "2019-03-01-preview" |
| 89 | + ] |
| 90 | + }, |
| 91 | + "name": { |
| 92 | + "type": "string", |
| 93 | + "description": "Showback rule name" |
| 94 | + }, |
| 95 | + "properties": { |
| 96 | + "oneOf": [ |
| 97 | + { |
| 98 | + "$ref": "#/definitions/ShowbackRuleProperties" |
| 99 | + }, |
| 100 | + { |
| 101 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 102 | + } |
| 103 | + ], |
| 104 | + "description": "The properties of a showback rule." |
| 105 | + }, |
| 106 | + "type": { |
| 107 | + "type": "string", |
| 108 | + "enum": [ |
| 109 | + "Microsoft.CostManagement/showbackRules" |
| 110 | + ] |
| 111 | + } |
| 112 | + }, |
| 113 | + "required": [ |
| 114 | + "apiVersion", |
| 115 | + "name", |
| 116 | + "properties", |
| 117 | + "type" |
| 118 | + ], |
| 119 | + "description": "Microsoft.CostManagement/showbackRules" |
| 120 | + } |
| 121 | + }, |
| 122 | + "definitions": { |
| 123 | + "ConnectorProperties": { |
| 124 | + "type": "object", |
| 125 | + "properties": { |
| 126 | + "billingModel": { |
| 127 | + "oneOf": [ |
| 128 | + { |
| 129 | + "type": "string", |
| 130 | + "enum": [ |
| 131 | + "trial", |
| 132 | + "autoUpgrade", |
| 133 | + "premium", |
| 134 | + "expired" |
| 135 | + ] |
| 136 | + }, |
| 137 | + { |
| 138 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 139 | + } |
| 140 | + ], |
| 141 | + "description": "Connector billing model." |
| 142 | + }, |
| 143 | + "credentialsKey": { |
| 144 | + "type": "string", |
| 145 | + "description": "Credentials authentication key (eg AWS ARN)" |
| 146 | + }, |
| 147 | + "credentialsSecret": { |
| 148 | + "type": "string", |
| 149 | + "description": "Credentials secret (eg AWS ExternalId)" |
| 150 | + }, |
| 151 | + "defaultManagementGroupId": { |
| 152 | + "type": "string", |
| 153 | + "description": "Default ManagementGroupId" |
| 154 | + }, |
| 155 | + "displayName": { |
| 156 | + "type": "string", |
| 157 | + "description": "Connector DisplayName" |
| 158 | + }, |
| 159 | + "reportId": { |
| 160 | + "type": "string", |
| 161 | + "description": "Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)" |
| 162 | + }, |
| 163 | + "subscriptionId": { |
| 164 | + "type": "string", |
| 165 | + "description": "Billing SubscriptionId" |
| 166 | + } |
| 167 | + }, |
| 168 | + "description": "The properties of a Connector" |
| 169 | + }, |
| 170 | + "CostAllocationDetails": { |
| 171 | + "type": "object", |
| 172 | + "properties": { |
| 173 | + "policy": { |
| 174 | + "oneOf": [ |
| 175 | + { |
| 176 | + "type": "string", |
| 177 | + "enum": [ |
| 178 | + "Proportional", |
| 179 | + "Evenly", |
| 180 | + "Fixed" |
| 181 | + ] |
| 182 | + }, |
| 183 | + { |
| 184 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 185 | + } |
| 186 | + ], |
| 187 | + "description": "Cost allocation policy." |
| 188 | + } |
| 189 | + }, |
| 190 | + "description": "Represents CostAllocation showback rule model" |
| 191 | + }, |
| 192 | + "CostAllocationDetailsKind": { |
| 193 | + "type": "object", |
| 194 | + "properties": { |
| 195 | + "details": { |
| 196 | + "oneOf": [ |
| 197 | + { |
| 198 | + "$ref": "#/definitions/CostAllocationDetails" |
| 199 | + }, |
| 200 | + { |
| 201 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 202 | + } |
| 203 | + ], |
| 204 | + "description": "Represents CostAllocation showback rule model" |
| 205 | + }, |
| 206 | + "ruleType": { |
| 207 | + "type": "string", |
| 208 | + "enum": [ |
| 209 | + "CostAllocation" |
| 210 | + ] |
| 211 | + } |
| 212 | + }, |
| 213 | + "required": [ |
| 214 | + "ruleType" |
| 215 | + ], |
| 216 | + "description": "Represents CostAllocation showback rule model" |
| 217 | + }, |
| 218 | + "CustomPriceDetails": { |
| 219 | + "type": "object", |
| 220 | + "properties": { |
| 221 | + "benefits": { |
| 222 | + "oneOf": [ |
| 223 | + { |
| 224 | + "type": "array", |
| 225 | + "items": { |
| 226 | + "type": "string", |
| 227 | + "enum": [ |
| 228 | + "Sum", |
| 229 | + "None", |
| 230 | + "All", |
| 231 | + "AHUB", |
| 232 | + "Reservations" |
| 233 | + ] |
| 234 | + } |
| 235 | + }, |
| 236 | + { |
| 237 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 238 | + } |
| 239 | + ], |
| 240 | + "description": "Array of benefits." |
| 241 | + }, |
| 242 | + "markups": { |
| 243 | + "oneOf": [ |
| 244 | + { |
| 245 | + "type": "array", |
| 246 | + "items": { |
| 247 | + "$ref": "#/definitions/Markup" |
| 248 | + } |
| 249 | + }, |
| 250 | + { |
| 251 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 252 | + } |
| 253 | + ], |
| 254 | + "description": "List of markups." |
| 255 | + }, |
| 256 | + "pricesheet": { |
| 257 | + "type": "string" |
| 258 | + } |
| 259 | + }, |
| 260 | + "description": "Represents Custom price showback rule model" |
| 261 | + }, |
| 262 | + "CustomPriceDetailsKind": { |
| 263 | + "type": "object", |
| 264 | + "properties": { |
| 265 | + "details": { |
| 266 | + "oneOf": [ |
| 267 | + { |
| 268 | + "$ref": "#/definitions/CustomPriceDetails" |
| 269 | + }, |
| 270 | + { |
| 271 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 272 | + } |
| 273 | + ], |
| 274 | + "description": "Represents Custom price showback rule model" |
| 275 | + }, |
| 276 | + "ruleType": { |
| 277 | + "type": "string", |
| 278 | + "enum": [ |
| 279 | + "CustomPrice" |
| 280 | + ] |
| 281 | + } |
| 282 | + }, |
| 283 | + "required": [ |
| 284 | + "ruleType" |
| 285 | + ], |
| 286 | + "description": "Represents Custom price showback rule model" |
| 287 | + }, |
| 288 | + "Markup": { |
| 289 | + "type": "object", |
| 290 | + "properties": { |
| 291 | + "percentage": { |
| 292 | + "type": "string" |
| 293 | + } |
| 294 | + }, |
| 295 | + "description": "The Markup model definition" |
| 296 | + }, |
| 297 | + "Scope": { |
| 298 | + "type": "object", |
| 299 | + "properties": { |
| 300 | + "childScope": { |
| 301 | + "oneOf": [ |
| 302 | + { |
| 303 | + "$ref": "#/definitions/Scope" |
| 304 | + }, |
| 305 | + { |
| 306 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 307 | + } |
| 308 | + ], |
| 309 | + "description": "The Scope model definition" |
| 310 | + }, |
| 311 | + "id": { |
| 312 | + "type": "string", |
| 313 | + "description": "Scope id" |
| 314 | + }, |
| 315 | + "name": { |
| 316 | + "type": "string", |
| 317 | + "description": "Scope name" |
| 318 | + }, |
| 319 | + "type": { |
| 320 | + "type": "string", |
| 321 | + "description": "Scope type" |
| 322 | + } |
| 323 | + }, |
| 324 | + "description": "The Scope model definition" |
| 325 | + }, |
| 326 | + "ShowbackRuleProperties": { |
| 327 | + "type": "object", |
| 328 | + "oneOf": [ |
| 329 | + { |
| 330 | + "$ref": "#/definitions/CustomPriceDetailsKind" |
| 331 | + }, |
| 332 | + { |
| 333 | + "$ref": "#/definitions/CostAllocationDetailsKind" |
| 334 | + } |
| 335 | + ], |
| 336 | + "properties": { |
| 337 | + "description": { |
| 338 | + "type": "string", |
| 339 | + "description": "Description of a showback rule." |
| 340 | + }, |
| 341 | + "scopes": { |
| 342 | + "oneOf": [ |
| 343 | + { |
| 344 | + "type": "array", |
| 345 | + "items": { |
| 346 | + "$ref": "#/definitions/Scope" |
| 347 | + } |
| 348 | + }, |
| 349 | + { |
| 350 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 351 | + } |
| 352 | + ], |
| 353 | + "description": "List of authorized assigned scopes." |
| 354 | + }, |
| 355 | + "status": { |
| 356 | + "oneOf": [ |
| 357 | + { |
| 358 | + "type": "string", |
| 359 | + "enum": [ |
| 360 | + "NotActive", |
| 361 | + "Active" |
| 362 | + ] |
| 363 | + }, |
| 364 | + { |
| 365 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 366 | + } |
| 367 | + ], |
| 368 | + "description": "The current status of the showback rule." |
| 369 | + } |
| 370 | + }, |
| 371 | + "description": "The properties of a showback rule." |
| 372 | + } |
| 373 | + } |
| 374 | +} |
0 commit comments