Definitions for @turbot/azure-frontdoorservice

frontDoor

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/frontDoorName"
},
"id": {
"type": "string"
},
"location": {
"type": "string"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"friendlyName": {
"type": "string"
},
"routingRules": {
"type": "array"
},
"loadBalancingSettings": {
"type": "array"
},
"healthProbeSettings": {
"type": "array"
},
"backendPools": {
"type": "array"
},
"frontendEndpoints": {
"type": "array"
},
"enabledState": {
"type": "string"
},
"resourceState": {
"type": "string"
},
"provisioningState": {
"type": "string"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/frontDoorAka"
}
},
"title": {
"$ref": "#/definitions/frontDoorName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "base case",
"input": {
"name": "frontDoor1",
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourcegroups/test/providers/Microsoft.Network/frontdoors/vedmisra",
"location": "Global",
"tags": {
"ved1": "misra1"
},
"friendlyName": "vedmisra",
"routingRules": [
{
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourcegroups/test/providers/Microsoft.Network/Frontdoors/vedmisra/RoutingRules/vedtest02",
"frontendEndpoints": [
{
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/frontdoors/vedmisra/frontendEndpoints/vedmisra-azurefd-net"
}
],
"acceptedProtocols": [
"Http",
"Https"
],
"patternsToMatch": [
"/*"
],
"customForwardingPath": null,
"forwardingProtocol": "HttpsOnly",
"cacheConfiguration": null,
"backendPool": {
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/frontdoors/vedmisra/backendPools/vedmisra01"
},
"enabledState": "Enabled",
"resourceState": "Enabled",
"name": "vedtest02",
"type": "Microsoft.Network/Frontdoors/RoutingRules"
}
],
"loadBalancingSettings": [
{
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourcegroups/test/providers/Microsoft.Network/Frontdoors/vedmisra/LoadBalancingSettings/loadBalancingSettings-1562331048447",
"sampleSize": 4,
"successfulSamplesRequired": 2,
"additionalLatencyMilliseconds": 0,
"resourceState": "Enabled",
"name": "loadBalancingSettings-1562331048447",
"type": "Microsoft.Network/Frontdoors/LoadBalancingSettings"
}
],
"healthProbeSettings": [
{
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourcegroups/test/providers/Microsoft.Network/Frontdoors/vedmisra/HealthProbeSettings/healthProbeSettings-1562331048446",
"path": "/",
"protocol": "Https",
"intervalInSeconds": 30,
"resourceState": "Enabled",
"name": "healthProbeSettings-1562331048446",
"type": "Microsoft.Network/Frontdoors/HealthProbeSettings"
}
],
"backendPools": [
{
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourcegroups/test/providers/Microsoft.Network/Frontdoors/vedmisra/BackendPools/vedmisra01",
"backends": [
{
"address": "pskr-test.azurewebsites.net",
"httpPort": 80,
"httpsPort": 443,
"enabledState": "Enabled",
"priority": 1,
"weight": 50,
"backendHostHeader": "pskr-test.azurewebsites.net"
}
],
"loadBalancingSettings": {
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/frontdoors/vedmisra/loadBalancingSettings/loadBalancingSettings-1562331048447"
},
"healthProbeSettings": {
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/frontdoors/vedmisra/healthProbeSettings/healthProbeSettings-1562331048446"
},
"resourceState": "Enabled",
"name": "vedmisra01",
"type": "Microsoft.Network/Frontdoors/BackendPools"
}
],
"frontendEndpoints": [
{
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourcegroups/test/providers/Microsoft.Network/Frontdoors/vedmisra/FrontendEndpoints/vedmisra-azurefd-net",
"hostName": "vedmisra.azurefd.net",
"sessionAffinityEnabledState": "Disabled",
"sessionAffinityTtlSeconds": 0,
"webApplicationFirewallPolicyLink": null,
"resourceState": "Enabled",
"customHttpsProvisioningState": null,
"customHttpsProvisioningSubstate": null,
"customHttpsConfiguration": null,
"name": "vedmisra-azurefd-net",
"type": "Microsoft.Network/Frontdoors/FrontendEndpoints"
}
],
"enabledState": "Enabled",
"resourceState": "Enabled",
"provisioningState": "Succeeded",
"turbot": {
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/rg1/providers/Microsoft.Network/frontdoors/frontDoor1"
],
"title": "frontDoor1",
"tags": {
"ved1": "misra1"
},
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-frontdoorservice#/definitions/frontDoor",
"modUri": "tmod:@turbot/azure-frontdoorservice"
}
}

frontDoorAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Network/frontdoors/[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$",
"tests": [
{
"description": "base - Valid case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/rg1/providers/Microsoft.Network/frontdoors/frontDoor1"
}
],
".turbot": {
"uri": "tmod:@turbot/azure-frontdoorservice#/definitions/frontDoorAka",
"modUri": "tmod:@turbot/azure-frontdoorservice"
}
}

frontDoorName

{
"type": "string",
"pattern": "^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$",
"tests": [
{
"description": "base - Valid case",
"input": "frontDoor1"
}
],
".turbot": {
"uri": "tmod:@turbot/azure-frontdoorservice#/definitions/frontDoorName",
"modUri": "tmod:@turbot/azure-frontdoorservice"
}
}

frontDoorsAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/providers/Microsoft.Network/services/frontDoorService",
"tests": [
{
"descritpion": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/providers/Microsoft.Network/services/frontDoorService"
},
{
"description": "invalid - account ID too long",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7jfhsjkds/network/services/frontDoorService",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-frontdoorservice#/definitions/frontDoorsAka",
"modUri": "tmod:@turbot/azure-frontdoorservice"
}
}

frontDoorService

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "Front Door Service"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/frontDoorsAka"
}
},
"title": {
"const": "Front Doors"
},
"custom": {
"type": "object",
"properties": {
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"required": [
"name",
"turbot"
],
"additionalProperties": true,
"tests": [
{
"description": "base case",
"input": {
"name": "Front Door Service",
"turbot": {
"title": "Front Door Service",
"custom": {
"azure": {
"subscriptionId": "ec7a5a3a-4225-474f-9dbe-bf477c8ea51b"
}
}
}
}
},
{
"description": "invalid case - missing name property",
"input": {
"turbot": {
"title": "Front Door Service",
"custom": {
"azure": {
"subscriptionId": "ec7a5a3a-4225-474f-9dbe-bf477c8ea51b"
}
}
}
},
"expected": false
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/azure-frontdoorservice#/definitions/frontDoorService",
"modUri": "tmod:@turbot/azure-frontdoorservice"
}
}