Definitions for @turbot/azure-networkwatcher

flowLog

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/networkWatcherName"
},
"targetResourceId": {
"$ref": "#/definitions/targetResourceId"
},
"id": {
"$ref": "#/definitions/flowLogId"
},
"properties": {
"$ref": "#/definitions/flowLogProperties"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/flowLogAka"
}
},
"custom": {
"type": "object",
"properties": {
"networkWatcherName": {
"$ref": "#/definitions/networkWatcherName"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties given",
"input": {
"name": "Microsoft.NetworkNetworkWatcherRGTestVM1-nsg",
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher_southeastasia/FlowLogs/Microsoft.NetworkNetworkWatcherRGTestVM1-nsg",
"turbot": {
"title": "NetworkWatcher_northeurope",
"akas": [
"azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher_southeastasia/FlowLogs/Microsoft.NetworkNetworkWatcherRGTestVM1-nsg"
],
"custom": {
"networkWatcherName": "NetworkWatcher_southeastasia",
"azure": {
"subscriptionId": "3510ae4d-530b-497d-8f30-53b9616fc6c1",
"regionName": "northeurope",
"resourceGroupName": "NetworkWatcherRG"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-networkwatcher#/definitions/flowLog",
"modUri": "tmod:@turbot/azure-networkwatcher"
}
}

flowLogAka

{
"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|resourceGroups)/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/(?:microsoft.network|Microsoft.Network)/(?:networkwatchers|networkWatchers)/(([a-zA-Z])([a-zA-Z0-9._-]{0,78})([a-zA-Z0-9_]))/(?:flowlogs|FlowLogs)/(([a-zA-Z])([a-zA-Z0-9._-]{0,78})([a-zA-Z0-9_]))$",
"tests": [
{
"description": "base",
"input": "azure:///subscriptions/8d8c1110-bf50-4ef0-a674-ab9eefdfa6e3/resourceGroups/integration_test_rg/providers/Microsoft.Network/networkWatchers/turbottest3153/FlowLogs/Microsoft.Networkintegration_test_rgturbottest3153"
},
{
"description": "invalid service name",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.VirtualNetwork/networkWatchers/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-networkwatcher#/definitions/flowLogAka",
"modUri": "tmod:@turbot/azure-networkwatcher"
}
}

flowLogId

{
"type": "string",
"pattern": "^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/(?:resourcegroups|resourceGroups)/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/(?:microsoft.network|Microsoft.Network)/(?:networkwatchers|networkWatchers)/(([a-zA-Z])([a-zA-Z0-9._-]{0,78})([a-zA-Z0-9_]))/(?:flowlogs|FlowLogs)/(([a-zA-Z])([a-zA-Z0-9._-]{0,78})([a-zA-Z0-9_]))$",
"tests": [
{
"description": "base",
"input": "/subscriptions/8d8c1110-bf50-4ef0-a674-ab9eefdfa6e3/resourceGroups/integration_test_rg/providers/Microsoft.Network/networkWatchers/turbottest3153/FlowLogs/Microsoft.Networkintegration_test_rgturbottest3153"
},
{
"description": "invalid service name",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.VirtualNetwork/networkWatchers/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-networkwatcher#/definitions/flowLogId",
"modUri": "tmod:@turbot/azure-networkwatcher"
}
}

flowLogProperties

{
"type": "object",
"properties": {
"provisioningState": {
"type": "string"
},
"targetResourceId": {
"$ref": "#/definitions/targetResourceId"
},
"storageId": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"retentionPolicy": {
"type": "object"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-networkwatcher#/definitions/flowLogProperties",
"modUri": "tmod:@turbot/azure-networkwatcher"
}
}

networkWatcher

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/networkWatcherName"
},
"id": {
"$ref": "#/definitions/networkWatcherId"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"location": {
"type": "string"
},
"etag": {
"type": "string"
},
"provisioningState": {
"type": "string"
},
"turbot": {
"type": "object",
"properties": {
"title": {
"$ref": "#/definitions/networkWatcherName"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/networkWatcherAka"
}
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties given",
"input": {
"name": "NetworkWatcher_northeurope",
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher_northeurope",
"turbot": {
"title": "NetworkWatcher_northeurope",
"akas": [
"azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher_northeurope"
],
"custom": {
"azure": {
"subscriptionId": "3510ae4d-530b-497d-8f30-53b9616fc6c1",
"regionName": "northeurope",
"resourceGroupName": "NetworkWatcherRG"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-networkwatcher#/definitions/networkWatcher",
"modUri": "tmod:@turbot/azure-networkwatcher"
}
}

networkWatcherAka

{
"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_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/networkWatchers/(([a-zA-Z])([a-zA-Z0-9._-]{0,78})([a-zA-Z0-9_]))$",
"tests": [
{
"description": "base",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher_northeurope"
},
{
"description": "invalid service name",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.VirtualNetwork/networkWatchers/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-networkwatcher#/definitions/networkWatcherAka",
"modUri": "tmod:@turbot/azure-networkwatcher"
}
}

networkWatcherId

{
"type": "string",
"pattern": "^/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_.-]{0,89}[A-Za-z0-9_-]/providers/Microsoft.Network/networkWatchers/(([a-zA-Z])([a-zA-Z0-9._-]{0,78})([a-zA-Z0-9_]))$",
"tests": [
{
"description": "base",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher_northeurope"
},
{
"description": "invalid service name",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.VirtualNetwork/networkWatchers/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-networkwatcher#/definitions/networkWatcherId",
"modUri": "tmod:@turbot/azure-networkwatcher"
}
}

networkWatcherName

{
"type": "string",
"pattern": "^(([a-zA-Z])([a-zA-Z0-9._-]{0,78})([a-zA-Z0-9_]))$",
"tests": [
{
"input": "NetworkWatcher_centralindia"
},
{
"input": "Test_net-watcher"
},
{
"input": "Test-watcher_"
},
{
"description": "invalid - cannot start with underscore",
"input": "_123",
"expected": false
},
{
"description": "invalid - cannot end with hyphen",
"input": "123NetworkWatcher123-",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-networkwatcher#/definitions/networkWatcherName",
"modUri": "tmod:@turbot/azure-networkwatcher"
}
}

networkWatcherService

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "Network Watcher"
},
"namespace": {
"const": "Microsoft.Network"
},
"registrationState": {
"type": "string"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/networkWatcherServiceAka"
}
},
"title": {
"const": "Network Watcher"
},
"custom": {
"type": "object",
"properties": {
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "All details provided",
"input": {
"name": "Network Watcher",
"turbot": {
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/providers/Microsoft.Network/services/networkWatcher"
],
"title": "Network Watcher",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7"
}
}
}
}
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/azure-networkwatcher#/definitions/networkWatcherService",
"modUri": "tmod:@turbot/azure-networkwatcher"
}
}

networkWatcherServiceAka

{
"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/networkWatcher$",
"tests": [
{
"description": "base",
"input": "azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/providers/Microsoft.Network/services/networkWatcher"
},
{
"description": "invalid service name",
"input": "azure:///subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/providers/Microsoft.MySql/services/networkWatcher",
"expected": false
},
{
"description": "invalid subscription id",
"input": "azure:///subscriptions/3510ae4d-530b-497d-anbeu90-53b9616fc6c1/providers/Microsoft.Network/services/networkWatcher",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-networkwatcher#/definitions/networkWatcherServiceAka",
"modUri": "tmod:@turbot/azure-networkwatcher"
}
}

targetResourceId

{
"type": "string",
"pattern": "^/subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/(?:resourcegroups|resourceGroups)/[A-Za-z0-9_.-]{0,89}[A-Za-z0-9_-]/providers/(?:microsoft.network|Microsoft.Network)/([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])/([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])$",
"tests": [
{
"description": "base",
"input": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkSecurityGroups/test01"
},
{
"description": "invalid service name",
"input": "//subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Network/networkSecurityGroups/test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-networkwatcher#/definitions/targetResourceId",
"modUri": "tmod:@turbot/azure-networkwatcher"
}
}