-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into typespec-next
- Loading branch information
Showing
8 changed files
with
314 additions
and
0 deletions.
There are no files selected for viewing
216 changes: 216 additions & 0 deletions
216
specification/eventgrid/data-plane/Microsoft.AVS/stable/2018-01-01/PrivateCloud.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,216 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2018-01-01", | ||
"title": "Schema of Azure VMware Solution events published to Azure Event Grid", | ||
"description": "Describes the schema of the Azure VMware Solution events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." | ||
}, | ||
"paths": {}, | ||
"definitions": { | ||
"AvsPrivateCloudUpdatingEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudUpdating event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsPrivateCloudEventData" | ||
} | ||
], | ||
"properties": {} | ||
}, | ||
"AvsPrivateCloudUpdatedEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudUpdated event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsPrivateCloudEventData" | ||
} | ||
], | ||
"properties": {} | ||
}, | ||
"AvsPrivateCloudFailedEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.PrivateCloudFailed event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsPrivateCloudEventData" | ||
} | ||
], | ||
"properties": { | ||
"failureMessage": { | ||
"description": "Failure reason of an event.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"AvsClusterCreatedEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterCreated event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsClusterEventData" | ||
} | ||
], | ||
"properties": {} | ||
}, | ||
"AvsClusterDeletedEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterDeleted event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsClusterEventData" | ||
} | ||
], | ||
"properties": {} | ||
}, | ||
"AvsClusterUpdatingEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterUpdating event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsClusterEventData" | ||
} | ||
], | ||
"properties": {} | ||
}, | ||
"AvsClusterUpdatedEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterUpdated event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsClusterEventData" | ||
} | ||
], | ||
"properties": {} | ||
}, | ||
"AvsClusterFailedEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ClusterFailed event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsClusterEventData" | ||
} | ||
], | ||
"properties": { | ||
"failureMessage": { | ||
"description": "Failure reason of an event.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"AvsScriptExecutionStartedEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionStarted event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsScriptExecutionEventData" | ||
} | ||
], | ||
"properties": {} | ||
}, | ||
"AvsScriptExecutionFinishedEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionFinished event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsScriptExecutionEventData" | ||
} | ||
], | ||
"properties": { | ||
"namedOutputs": { | ||
"description": "Named outputs of completed execution, if any.", | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"AvsScriptExecutionCancelledEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionCancelled event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsScriptExecutionEventData" | ||
} | ||
], | ||
"properties": {} | ||
}, | ||
"AvsScriptExecutionFailedEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionFailed event.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/AvsScriptExecutionEventData" | ||
} | ||
], | ||
"properties": { | ||
"failureMessage": { | ||
"description": "Failure reason of an event.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"AvsPrivateCloudEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for Microsoft.AVS/privateClouds events.", | ||
"type": "object", | ||
"properties": { | ||
"operationId": { | ||
"description": "Id of the operation that caused this event.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"AvsClusterEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for Microsoft.AVS/clusters events.", | ||
"type": "object", | ||
"properties": { | ||
"operationId": { | ||
"description": "Id of the operation that caused this event.", | ||
"type": "string" | ||
}, | ||
"addedHostNames": { | ||
"description": "Hosts added to the cluster in this event, if any.", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"removedHostNames": { | ||
"description": "Hosts removed to the cluster in this event, if any.", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"inMaintenanceHostNames": { | ||
"description": "Hosts in Maintenance mode in the cluster, if any.", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"AvsScriptExecutionEventData": { | ||
"description": "Schema of the Data property of an EventGridEvent for Microsoft.AVS/scriptExecutions events.", | ||
"type": "object", | ||
"properties": { | ||
"operationId": { | ||
"description": "Id of the operation that caused this event.", | ||
"type": "string" | ||
}, | ||
"cmdletId": { | ||
"description": "Cmdlet referenced in the execution that caused this event.", | ||
"type": "string" | ||
}, | ||
"output": { | ||
"description": "Stdout outputs from the execution, if any.", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...a-plane/Microsoft.AVS/stable/2018-01-01/examples/cloud-events-schema/cluster_updated.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}", | ||
"subject": "/clusters/{cluster_name}", | ||
"type": "Microsoft.AVS.ClusterUpdated", | ||
"time": "2023-12-09T16:50:19.9995668-05:00", | ||
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b", | ||
"data": { | ||
"addedHostNames": [ | ||
"esx17-r04.p01.431cc…" | ||
], | ||
"removedHostNames": [ | ||
"esx15-r01.p01.431cc…" | ||
], | ||
"inMaintenanceHostNames": [ | ||
"esx01-r03.p01.431cc…" | ||
], | ||
"operationId": "c8c0b304-2db3-402b-8a6b-06065e0e1755" | ||
}, | ||
"specVersion": "1.0" | ||
} |
11 changes: 11 additions & 0 deletions
11
...e/Microsoft.AVS/stable/2018-01-01/examples/cloud-events-schema/privatecloud_updating.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}", | ||
"subject": "", | ||
"type": "Microsoft.AVS.PrivateCloudUpdating", | ||
"time": "2023-12-09T16:50:19.9995668-05:00", | ||
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b", | ||
"data": { | ||
"operationId": "6dcd7db8-0679-40d9-bb8a-6f2a684395e2" | ||
}, | ||
"specVersion": "1.0" | ||
} |
14 changes: 14 additions & 0 deletions
14
...Microsoft.AVS/stable/2018-01-01/examples/cloud-events-schema/script_execution_failed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"source": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}", | ||
"subject": "/scriptExecutions/{execution_name}", | ||
"type": "Microsoft.AVS.ScriptExecutionFailed", | ||
"time": "2023-12-09T16:50:19.9995668-05:00", | ||
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b", | ||
"data": { | ||
"operationId": "fe1cb595-71c8-47d7-b505-60d39a44d53d", | ||
"failureMessage": "05/04/2023 03:15:40 Get-SpbmStoragePolicy SpbmStoragePolicy with name ' RAID-5 FTT-1' was not found using the specified filter(s).", | ||
"cmdletId": "[email protected]/Set-LocationStoragePolicy", | ||
"output": [] | ||
}, | ||
"specVersion": "1.0" | ||
} |
21 changes: 21 additions & 0 deletions
21
...ata-plane/Microsoft.AVS/stable/2018-01-01/examples/event-grid-schema/cluster_updated.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b", | ||
"eventType": "Microsoft.AVS.ClusterUpdated", | ||
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}", | ||
"data": { | ||
"addedHostNames": [ | ||
"esx17-r04.p01.431cc…" | ||
], | ||
"removedHostNames": [ | ||
"esx15-r01.p01.431cc…" | ||
], | ||
"inMaintenanceHostNames": [ | ||
"esx01-r03.p01.431cc…" | ||
], | ||
"operationId": "c8c0b304-2db3-402b-8a6b-06065e0e1755" | ||
}, | ||
"subject": "/clusters/{cluster_name}", | ||
"dataversion": "1.0", | ||
"metadataVersion": "1", | ||
"eventTime": "2023-12-09T21:50:19.9995668+00:00" | ||
} |
12 changes: 12 additions & 0 deletions
12
...ane/Microsoft.AVS/stable/2018-01-01/examples/event-grid-schema/privatecloud_updating.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b", | ||
"eventType": "Microsoft.AVS.PrivateCloudUpdating", | ||
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}", | ||
"data": { | ||
"operationId": "6dcd7db8-0679-40d9-bb8a-6f2a684395e2" | ||
}, | ||
"subject": "", | ||
"dataversion": "1.0", | ||
"metadataVersion": "1", | ||
"eventTime": "2023-12-09T21:50:19.9995668+00:00" | ||
} |
15 changes: 15 additions & 0 deletions
15
...e/Microsoft.AVS/stable/2018-01-01/examples/event-grid-schema/script_execution_failed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"id": "9b87886d-21a5-4af5-8e3e-10c4b8dac73b", | ||
"eventType": "Microsoft.AVS.ScriptExecutionFailed", | ||
"topic": "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.AVS/privateClouds/{sddc_name}", | ||
"data": { | ||
"operationId": "fe1cb595-71c8-47d7-b505-60d39a44d53d", | ||
"failureMessage": "05/04/2023 03:15:40 Get-SpbmStoragePolicy SpbmStoragePolicy with name ' RAID-5 FTT-1' was not found using the specified filter(s).", | ||
"cmdletId": "[email protected]/Set-LocationStoragePolicy", | ||
"output": [] | ||
}, | ||
"subject": "/scriptExecutions/{execution_name}", | ||
"dataversion": "1.0", | ||
"metadataVersion": "1", | ||
"eventTime": "2023-12-09T21:50:19.9995668+00:00" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters