зеркало из https://github.com/Azure/aaz.git
Merge pull request #407 from kalpeshbhatia000/feature-firmwareanalysis-cli
Onboard aaz for firmwareanalysis cli commands
This commit is contained in:
Коммит
fdc55a6bb7
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware binary-hardening_
|
||||
|
||||
List binary hardening analysis results of a firmware.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXMve30vYmluYXJ5aGFyZGVuaW5ncmVzdWx0cw==/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/binaryhardeningresults 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- List binary hardening analysis results of a firmware.
|
||||
```bash
|
||||
firmwareanalysis firmware binary-hardening --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware create_
|
||||
|
||||
Create a new firmware.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXMve30=/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{} 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- Create a new firmware.
|
||||
```bash
|
||||
firmwareanalysis firmware create --resource-group {resourceGroupName} --workspace-name {workspaceName} --description {description} --file-name {fileName} --file-size {fileSize} --vendor {vendorName} --model {model} --version {version} --status {status} --status-messages ['hi','message']
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware crypto-certificate_
|
||||
|
||||
List cryptographic certificate analysis results found in a firmware.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXMve30vY3J5cHRvY2VydGlmaWNhdGVz/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cryptocertificates 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- List cryptographic certificate analysis results found in a firmware.
|
||||
```bash
|
||||
firmwareanalysis firmware crypto-certificate --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware crypto-key_
|
||||
|
||||
List cryptographic key analysis results found in a firmware.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXMve30vY3J5cHRva2V5cw==/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cryptokeys 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- List cryptographic key analysis results found in a firmware.
|
||||
```bash
|
||||
firmwareanalysis firmware crypto-key --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware cve_
|
||||
|
||||
List CVE analysis results of a firmware.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXMve30vY3Zlcw==/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cves 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- List CVE analysis results of a firmware.
|
||||
```bash
|
||||
az firmwareanalysis firmware cve --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware delete_
|
||||
|
||||
Delete a firmware.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXMve30=/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{} 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- Delete a firmware.
|
||||
```bash
|
||||
firmwareanalysis firmware delete --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware generate-filesystem-download-url_
|
||||
|
||||
Get a url for tar file download.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXMve30vZ2VuZXJhdGVmaWxlc3lzdGVtZG93bmxvYWR1cmw=/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/generatefilesystemdownloadurl 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- Get a url for tar file download.
|
||||
```bash
|
||||
firmwareanalysis firmware generate-filesystem-download-url --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware list_
|
||||
|
||||
List all the firmware images inside a workspace.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXM=/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- List all the firmware images inside a workspace.
|
||||
```bash
|
||||
firmwareanalysis firmware show --resource-group {ResourceGroupName} --workspace-name {workspaceName}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware password-hash_
|
||||
|
||||
List password hash analysis results of a firmware.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXMve30vcGFzc3dvcmRoYXNoZXM=/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/passwordhashes 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- List password hash analysis results of a firmware.
|
||||
```bash
|
||||
firmwareanalysis firmware password-hash --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware sbom-component_
|
||||
|
||||
List SBOM analysis results of a firmware.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXMve30vc2JvbWNvbXBvbmVudHM=/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/sbomcomponents 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- List SBOM analysis results of a firmware.
|
||||
```bash
|
||||
firmwareanalysis firmware sbom-component --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware show_
|
||||
|
||||
Get a firmware.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXMve30=/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{} 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- Get a firmware.
|
||||
```bash
|
||||
firmwareanalysis firmware show --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis firmware summary_
|
||||
|
||||
Get an analysis result summary of a firmware by name.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9maXJtd2FyZXMve30vc3VtbWFyaWVzL3t9/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/summaries/{} 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- Get an analysis result summary of a firmware by name.
|
||||
```bash
|
||||
firmwareanalysis firmware summary --resource-group {resourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId} -n {analysisType}
|
||||
```
|
|
@ -0,0 +1,41 @@
|
|||
# [Group] _firmwareanalysis firmware_
|
||||
|
||||
Commands to perform operation on a particular firmware.
|
||||
|
||||
## Commands
|
||||
|
||||
- [binary-hardening](/Commands/firmwareanalysis/firmware/_binary-hardening.md)
|
||||
: List binary hardening analysis results of a firmware.
|
||||
|
||||
- [create](/Commands/firmwareanalysis/firmware/_create.md)
|
||||
: Create a new firmware.
|
||||
|
||||
- [crypto-certificate](/Commands/firmwareanalysis/firmware/_crypto-certificate.md)
|
||||
: List cryptographic certificate analysis results found in a firmware.
|
||||
|
||||
- [crypto-key](/Commands/firmwareanalysis/firmware/_crypto-key.md)
|
||||
: List cryptographic key analysis results found in a firmware.
|
||||
|
||||
- [cve](/Commands/firmwareanalysis/firmware/_cve.md)
|
||||
: List CVE analysis results of a firmware.
|
||||
|
||||
- [delete](/Commands/firmwareanalysis/firmware/_delete.md)
|
||||
: Delete a firmware.
|
||||
|
||||
- [generate-filesystem-download-url](/Commands/firmwareanalysis/firmware/_generate-filesystem-download-url.md)
|
||||
: Get a url for tar file download.
|
||||
|
||||
- [list](/Commands/firmwareanalysis/firmware/_list.md)
|
||||
: List all the firmware images inside a workspace.
|
||||
|
||||
- [password-hash](/Commands/firmwareanalysis/firmware/_password-hash.md)
|
||||
: List password hash analysis results of a firmware.
|
||||
|
||||
- [sbom-component](/Commands/firmwareanalysis/firmware/_sbom-component.md)
|
||||
: List SBOM analysis results of a firmware.
|
||||
|
||||
- [show](/Commands/firmwareanalysis/firmware/_show.md)
|
||||
: Get a firmware.
|
||||
|
||||
- [summary](/Commands/firmwareanalysis/firmware/_summary.md)
|
||||
: Get an analysis result summary of a firmware by name.
|
|
@ -0,0 +1,11 @@
|
|||
# [Group] _firmwareanalysis_
|
||||
|
||||
Commands to manage firmware analysis.
|
||||
|
||||
## Subgroups
|
||||
|
||||
- [firmware](/Commands/firmwareanalysis/firmware/readme.md)
|
||||
: Commands to perform operation on a particular firmware.
|
||||
|
||||
- [workspace](/Commands/firmwareanalysis/workspace/readme.md)
|
||||
: Commands to perform operation on a particular workspace of the firmware.
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis workspace create_
|
||||
|
||||
create or update a firmware analysis workspace.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fQ==/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{} 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- create or update a firmware analysis workspace.
|
||||
```bash
|
||||
firmwareanalysis workspace create --resource-group {resourceGroupName} --workspace-name {workspaceName} --location {location} --tags {<string>:<string>, <string>:<string>,..}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis workspace delete_
|
||||
|
||||
Delete a firmware analysis workspace.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fQ==/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{} 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- Delete a firmware analysis workspace.
|
||||
```bash
|
||||
firmwareanalysis workspace delete --resource-group {resourceGroupName} --workspace-name {workspaceName}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis workspace generate-upload-url_
|
||||
|
||||
Get a url for file upload.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fS9nZW5lcmF0ZXVwbG9hZHVybA==/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/generateuploadurl 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- Get a url for file upload.
|
||||
```bash
|
||||
firmwareanalysis workspace generate-upload-url --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}
|
||||
```
|
|
@ -0,0 +1,17 @@
|
|||
# [Command] _firmwareanalysis workspace list_
|
||||
|
||||
List all of the firmware analysis workspaces in the specified subscription.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcw==/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.iotfirmwaredefense/workspaces 2024-01-10 -->
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- List all of the firmware analysis workspaces in the specified subscription.
|
||||
```bash
|
||||
firmwareanalysis workspace list --resource-group {ResourceGroupName}
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
# [Command] _firmwareanalysis workspace show_
|
||||
|
||||
Get firmware analysis workspace.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcy97fQ==/2024-01-10.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{} 2024-01-10 -->
|
||||
|
||||
#### examples
|
||||
|
||||
- Get firmware analysis workspace.
|
||||
```bash
|
||||
firmwareanalysis workspace show --resource-group {ResourceGroupName} --workspace-name {workspaceName}
|
||||
```
|
|
@ -0,0 +1,20 @@
|
|||
# [Group] _firmwareanalysis workspace_
|
||||
|
||||
Commands to perform operation on a particular workspace of the firmware.
|
||||
|
||||
## Commands
|
||||
|
||||
- [create](/Commands/firmwareanalysis/workspace/_create.md)
|
||||
: create or update a firmware analysis workspace.
|
||||
|
||||
- [delete](/Commands/firmwareanalysis/workspace/_delete.md)
|
||||
: Delete a firmware analysis workspace.
|
||||
|
||||
- [generate-upload-url](/Commands/firmwareanalysis/workspace/_generate-upload-url.md)
|
||||
: Get a url for file upload.
|
||||
|
||||
- [list](/Commands/firmwareanalysis/workspace/_list.md)
|
||||
: List all of the firmware analysis workspaces in the specified subscription.
|
||||
|
||||
- [show](/Commands/firmwareanalysis/workspace/_show.md)
|
||||
: Get firmware analysis workspace.
|
|
@ -101,6 +101,9 @@
|
|||
- [eventhubs](/Commands/eventhubs/readme.md)
|
||||
: eventhub
|
||||
|
||||
- [firmwareanalysis](/Commands/firmwareanalysis/readme.md)
|
||||
: Commands to manage firmware analysis.
|
||||
|
||||
- [fluid-relay](/Commands/fluid-relay/readme.md)
|
||||
: Manage Fluid Relay
|
||||
|
||||
|
|
|
@ -33223,6 +33223,553 @@
|
|||
"eventhubs"
|
||||
]
|
||||
},
|
||||
"firmwareanalysis": {
|
||||
"commandGroups": {
|
||||
"firmware": {
|
||||
"commands": {
|
||||
"binary-hardening": {
|
||||
"help": {
|
||||
"short": "List binary hardening analysis results of a firmware."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"binary-hardening"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis firmware binary-hardening --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}"
|
||||
],
|
||||
"name": "List binary hardening analysis results of a firmware."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/binaryhardeningresults",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"create": {
|
||||
"help": {
|
||||
"short": "Create a new firmware."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"create"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis firmware create --resource-group {resourceGroupName} --workspace-name {workspaceName} --description {description} --file-name {fileName} --file-size {fileSize} --vendor {vendorName} --model {model} --version {version} --status {status} --status-messages ['hi','message']"
|
||||
],
|
||||
"name": "Create a new firmware."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"crypto-certificate": {
|
||||
"help": {
|
||||
"short": "List cryptographic certificate analysis results found in a firmware."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"crypto-certificate"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis firmware crypto-certificate --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}"
|
||||
],
|
||||
"name": "List cryptographic certificate analysis results found in a firmware."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cryptocertificates",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"crypto-key": {
|
||||
"help": {
|
||||
"short": "List cryptographic key analysis results found in a firmware."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"crypto-key"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis firmware crypto-key --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}"
|
||||
],
|
||||
"name": "List cryptographic key analysis results found in a firmware."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cryptokeys",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"cve": {
|
||||
"help": {
|
||||
"short": "List CVE analysis results of a firmware."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"cve"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"az firmwareanalysis firmware cve --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}"
|
||||
],
|
||||
"name": "List CVE analysis results of a firmware."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cves",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"help": {
|
||||
"short": "Delete a firmware."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"delete"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis firmware delete --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}"
|
||||
],
|
||||
"name": "Delete a firmware."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"generate-filesystem-download-url": {
|
||||
"help": {
|
||||
"short": "Get a url for tar file download."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"generate-filesystem-download-url"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis firmware generate-filesystem-download-url --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}"
|
||||
],
|
||||
"name": "Get a url for tar file download."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/generatefilesystemdownloadurl",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"help": {
|
||||
"short": "List all the firmware images inside a workspace."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"list"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis firmware show --resource-group {ResourceGroupName} --workspace-name {workspaceName}"
|
||||
],
|
||||
"name": "List all the firmware images inside a workspace."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"password-hash": {
|
||||
"help": {
|
||||
"short": "List password hash analysis results of a firmware."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"password-hash"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis firmware password-hash --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}"
|
||||
],
|
||||
"name": "List password hash analysis results of a firmware."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/passwordhashes",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"sbom-component": {
|
||||
"help": {
|
||||
"short": "List SBOM analysis results of a firmware."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"sbom-component"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis firmware sbom-component --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}"
|
||||
],
|
||||
"name": "List SBOM analysis results of a firmware."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/sbomcomponents",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"show": {
|
||||
"help": {
|
||||
"short": "Get a firmware."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"show"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis firmware show --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}"
|
||||
],
|
||||
"name": "Get a firmware."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": {
|
||||
"help": {
|
||||
"short": "Get an analysis result summary of a firmware by name."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware",
|
||||
"summary"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis firmware summary --resource-group {resourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId} -n {analysisType}"
|
||||
],
|
||||
"name": "Get an analysis result summary of a firmware by name."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/summaries/{}",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"help": {
|
||||
"short": "Commands to perform operation on a particular firmware."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"firmware"
|
||||
]
|
||||
},
|
||||
"workspace": {
|
||||
"commands": {
|
||||
"create": {
|
||||
"help": {
|
||||
"short": "create or update a firmware analysis workspace."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"workspace",
|
||||
"create"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis workspace create --resource-group {resourceGroupName} --workspace-name {workspaceName} --location {location} --tags {<string>:<string>, <string>:<string>,..}"
|
||||
],
|
||||
"name": "create or update a firmware analysis workspace."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"help": {
|
||||
"short": "Delete a firmware analysis workspace."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"workspace",
|
||||
"delete"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis workspace delete --resource-group {resourceGroupName} --workspace-name {workspaceName}"
|
||||
],
|
||||
"name": "Delete a firmware analysis workspace."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"generate-upload-url": {
|
||||
"help": {
|
||||
"short": "Get a url for file upload."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"workspace",
|
||||
"generate-upload-url"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis workspace generate-upload-url --resource-group {ResourceGroupName} --workspace-name {workspaceName} --firmware-id {firmwareId}"
|
||||
],
|
||||
"name": "Get a url for file upload."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/generateuploadurl",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"help": {
|
||||
"short": "List all of the firmware analysis workspaces in the specified subscription."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"workspace",
|
||||
"list"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis workspace list --resource-group {ResourceGroupName}"
|
||||
],
|
||||
"name": "List all of the firmware analysis workspaces in the specified subscription."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/providers/microsoft.iotfirmwaredefense/workspaces",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
},
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"show": {
|
||||
"help": {
|
||||
"short": "Get firmware analysis workspace."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"workspace",
|
||||
"show"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"examples": [
|
||||
{
|
||||
"commands": [
|
||||
"firmwareanalysis workspace show --resource-group {ResourceGroupName} --workspace-name {workspaceName}"
|
||||
],
|
||||
"name": "Get firmware analysis workspace."
|
||||
}
|
||||
],
|
||||
"name": "2024-01-10",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2024-01-10"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"help": {
|
||||
"short": "Commands to perform operation on a particular workspace of the firmware."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis",
|
||||
"workspace"
|
||||
]
|
||||
}
|
||||
},
|
||||
"help": {
|
||||
"short": "Commands to manage firmware analysis."
|
||||
},
|
||||
"names": [
|
||||
"firmwareanalysis"
|
||||
]
|
||||
},
|
||||
"fluid-relay": {
|
||||
"commandGroups": {
|
||||
"container": {
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -0,0 +1,189 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/providers/microsoft.iotfirmwaredefense/workspaces" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LklvVEZpcm13YXJlRGVmZW5zZS93b3Jrc3BhY2Vz/V/MjAyNC0wMS0xMA=="/>
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXM=/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis workspace">
|
||||
<command name="list" version="2024-01-10">
|
||||
<resource id="/subscriptions/{}/providers/microsoft.iotfirmwaredefense/workspaces" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LklvVEZpcm13YXJlRGVmZW5zZS93b3Jrc3BhY2Vz/V/MjAyNC0wMS0xMA=="/>
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXM=/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
</argGroup>
|
||||
<condition var="$Condition_Workspaces_ListByResourceGroup">
|
||||
<operator type="and">
|
||||
<operator type="hasValue" arg="$Path.resourceGroupName"/>
|
||||
<operator type="hasValue" arg="$Path.subscriptionId"/>
|
||||
</operator>
|
||||
</condition>
|
||||
<condition var="$Condition_Workspaces_ListBySubscription">
|
||||
<operator type="and">
|
||||
<operator type="hasValue" arg="$Path.subscriptionId"/>
|
||||
<operator type="not">
|
||||
<operator type="hasValue" arg="$Path.resourceGroupName"/>
|
||||
</operator>
|
||||
</operator>
|
||||
</condition>
|
||||
<operation when="$Condition_Workspaces_ListByResourceGroup" operationId="Workspaces_ListByResourceGroup">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop type="string" name="nextLink"/>
|
||||
<prop readOnly="True" type="array<object>" name="value">
|
||||
<item type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id">
|
||||
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.IoTFirmwareDefense/workspaces/{}"/>
|
||||
</prop>
|
||||
<prop type="ResourceLocation" name="location" required="True"/>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop readOnly="True" type="string" name="provisioningState">
|
||||
<enum>
|
||||
<item value=""Accepted""/>
|
||||
<item value=""Canceled""/>
|
||||
<item value=""Failed""/>
|
||||
<item value=""Succeeded""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop type="object" name="tags">
|
||||
<additionalProp>
|
||||
<item type="string"/>
|
||||
</additionalProp>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</item>
|
||||
</prop>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<operation when="$Condition_Workspaces_ListBySubscription" operationId="Workspaces_ListBySubscription">
|
||||
<http path="/subscriptions/{subscriptionId}/providers/Microsoft.IoTFirmwareDefense/workspaces">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop type="string" name="nextLink"/>
|
||||
<prop readOnly="True" type="array<object>" name="value">
|
||||
<item type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id">
|
||||
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.IoTFirmwareDefense/workspaces/{}"/>
|
||||
</prop>
|
||||
<prop type="ResourceLocation" name="location" required="True"/>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop readOnly="True" type="string" name="provisioningState">
|
||||
<enum>
|
||||
<item value=""Accepted""/>
|
||||
<item value=""Canceled""/>
|
||||
<item value=""Failed""/>
|
||||
<item value=""Succeeded""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop type="object" name="tags">
|
||||
<additionalProp>
|
||||
<item type="string"/>
|
||||
</additionalProp>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</item>
|
||||
</prop>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
|
@ -0,0 +1 @@
|
|||
Reference [/subscriptions/{}/providers/microsoft.iotfirmwaredefense/workspaces 2024-01-10](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pb3RmaXJtd2FyZWRlZmVuc2Uvd29ya3NwYWNlcw==/2024-01-10.xml)
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -0,0 +1,252 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis workspace">
|
||||
<command name="show" version="2024-01-10">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name name n" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="Workspaces_Get">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id">
|
||||
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.IoTFirmwareDefense/workspaces/{}"/>
|
||||
</prop>
|
||||
<prop type="ResourceLocation" name="location" required="True"/>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop readOnly="True" type="string" name="provisioningState">
|
||||
<enum>
|
||||
<item value=""Accepted""/>
|
||||
<item value=""Canceled""/>
|
||||
<item value=""Failed""/>
|
||||
<item value=""Succeeded""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop type="object" name="tags">
|
||||
<additionalProp>
|
||||
<item type="string"/>
|
||||
</additionalProp>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="object" ref="$Instance" clientFlatten="True"/>
|
||||
</command>
|
||||
<command name="delete" version="2024-01-10" confirmation="Are you sure you want to perform this operation?">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name name n" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="Workspaces_Delete">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}">
|
||||
<request method="delete">
|
||||
<path>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200"/>
|
||||
<response statusCode="204"/>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
</command>
|
||||
<command name="create" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name name n" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<argGroup name="Workspace">
|
||||
<arg type="ResourceLocation" var="$workspace.location" options="location l" required="True" group="Workspace">
|
||||
<help short="The geo-location where the resource lives"/>
|
||||
</arg>
|
||||
<arg type="object" var="$workspace.tags" options="tags" group="Workspace">
|
||||
<help short="Resource tags."/>
|
||||
<additionalProp>
|
||||
<item type="string"/>
|
||||
</additionalProp>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="Workspaces_Create">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}">
|
||||
<request method="put">
|
||||
<path>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
<body>
|
||||
<json>
|
||||
<schema type="object" name="workspace" required="True" clientFlatten="True">
|
||||
<prop type="ResourceLocation" name="location" arg="$workspace.location" required="True"/>
|
||||
<prop type="object" name="tags" arg="$workspace.tags">
|
||||
<additionalProp>
|
||||
<item type="string"/>
|
||||
</additionalProp>
|
||||
</prop>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</request>
|
||||
<response statusCode="200 201">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id">
|
||||
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.IoTFirmwareDefense/workspaces/{}"/>
|
||||
</prop>
|
||||
<prop type="ResourceLocation" name="location" required="True"/>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop readOnly="True" type="string" name="provisioningState">
|
||||
<enum>
|
||||
<item value=""Accepted""/>
|
||||
<item value=""Canceled""/>
|
||||
<item value=""Failed""/>
|
||||
<item value=""Succeeded""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop type="object" name="tags">
|
||||
<additionalProp>
|
||||
<item type="string"/>
|
||||
</additionalProp>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="object" ref="$Instance" clientFlatten="True"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
|
@ -0,0 +1 @@
|
|||
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcw==/V/MjAyNC0wMS0xMA=="}], "commandGroups": [{"name": "firmwareanalysis firmware", "commands": [{"name": "list", "version": "2024-01-10", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcw==/V/MjAyNC0wMS0xMA=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.workspaceName", "options": ["workspace-name"], "required": true, "idPart": "name", "help": {"short": "The name of the firmware analysis workspace."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}], "operations": [{"operationId": "Firmwares_ListByWorkspace", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "workspaceName", "arg": "$Path.workspaceName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-01-10"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"readOnly": true, "type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.IoTFirmwareDefense/workspaces/{}/firmwares/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"type": "string", "name": "fileName"}, {"nullable": true, "type": "integer64", "name": "fileSize"}, {"type": "string", "name": "model"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Failed"}, {"value": "Succeeded"}]}}, {"default": {"value": "Pending"}, "type": "string", "name": "status", "enum": {"items": [{"value": "Analyzing"}, {"value": "Error"}, {"value": "Extracting"}, {"value": "Pending"}, {"value": "Ready"}]}}, {"type": "array<object>", "name": "statusMessages", "item": {"type": "object", "props": [{"type": "integer64", "name": "errorCode"}, {"type": "string", "name": "message"}]}}, {"type": "string", "name": "vendor"}, {"type": "string", "name": "version"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
|
|
@ -0,0 +1,118 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcw==/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis firmware">
|
||||
<command name="list" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcw==/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="Firmwares_ListByWorkspace">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop type="string" name="nextLink"/>
|
||||
<prop readOnly="True" type="array<object>" name="value">
|
||||
<item type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id">
|
||||
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.IoTFirmwareDefense/workspaces/{}/firmwares/{}"/>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop type="string" name="description"/>
|
||||
<prop type="string" name="fileName"/>
|
||||
<prop nullable="True" type="integer64" name="fileSize"/>
|
||||
<prop type="string" name="model"/>
|
||||
<prop readOnly="True" type="string" name="provisioningState">
|
||||
<enum>
|
||||
<item value=""Accepted""/>
|
||||
<item value=""Canceled""/>
|
||||
<item value=""Failed""/>
|
||||
<item value=""Succeeded""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="string" name="status">
|
||||
<default value=""Pending""/>
|
||||
<enum>
|
||||
<item value=""Analyzing""/>
|
||||
<item value=""Error""/>
|
||||
<item value=""Extracting""/>
|
||||
<item value=""Pending""/>
|
||||
<item value=""Ready""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="array<object>" name="statusMessages">
|
||||
<item type="object">
|
||||
<prop type="integer64" name="errorCode"/>
|
||||
<prop type="string" name="message"/>
|
||||
</item>
|
||||
</prop>
|
||||
<prop type="string" name="vendor"/>
|
||||
<prop type="string" name="version"/>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</item>
|
||||
</prop>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -0,0 +1,345 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0=/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis firmware">
|
||||
<command name="show" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0=/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.firmwareId" options="firmware-id name n" required="True" idPart="child_name_1">
|
||||
<help short="The id of the firmware."/>
|
||||
</arg>
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="Firmwares_Get">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="firmwareId" arg="$Path.firmwareId" required="True"/>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id">
|
||||
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.IoTFirmwareDefense/workspaces/{}/firmwares/{}"/>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop type="string" name="description"/>
|
||||
<prop type="string" name="fileName"/>
|
||||
<prop nullable="True" type="integer64" name="fileSize"/>
|
||||
<prop type="string" name="model"/>
|
||||
<prop readOnly="True" type="string" name="provisioningState">
|
||||
<enum>
|
||||
<item value=""Accepted""/>
|
||||
<item value=""Canceled""/>
|
||||
<item value=""Failed""/>
|
||||
<item value=""Succeeded""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="string" name="status">
|
||||
<default value=""Pending""/>
|
||||
<enum>
|
||||
<item value=""Analyzing""/>
|
||||
<item value=""Error""/>
|
||||
<item value=""Extracting""/>
|
||||
<item value=""Pending""/>
|
||||
<item value=""Ready""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="array<object>" name="statusMessages">
|
||||
<item type="object">
|
||||
<prop type="integer64" name="errorCode"/>
|
||||
<prop type="string" name="message"/>
|
||||
</item>
|
||||
</prop>
|
||||
<prop type="string" name="vendor"/>
|
||||
<prop type="string" name="version"/>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="object" ref="$Instance" clientFlatten="True"/>
|
||||
</command>
|
||||
<command name="delete" version="2024-01-10" confirmation="Are you sure you want to perform this operation?">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0=/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.firmwareId" options="firmware-id name n" required="True" idPart="child_name_1">
|
||||
<help short="The id of the firmware."/>
|
||||
</arg>
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="Firmwares_Delete">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}">
|
||||
<request method="delete">
|
||||
<path>
|
||||
<param type="string" name="firmwareId" arg="$Path.firmwareId" required="True"/>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200"/>
|
||||
<response statusCode="204"/>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
</command>
|
||||
<command name="create" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0=/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.firmwareId" options="firmware-id name n" required="True" idPart="child_name_1">
|
||||
<help short="The id of the firmware."/>
|
||||
</arg>
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<argGroup name="Properties">
|
||||
<arg type="string" var="$firmware.properties.description" options="description" group="Properties">
|
||||
<help short="User-specified description of the firmware."/>
|
||||
</arg>
|
||||
<arg type="string" var="$firmware.properties.fileName" options="file-name" group="Properties">
|
||||
<help short="File name for a firmware that user uploaded."/>
|
||||
</arg>
|
||||
<arg nullable="True" type="integer64" var="$firmware.properties.fileSize" options="file-size" group="Properties">
|
||||
<help short="File size of the uploaded firmware image."/>
|
||||
</arg>
|
||||
<arg type="string" var="$firmware.properties.model" options="model" group="Properties">
|
||||
<help short="Firmware model."/>
|
||||
</arg>
|
||||
<arg type="string" var="$firmware.properties.status" options="status" group="Properties">
|
||||
<help short="The status of firmware scan."/>
|
||||
<default value=""Pending""/>
|
||||
<enum>
|
||||
<item name="Analyzing" value=""Analyzing""/>
|
||||
<item name="Error" value=""Error""/>
|
||||
<item name="Extracting" value=""Extracting""/>
|
||||
<item name="Pending" value=""Pending""/>
|
||||
<item name="Ready" value=""Ready""/>
|
||||
</enum>
|
||||
</arg>
|
||||
<arg type="array<object>" var="$firmware.properties.statusMessages" options="status-messages" group="Properties">
|
||||
<help short="A list of errors or other messages generated during firmware analysis"/>
|
||||
<item type="object">
|
||||
<arg type="integer64" var="$firmware.properties.statusMessages[].errorCode" options="error-code">
|
||||
<help short="The error code"/>
|
||||
</arg>
|
||||
<arg type="string" var="$firmware.properties.statusMessages[].message" options="message">
|
||||
<help short="The error or status message"/>
|
||||
</arg>
|
||||
</item>
|
||||
</arg>
|
||||
<arg type="string" var="$firmware.properties.vendor" options="vendor" group="Properties">
|
||||
<help short="Firmware vendor."/>
|
||||
</arg>
|
||||
<arg type="string" var="$firmware.properties.version" options="version" group="Properties">
|
||||
<help short="Firmware version."/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="Firmwares_Create">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}">
|
||||
<request method="put">
|
||||
<path>
|
||||
<param type="string" name="firmwareId" arg="$Path.firmwareId" required="True"/>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
<body>
|
||||
<json>
|
||||
<schema type="object" name="firmware" required="True" clientFlatten="True">
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop type="string" name="description" arg="$firmware.properties.description"/>
|
||||
<prop type="string" name="fileName" arg="$firmware.properties.fileName"/>
|
||||
<prop nullable="True" type="integer64" name="fileSize" arg="$firmware.properties.fileSize"/>
|
||||
<prop type="string" name="model" arg="$firmware.properties.model"/>
|
||||
<prop type="string" name="status" arg="$firmware.properties.status">
|
||||
<default value=""Pending""/>
|
||||
<enum>
|
||||
<item value=""Analyzing""/>
|
||||
<item value=""Error""/>
|
||||
<item value=""Extracting""/>
|
||||
<item value=""Pending""/>
|
||||
<item value=""Ready""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="array<object>" name="statusMessages" arg="$firmware.properties.statusMessages">
|
||||
<item type="object">
|
||||
<prop type="integer64" name="errorCode" arg="$firmware.properties.statusMessages[].errorCode"/>
|
||||
<prop type="string" name="message" arg="$firmware.properties.statusMessages[].message"/>
|
||||
</item>
|
||||
</prop>
|
||||
<prop type="string" name="vendor" arg="$firmware.properties.vendor"/>
|
||||
<prop type="string" name="version" arg="$firmware.properties.version"/>
|
||||
</prop>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</request>
|
||||
<response statusCode="200 201">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id">
|
||||
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.IoTFirmwareDefense/workspaces/{}/firmwares/{}"/>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop type="string" name="description"/>
|
||||
<prop type="string" name="fileName"/>
|
||||
<prop nullable="True" type="integer64" name="fileSize"/>
|
||||
<prop type="string" name="model"/>
|
||||
<prop readOnly="True" type="string" name="provisioningState">
|
||||
<enum>
|
||||
<item value=""Accepted""/>
|
||||
<item value=""Canceled""/>
|
||||
<item value=""Failed""/>
|
||||
<item value=""Succeeded""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="string" name="status">
|
||||
<default value=""Pending""/>
|
||||
<enum>
|
||||
<item value=""Analyzing""/>
|
||||
<item value=""Error""/>
|
||||
<item value=""Extracting""/>
|
||||
<item value=""Pending""/>
|
||||
<item value=""Ready""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="array<object>" name="statusMessages">
|
||||
<item type="object">
|
||||
<prop type="integer64" name="errorCode"/>
|
||||
<prop type="string" name="message"/>
|
||||
</item>
|
||||
</prop>
|
||||
<prop type="string" name="vendor"/>
|
||||
<prop type="string" name="version"/>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="object" ref="$Instance" clientFlatten="True"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -0,0 +1,129 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cryptocertificates" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vY3J5cHRvQ2VydGlmaWNhdGVz/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis firmware">
|
||||
<command name="crypto-certificate" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cryptocertificates" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vY3J5cHRvQ2VydGlmaWNhdGVz/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.firmwareId" options="firmware-id" required="True" idPart="child_name_1">
|
||||
<help short="The id of the firmware."/>
|
||||
</arg>
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="CryptoCertificates_ListByFirmware">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/cryptoCertificates">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="firmwareId" arg="$Path.firmwareId" required="True"/>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop type="string" name="nextLink"/>
|
||||
<prop readOnly="True" type="array<object>" name="value">
|
||||
<item type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id"/>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop nullable="True" type="string" name="cryptoCertId"/>
|
||||
<prop nullable="True" type="string" name="encoding"/>
|
||||
<prop nullable="True" type="dateTime" name="expirationDate"/>
|
||||
<prop readOnly="True" nullable="True" type="array<string>" name="filePaths">
|
||||
<item type="string"/>
|
||||
</prop>
|
||||
<prop nullable="True" type="string" name="fingerprint"/>
|
||||
<prop nullable="True" type="boolean" name="isExpired"/>
|
||||
<prop nullable="True" type="boolean" name="isSelfSigned"/>
|
||||
<prop nullable="True" type="boolean" name="isShortKeySize"/>
|
||||
<prop nullable="True" type="boolean" name="isWeakSignature"/>
|
||||
<prop nullable="True" type="dateTime" name="issuedDate"/>
|
||||
<prop nullable="True" type="object" name="issuer">
|
||||
<prop nullable="True" type="string" name="commonName"/>
|
||||
<prop nullable="True" type="string" name="country"/>
|
||||
<prop nullable="True" type="string" name="organization"/>
|
||||
<prop nullable="True" type="string" name="organizationalUnit"/>
|
||||
<prop nullable="True" type="string" name="state"/>
|
||||
</prop>
|
||||
<prop nullable="True" type="string" name="keyAlgorithm"/>
|
||||
<prop nullable="True" type="integer64" name="keySize"/>
|
||||
<prop nullable="True" type="string" name="name"/>
|
||||
<prop nullable="True" type="object" name="pairedKey">
|
||||
<prop type="string" name="id"/>
|
||||
<prop type="string" name="type"/>
|
||||
</prop>
|
||||
<prop nullable="True" type="string" name="role"/>
|
||||
<prop nullable="True" type="string" name="serialNumber"/>
|
||||
<prop nullable="True" type="string" name="signatureAlgorithm"/>
|
||||
<prop nullable="True" type="object" name="subject">
|
||||
<prop nullable="True" type="string" name="commonName"/>
|
||||
<prop nullable="True" type="string" name="country"/>
|
||||
<prop nullable="True" type="string" name="organization"/>
|
||||
<prop nullable="True" type="string" name="organizationalUnit"/>
|
||||
<prop nullable="True" type="string" name="state"/>
|
||||
</prop>
|
||||
<prop nullable="True" type="array<string>" name="usage">
|
||||
<item type="string"/>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</item>
|
||||
</prop>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
|
@ -0,0 +1 @@
|
|||
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cryptokeys", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vY3J5cHRvS2V5cw==/V/MjAyNC0wMS0xMA=="}], "commandGroups": [{"name": "firmwareanalysis firmware", "commands": [{"name": "crypto-key", "version": "2024-01-10", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cryptokeys", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vY3J5cHRvS2V5cw==/V/MjAyNC0wMS0xMA=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.firmwareId", "options": ["firmware-id"], "required": true, "idPart": "child_name_1", "help": {"short": "The id of the firmware."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.workspaceName", "options": ["workspace-name"], "required": true, "idPart": "name", "help": {"short": "The name of the firmware analysis workspace."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}], "operations": [{"operationId": "CryptoKeys_ListByFirmware", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/cryptoKeys", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "firmwareId", "arg": "$Path.firmwareId", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "workspaceName", "arg": "$Path.workspaceName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-01-10"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"readOnly": true, "type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"nullable": true, "type": "string", "name": "cryptoKeyId"}, {"readOnly": true, "nullable": true, "type": "array<string>", "name": "filePaths", "item": {"type": "string"}}, {"nullable": true, "type": "boolean", "name": "isShortKeySize"}, {"nullable": true, "type": "string", "name": "keyAlgorithm"}, {"nullable": true, "type": "integer64", "name": "keySize"}, {"nullable": true, "type": "string", "name": "keyType"}, {"nullable": true, "type": "object", "name": "pairedKey", "props": [{"type": "string", "name": "id"}, {"type": "string", "name": "type"}]}, {"nullable": true, "type": "array<string>", "name": "usage", "item": {"type": "string"}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
|
|
@ -0,0 +1,105 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cryptokeys" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vY3J5cHRvS2V5cw==/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis firmware">
|
||||
<command name="crypto-key" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cryptokeys" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vY3J5cHRvS2V5cw==/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.firmwareId" options="firmware-id" required="True" idPart="child_name_1">
|
||||
<help short="The id of the firmware."/>
|
||||
</arg>
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="CryptoKeys_ListByFirmware">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/cryptoKeys">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="firmwareId" arg="$Path.firmwareId" required="True"/>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop type="string" name="nextLink"/>
|
||||
<prop readOnly="True" type="array<object>" name="value">
|
||||
<item type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id"/>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop nullable="True" type="string" name="cryptoKeyId"/>
|
||||
<prop readOnly="True" nullable="True" type="array<string>" name="filePaths">
|
||||
<item type="string"/>
|
||||
</prop>
|
||||
<prop nullable="True" type="boolean" name="isShortKeySize"/>
|
||||
<prop nullable="True" type="string" name="keyAlgorithm"/>
|
||||
<prop nullable="True" type="integer64" name="keySize"/>
|
||||
<prop nullable="True" type="string" name="keyType"/>
|
||||
<prop nullable="True" type="object" name="pairedKey">
|
||||
<prop type="string" name="id"/>
|
||||
<prop type="string" name="type"/>
|
||||
</prop>
|
||||
<prop nullable="True" type="array<string>" name="usage">
|
||||
<item type="string"/>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</item>
|
||||
</prop>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
|
@ -0,0 +1 @@
|
|||
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cves", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vY3Zlcw==/V/MjAyNC0wMS0xMA=="}], "commandGroups": [{"name": "firmwareanalysis firmware", "commands": [{"name": "cve", "version": "2024-01-10", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cves", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vY3Zlcw==/V/MjAyNC0wMS0xMA=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.firmwareId", "options": ["firmware-id"], "required": true, "idPart": "child_name_1", "help": {"short": "The id of the firmware."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.workspaceName", "options": ["workspace-name"], "required": true, "idPart": "name", "help": {"short": "The name of the firmware analysis workspace."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}], "operations": [{"operationId": "Cves_ListByFirmware", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/cves", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "firmwareId", "arg": "$Path.firmwareId", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "workspaceName", "arg": "$Path.workspaceName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-01-10"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"readOnly": true, "type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"nullable": true, "type": "object", "name": "component", "props": [{"type": "string", "name": "componentId"}, {"type": "string", "name": "name"}, {"type": "string", "name": "version"}]}, {"nullable": true, "type": "string", "name": "cveId"}, {"nullable": true, "type": "string", "name": "cvssScore"}, {"nullable": true, "type": "string", "name": "cvssV2Score"}, {"nullable": true, "type": "string", "name": "cvssV3Score"}, {"nullable": true, "type": "string", "name": "cvssVersion"}, {"nullable": true, "type": "string", "name": "description"}, {"readOnly": true, "type": "array<object>", "name": "links", "item": {"type": "object", "props": [{"nullable": true, "type": "string", "name": "href"}, {"nullable": true, "type": "string", "name": "label"}]}}, {"type": "string", "name": "name"}, {"nullable": true, "type": "string", "name": "severity"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
|
|
@ -0,0 +1,109 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cves" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vY3Zlcw==/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis firmware">
|
||||
<command name="cve" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/cves" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vY3Zlcw==/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.firmwareId" options="firmware-id" required="True" idPart="child_name_1">
|
||||
<help short="The id of the firmware."/>
|
||||
</arg>
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="Cves_ListByFirmware">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/cves">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="firmwareId" arg="$Path.firmwareId" required="True"/>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop type="string" name="nextLink"/>
|
||||
<prop readOnly="True" type="array<object>" name="value">
|
||||
<item type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id"/>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop nullable="True" type="object" name="component">
|
||||
<prop type="string" name="componentId"/>
|
||||
<prop type="string" name="name"/>
|
||||
<prop type="string" name="version"/>
|
||||
</prop>
|
||||
<prop nullable="True" type="string" name="cveId"/>
|
||||
<prop nullable="True" type="string" name="cvssScore"/>
|
||||
<prop nullable="True" type="string" name="cvssV2Score"/>
|
||||
<prop nullable="True" type="string" name="cvssV3Score"/>
|
||||
<prop nullable="True" type="string" name="cvssVersion"/>
|
||||
<prop nullable="True" type="string" name="description"/>
|
||||
<prop readOnly="True" type="array<object>" name="links">
|
||||
<item type="object">
|
||||
<prop nullable="True" type="string" name="href"/>
|
||||
<prop nullable="True" type="string" name="label"/>
|
||||
</item>
|
||||
</prop>
|
||||
<prop type="string" name="name"/>
|
||||
<prop nullable="True" type="string" name="severity"/>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</item>
|
||||
</prop>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
|
@ -0,0 +1 @@
|
|||
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/binaryhardeningresults", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vYmluYXJ5SGFyZGVuaW5nUmVzdWx0cw==/V/MjAyNC0wMS0xMA=="}], "commandGroups": [{"name": "firmwareanalysis firmware", "commands": [{"name": "binary-hardening", "version": "2024-01-10", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/binaryhardeningresults", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vYmluYXJ5SGFyZGVuaW5nUmVzdWx0cw==/V/MjAyNC0wMS0xMA=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.firmwareId", "options": ["firmware-id"], "required": true, "idPart": "child_name_1", "help": {"short": "The id of the firmware."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.workspaceName", "options": ["workspace-name"], "required": true, "idPart": "name", "help": {"short": "The name of the firmware analysis workspace."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}], "operations": [{"operationId": "BinaryHardening_ListByFirmware", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/binaryHardeningResults", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "firmwareId", "arg": "$Path.firmwareId", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "workspaceName", "arg": "$Path.workspaceName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-01-10"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"readOnly": true, "type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"nullable": true, "type": "string", "name": "architecture"}, {"nullable": true, "type": "string", "name": "binaryHardeningId"}, {"nullable": true, "type": "string", "name": "class"}, {"type": "object", "name": "features", "props": [{"type": "boolean", "name": "canary"}, {"type": "boolean", "name": "nx"}, {"type": "boolean", "name": "pie"}, {"type": "boolean", "name": "relro"}, {"type": "boolean", "name": "stripped"}], "clientFlatten": true}, {"nullable": true, "type": "string", "name": "filePath"}, {"nullable": true, "type": "string", "name": "rpath"}, {"nullable": true, "type": "string", "name": "runpath"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
|
|
@ -0,0 +1,103 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/binaryhardeningresults" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vYmluYXJ5SGFyZGVuaW5nUmVzdWx0cw==/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis firmware">
|
||||
<command name="binary-hardening" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/binaryhardeningresults" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vYmluYXJ5SGFyZGVuaW5nUmVzdWx0cw==/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.firmwareId" options="firmware-id" required="True" idPart="child_name_1">
|
||||
<help short="The id of the firmware."/>
|
||||
</arg>
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="BinaryHardening_ListByFirmware">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/binaryHardeningResults">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="firmwareId" arg="$Path.firmwareId" required="True"/>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop type="string" name="nextLink"/>
|
||||
<prop readOnly="True" type="array<object>" name="value">
|
||||
<item type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id"/>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop nullable="True" type="string" name="architecture"/>
|
||||
<prop nullable="True" type="string" name="binaryHardeningId"/>
|
||||
<prop nullable="True" type="string" name="class"/>
|
||||
<prop type="object" name="features" clientFlatten="True">
|
||||
<prop type="boolean" name="canary"/>
|
||||
<prop type="boolean" name="nx"/>
|
||||
<prop type="boolean" name="pie"/>
|
||||
<prop type="boolean" name="relro"/>
|
||||
<prop type="boolean" name="stripped"/>
|
||||
</prop>
|
||||
<prop nullable="True" type="string" name="filePath"/>
|
||||
<prop nullable="True" type="string" name="rpath"/>
|
||||
<prop nullable="True" type="string" name="runpath"/>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</item>
|
||||
</prop>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
|
@ -0,0 +1 @@
|
|||
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/generatefilesystemdownloadurl", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vZ2VuZXJhdGVGaWxlc3lzdGVtRG93bmxvYWRVcmw=/V/MjAyNC0wMS0xMA=="}], "commandGroups": [{"name": "firmwareanalysis firmware", "commands": [{"name": "generate-filesystem-download-url", "version": "2024-01-10", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/generatefilesystemdownloadurl", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vZ2VuZXJhdGVGaWxlc3lzdGVtRG93bmxvYWRVcmw=/V/MjAyNC0wMS0xMA=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.firmwareId", "options": ["firmware-id"], "required": true, "idPart": "child_name_1", "help": {"short": "The id of the firmware."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.workspaceName", "options": ["workspace-name"], "required": true, "idPart": "name", "help": {"short": "The name of the firmware analysis workspace."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}], "operations": [{"operationId": "Firmwares_GenerateFilesystemDownloadUrl", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateFilesystemDownloadUrl", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "firmwareId", "arg": "$Path.firmwareId", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "workspaceName", "arg": "$Path.workspaceName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-01-10"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "url"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
|
|
@ -0,0 +1,59 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/generatefilesystemdownloadurl" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vZ2VuZXJhdGVGaWxlc3lzdGVtRG93bmxvYWRVcmw=/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis firmware">
|
||||
<command name="generate-filesystem-download-url" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/generatefilesystemdownloadurl" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vZ2VuZXJhdGVGaWxlc3lzdGVtRG93bmxvYWRVcmw=/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.firmwareId" options="firmware-id" required="True" idPart="child_name_1">
|
||||
<help short="The id of the firmware."/>
|
||||
</arg>
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="Firmwares_GenerateFilesystemDownloadUrl">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateFilesystemDownloadUrl">
|
||||
<request method="post">
|
||||
<path>
|
||||
<param type="string" name="firmwareId" arg="$Path.firmwareId" required="True"/>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop readOnly="True" type="string" name="url"/>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="object" ref="$Instance" clientFlatten="True"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
|
@ -0,0 +1 @@
|
|||
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/sbomcomponents", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vc2JvbUNvbXBvbmVudHM=/V/MjAyNC0wMS0xMA=="}], "commandGroups": [{"name": "firmwareanalysis firmware", "commands": [{"name": "sbom-component", "version": "2024-01-10", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/sbomcomponents", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vc2JvbUNvbXBvbmVudHM=/V/MjAyNC0wMS0xMA=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.firmwareId", "options": ["firmware-id"], "required": true, "idPart": "child_name_1", "help": {"short": "The id of the firmware."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.workspaceName", "options": ["workspace-name"], "required": true, "idPart": "name", "help": {"short": "The name of the firmware analysis workspace."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}], "operations": [{"operationId": "SbomComponents_ListByFirmware", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/sbomComponents", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "firmwareId", "arg": "$Path.firmwareId", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "workspaceName", "arg": "$Path.workspaceName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-01-10"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"readOnly": true, "type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"nullable": true, "type": "string", "name": "componentId"}, {"type": "string", "name": "componentName"}, {"type": "array<string>", "name": "filePaths", "item": {"type": "string"}}, {"nullable": true, "type": "string", "name": "license"}, {"type": "string", "name": "version"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
|
|
@ -0,0 +1,97 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/sbomcomponents" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vc2JvbUNvbXBvbmVudHM=/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis firmware">
|
||||
<command name="sbom-component" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/sbomcomponents" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vc2JvbUNvbXBvbmVudHM=/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.firmwareId" options="firmware-id" required="True" idPart="child_name_1">
|
||||
<help short="The id of the firmware."/>
|
||||
</arg>
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="SbomComponents_ListByFirmware">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/sbomComponents">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="firmwareId" arg="$Path.firmwareId" required="True"/>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop type="string" name="nextLink"/>
|
||||
<prop readOnly="True" type="array<object>" name="value">
|
||||
<item type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id"/>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop nullable="True" type="string" name="componentId"/>
|
||||
<prop type="string" name="componentName"/>
|
||||
<prop type="array<string>" name="filePaths">
|
||||
<item type="string"/>
|
||||
</prop>
|
||||
<prop nullable="True" type="string" name="license"/>
|
||||
<prop type="string" name="version"/>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</item>
|
||||
</prop>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -0,0 +1,157 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/summaries/{}" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vc3VtbWFyaWVzL3tzdW1tYXJ5TmFtZX0=/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis firmware">
|
||||
<command name="summary" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/summaries/{}" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vc3VtbWFyaWVzL3tzdW1tYXJ5TmFtZX0=/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.firmwareId" options="firmware-id" required="True" idPart="child_name_1">
|
||||
<help short="The id of the firmware."/>
|
||||
</arg>
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.summaryName" options="summary-name name n" required="True" idPart="child_name_2">
|
||||
<help short="The Firmware analysis summary name describing the type of summary."/>
|
||||
<format pattern="^[a-zA-Z0-9]*$" maxLength="63" minLength="3"/>
|
||||
<enum>
|
||||
<item name="BinaryHardening" value=""BinaryHardening""/>
|
||||
<item name="CVE" value=""CVE""/>
|
||||
<item name="CryptoCertificate" value=""CryptoCertificate""/>
|
||||
<item name="CryptoKey" value=""CryptoKey""/>
|
||||
<item name="Firmware" value=""Firmware""/>
|
||||
</enum>
|
||||
</arg>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="Summaries_Get">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/summaries/{summaryName}">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="firmwareId" arg="$Path.firmwareId" required="True"/>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="summaryName" arg="$Path.summaryName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9]*$" maxLength="63" minLength="3"/>
|
||||
<enum>
|
||||
<item value=""BinaryHardening""/>
|
||||
<item value=""CVE""/>
|
||||
<item value=""CryptoCertificate""/>
|
||||
<item value=""CryptoKey""/>
|
||||
<item value=""Firmware""/>
|
||||
</enum>
|
||||
</param>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id">
|
||||
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.IoTFirmwareDefense/workspaces/{}/firmwares/{}/summaries/{}"/>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop readOnly="True" type="object" name="properties">
|
||||
<prop type="string" name="summaryType" required="True">
|
||||
<enum>
|
||||
<item value=""BinaryHardening""/>
|
||||
<item value=""CVE""/>
|
||||
<item value=""CryptoCertificate""/>
|
||||
<item value=""CryptoKey""/>
|
||||
<item value=""Firmware""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<discriminator property="summaryType" value="BinaryHardening">
|
||||
<prop nullable="True" type="integer32" name="canary"/>
|
||||
<prop nullable="True" type="integer32" name="nx"/>
|
||||
<prop nullable="True" type="integer32" name="pie"/>
|
||||
<prop nullable="True" type="integer32" name="relro"/>
|
||||
<prop nullable="True" type="integer32" name="stripped"/>
|
||||
<prop type="integer64" name="totalFiles"/>
|
||||
</discriminator>
|
||||
<discriminator property="summaryType" value="CVE">
|
||||
<prop nullable="True" type="integer64" name="critical"/>
|
||||
<prop nullable="True" type="integer64" name="high"/>
|
||||
<prop nullable="True" type="integer64" name="low"/>
|
||||
<prop nullable="True" type="integer64" name="medium"/>
|
||||
<prop nullable="True" type="integer64" name="unknown"/>
|
||||
</discriminator>
|
||||
<discriminator property="summaryType" value="CryptoCertificate">
|
||||
<prop type="integer64" name="expired"/>
|
||||
<prop type="integer64" name="expiringSoon"/>
|
||||
<prop type="integer64" name="pairedKeys"/>
|
||||
<prop type="integer64" name="selfSigned"/>
|
||||
<prop type="integer64" name="shortKeySize"/>
|
||||
<prop type="integer64" name="totalCertificates"/>
|
||||
<prop type="integer64" name="weakSignature"/>
|
||||
</discriminator>
|
||||
<discriminator property="summaryType" value="CryptoKey">
|
||||
<prop type="integer64" name="pairedKeys"/>
|
||||
<prop type="integer64" name="privateKeys"/>
|
||||
<prop type="integer64" name="publicKeys"/>
|
||||
<prop type="integer64" name="shortKeySize"/>
|
||||
<prop type="integer64" name="totalKeys"/>
|
||||
</discriminator>
|
||||
<discriminator property="summaryType" value="Firmware">
|
||||
<prop nullable="True" type="integer64" name="analysisTimeSeconds"/>
|
||||
<prop nullable="True" type="integer64" name="binaryCount"/>
|
||||
<prop nullable="True" type="integer64" name="componentCount"/>
|
||||
<prop nullable="True" type="integer64" name="extractedFileCount"/>
|
||||
<prop nullable="True" type="integer64" name="extractedSize"/>
|
||||
<prop nullable="True" type="integer64" name="fileSize"/>
|
||||
<prop nullable="True" type="integer64" name="rootFileSystems"/>
|
||||
</discriminator>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="object" ref="$Instance" clientFlatten="True"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
|
@ -0,0 +1 @@
|
|||
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/passwordhashes", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vcGFzc3dvcmRIYXNoZXM=/V/MjAyNC0wMS0xMA=="}], "commandGroups": [{"name": "firmwareanalysis firmware", "commands": [{"name": "password-hash", "version": "2024-01-10", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/passwordhashes", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vcGFzc3dvcmRIYXNoZXM=/V/MjAyNC0wMS0xMA=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.firmwareId", "options": ["firmware-id"], "required": true, "idPart": "child_name_1", "help": {"short": "The id of the firmware."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.workspaceName", "options": ["workspace-name"], "required": true, "idPart": "name", "help": {"short": "The name of the firmware analysis workspace."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}], "operations": [{"operationId": "PasswordHashes_ListByFirmware", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/passwordHashes", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "firmwareId", "arg": "$Path.firmwareId", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "workspaceName", "arg": "$Path.workspaceName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-01-10"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"readOnly": true, "type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"nullable": true, "type": "string", "name": "algorithm"}, {"nullable": true, "type": "string", "name": "context"}, {"nullable": true, "type": "string", "name": "filePath"}, {"nullable": true, "type": "string", "name": "hash"}, {"nullable": true, "type": "string", "name": "passwordHashId"}, {"nullable": true, "type": "string", "name": "salt"}, {"nullable": true, "type": "string", "name": "username"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
|
|
@ -0,0 +1,97 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/passwordhashes" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vcGFzc3dvcmRIYXNoZXM=/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis firmware">
|
||||
<command name="password-hash" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/firmwares/{}/passwordhashes" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2Zpcm13YXJlcy97ZmlybXdhcmVJZH0vcGFzc3dvcmRIYXNoZXM=/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.firmwareId" options="firmware-id" required="True" idPart="child_name_1">
|
||||
<help short="The id of the firmware."/>
|
||||
</arg>
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="PasswordHashes_ListByFirmware">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/passwordHashes">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="firmwareId" arg="$Path.firmwareId" required="True"/>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop type="string" name="nextLink"/>
|
||||
<prop readOnly="True" type="array<object>" name="value">
|
||||
<item type="object">
|
||||
<prop readOnly="True" type="ResourceId" name="id"/>
|
||||
<prop readOnly="True" type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop nullable="True" type="string" name="algorithm"/>
|
||||
<prop nullable="True" type="string" name="context"/>
|
||||
<prop nullable="True" type="string" name="filePath"/>
|
||||
<prop nullable="True" type="string" name="hash"/>
|
||||
<prop nullable="True" type="string" name="passwordHashId"/>
|
||||
<prop nullable="True" type="string" name="salt"/>
|
||||
<prop nullable="True" type="string" name="username"/>
|
||||
</prop>
|
||||
<prop readOnly="True" type="object" name="systemData">
|
||||
<prop type="dateTime" name="createdAt"/>
|
||||
<prop type="string" name="createdBy"/>
|
||||
<prop type="string" name="createdByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
<prop type="dateTime" name="lastModifiedAt"/>
|
||||
<prop type="string" name="lastModifiedBy"/>
|
||||
<prop type="string" name="lastModifiedByType">
|
||||
<enum>
|
||||
<item value=""Application""/>
|
||||
<item value=""Key""/>
|
||||
<item value=""ManagedIdentity""/>
|
||||
<item value=""User""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop readOnly="True" type="string" name="type"/>
|
||||
</item>
|
||||
</prop>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
|
@ -0,0 +1 @@
|
|||
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/generateuploadurl", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2dlbmVyYXRlVXBsb2FkVXJs/V/MjAyNC0wMS0xMA=="}], "commandGroups": [{"name": "firmwareanalysis workspace", "commands": [{"name": "generate-upload-url", "version": "2024-01-10", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/generateuploadurl", "version": "2024-01-10", "swagger": "mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2dlbmVyYXRlVXBsb2FkVXJs/V/MjAyNC0wMS0xMA=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.workspaceName", "options": ["workspace-name"], "required": true, "idPart": "name", "help": {"short": "The name of the firmware analysis workspace."}, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}, {"name": "GenerateUploadUrl", "args": [{"type": "string", "var": "$generateUploadUrl.firmwareId", "options": ["firmware-id"], "group": "GenerateUploadUrl", "help": {"short": "A unique ID for the firmware to be uploaded."}}]}], "operations": [{"operationId": "Workspaces_GenerateUploadUrl", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/generateUploadUrl", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}, {"type": "string", "name": "workspaceName", "arg": "$Path.workspaceName", "required": true, "format": {"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-01-10"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "generateUploadUrl", "required": true, "props": [{"type": "string", "name": "firmwareId", "arg": "$generateUploadUrl.firmwareId"}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "url"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
|
|
@ -0,0 +1,67 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/generateuploadurl" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2dlbmVyYXRlVXBsb2FkVXJs/V/MjAyNC0wMS0xMA=="/>
|
||||
<commandGroup name="firmwareanalysis workspace">
|
||||
<command name="generate-upload-url" version="2024-01-10" confirmation="">
|
||||
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.iotfirmwaredefense/workspaces/{}/generateuploadurl" version="2024-01-10" swagger="mgmt-plane/fist/ResourceProviders/Microsoft.IoTFirmwareDefense/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9URmlybXdhcmVEZWZlbnNlL3dvcmtzcGFjZXMve3dvcmtzcGFjZU5hbWV9L2dlbmVyYXRlVXBsb2FkVXJs/V/MjAyNC0wMS0xMA=="/>
|
||||
<argGroup name="">
|
||||
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
|
||||
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
|
||||
<arg type="string" var="$Path.workspaceName" options="workspace-name" required="True" idPart="name">
|
||||
<help short="The name of the firmware analysis workspace."/>
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<argGroup name="GenerateUploadUrl">
|
||||
<arg type="string" var="$generateUploadUrl.firmwareId" options="firmware-id" group="GenerateUploadUrl">
|
||||
<help short="A unique ID for the firmware to be uploaded."/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="Workspaces_GenerateUploadUrl">
|
||||
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/generateUploadUrl">
|
||||
<request method="post">
|
||||
<path>
|
||||
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
|
||||
<format maxLength="90" minLength="1"/>
|
||||
</param>
|
||||
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
|
||||
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
|
||||
<format pattern="^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"/>
|
||||
</param>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2024-01-10""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
<body>
|
||||
<json>
|
||||
<schema type="object" name="generateUploadUrl" required="True" clientFlatten="True">
|
||||
<prop type="string" name="firmwareId" arg="$generateUploadUrl.firmwareId"/>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop readOnly="True" type="string" name="url"/>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@MgmtErrorFormat"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="object" ref="$Instance" clientFlatten="True"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
Загрузка…
Ссылка в новой задаче