Microsoft.OperationalInsights (preview:2023-03-01)

2025/01/31 • 3 updated methods

SourceControls_List (updated)
Description Gets all source controls, without source control items.
Reference Link ¶

⚶ Changes

{
  "#id": "SourceControls_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "contentTypes": {
                  "Enum": {
                    "new": [
                      [
                        "AnalyticsRule",
                        ""
                      ],
                      [
                        "Workbook",
                        ""
                      ]
                    ],
                    "old": [
                      [
                        "AnalyticRule",
                        ""
                      ],
                      [
                        "Workbook",
                        ""
                      ]
                    ]
                  }
                }
              },
              {
                "repository": [
                  {
                    "pathMapping": {
                      "$properties": [
                        {
                          "#name": "contentType",
                          "Enum": {
                            "new": [
                              [
                                "AnalyticsRule",
                                ""
                              ],
                              [
                                "Workbook",
                                ""
                              ]
                            ],
                            "old": [
                              [
                                "AnalyticRule",
                                ""
                              ],
                              [
                                "Workbook",
                                ""
                              ]
                            ]
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
}

⚐ Response (200)

{
nextLink: string ,
value:
[
{
properties:
{
id: string ,
version: enum ,
displayName: string ,
description: string ,
repoType: enum ,
contentTypes:
[
string ,
]
,
repository:
{
url: string ,
branch: string ,
displayUrl: string ,
deploymentLogsUrl: string ,
pathMapping:
[
{
contentType: enum ,
path: string ,
}
,
]
,
}
,
repositoryResourceInfo:
{
webhook:
{
webhookId: string ,
webhookUrl: string ,
webhookSecretUpdateTime: string ,
rotateWebhookSecret: boolean ,
}
,
gitHubResourceInfo:
{
appInstallationId: string ,
}
,
azureDevOpsResourceInfo:
{
pipelineId: string ,
serviceConnectionId: string ,
}
,
}
,
lastDeploymentInfo:
{
deploymentFetchStatus: enum ,
deployment:
{
deploymentId: string ,
deploymentState: enum ,
deploymentResult: enum ,
deploymentTime: string ,
deploymentLogsUrl: string ,
}
,
message: string ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SourceControls_Get (updated)
Description Gets a source control byt its identifier.
Reference Link ¶

⚶ Changes

{
  "#id": "SourceControls_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "contentTypes": {
              "Enum": {
                "new": [
                  [
                    "AnalyticsRule",
                    ""
                  ],
                  [
                    "Workbook",
                    ""
                  ]
                ],
                "old": [
                  [
                    "AnalyticRule",
                    ""
                  ],
                  [
                    "Workbook",
                    ""
                  ]
                ]
              }
            }
          },
          {
            "repository": [
              {
                "pathMapping": {
                  "$properties": [
                    {
                      "#name": "contentType",
                      "Enum": {
                        "new": [
                          [
                            "AnalyticsRule",
                            ""
                          ],
                          [
                            "Workbook",
                            ""
                          ]
                        ],
                        "old": [
                          [
                            "AnalyticRule",
                            ""
                          ],
                          [
                            "Workbook",
                            ""
                          ]
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
sourceControlId: string ,
}

⚐ Response (200)

{
properties:
{
id: string ,
version: enum ,
displayName: string ,
description: string ,
repoType: enum ,
contentTypes:
[
string ,
]
,
repository:
{
url: string ,
branch: string ,
displayUrl: string ,
deploymentLogsUrl: string ,
pathMapping:
[
{
contentType: enum ,
path: string ,
}
,
]
,
}
,
repositoryResourceInfo:
{
webhook:
{
webhookId: string ,
webhookUrl: string ,
webhookSecretUpdateTime: string ,
rotateWebhookSecret: boolean ,
}
,
gitHubResourceInfo:
{
appInstallationId: string ,
}
,
azureDevOpsResourceInfo:
{
pipelineId: string ,
serviceConnectionId: string ,
}
,
}
,
lastDeploymentInfo:
{
deploymentFetchStatus: enum ,
deployment:
{
deploymentId: string ,
deploymentState: enum ,
deploymentResult: enum ,
deploymentTime: string ,
deploymentLogsUrl: string ,
}
,
message: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
SourceControls_Create (updated)
Description Creates a source control.
Reference Link ¶

⚶ Changes

{
  "#id": "SourceControls_Create",
  "$parameters": {
    "sourceControl": {
      "$properties": {
        "properties": [
          {
            "contentTypes": {
              "Enum": {
                "new": [
                  [
                    "AnalyticsRule",
                    ""
                  ],
                  [
                    "Workbook",
                    ""
                  ]
                ],
                "old": [
                  [
                    "AnalyticRule",
                    ""
                  ],
                  [
                    "Workbook",
                    ""
                  ]
                ]
              }
            }
          },
          {
            "repository": [
              {
                "pathMapping": {
                  "$properties": [
                    {
                      "#name": "contentType",
                      "Enum": {
                        "new": [
                          [
                            "AnalyticsRule",
                            ""
                          ],
                          [
                            "Workbook",
                            ""
                          ]
                        ],
                        "old": [
                          [
                            "AnalyticRule",
                            ""
                          ],
                          [
                            "Workbook",
                            ""
                          ]
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "contentTypes": {
              "Enum": {
                "new": [
                  [
                    "AnalyticsRule",
                    ""
                  ],
                  [
                    "Workbook",
                    ""
                  ]
                ],
                "old": [
                  [
                    "AnalyticRule",
                    ""
                  ],
                  [
                    "Workbook",
                    ""
                  ]
                ]
              }
            }
          },
          {
            "repository": [
              {
                "pathMapping": {
                  "$properties": [
                    {
                      "#name": "contentType",
                      "Enum": {
                        "new": [
                          [
                            "AnalyticsRule",
                            ""
                          ],
                          [
                            "Workbook",
                            ""
                          ]
                        ],
                        "old": [
                          [
                            "AnalyticRule",
                            ""
                          ],
                          [
                            "Workbook",
                            ""
                          ]
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "contentTypes": {
              "Enum": {
                "new": [
                  [
                    "AnalyticsRule",
                    ""
                  ],
                  [
                    "Workbook",
                    ""
                  ]
                ],
                "old": [
                  [
                    "AnalyticRule",
                    ""
                  ],
                  [
                    "Workbook",
                    ""
                  ]
                ]
              }
            }
          },
          {
            "repository": [
              {
                "pathMapping": {
                  "$properties": [
                    {
                      "#name": "contentType",
                      "Enum": {
                        "new": [
                          [
                            "AnalyticsRule",
                            ""
                          ],
                          [
                            "Workbook",
                            ""
                          ]
                        ],
                        "old": [
                          [
                            "AnalyticRule",
                            ""
                          ],
                          [
                            "Workbook",
                            ""
                          ]
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
sourceControlId: string ,
sourceControl:
{
properties:
{
id: string ,
version: enum ,
displayName: string ,
description: string ,
repoType: enum ,
contentTypes:
[
string ,
]
,
repository:
{
url: string ,
branch: string ,
displayUrl: string ,
deploymentLogsUrl: string ,
pathMapping:
[
{
contentType: enum ,
path: string ,
}
,
]
,
}
,
repositoryResourceInfo:
{
webhook:
{
webhookId: string ,
webhookUrl: string ,
webhookSecretUpdateTime: string ,
rotateWebhookSecret: boolean ,
}
,
gitHubResourceInfo:
{
appInstallationId: string ,
}
,
azureDevOpsResourceInfo:
{
pipelineId: string ,
serviceConnectionId: string ,
}
,
}
,
lastDeploymentInfo:
{
deploymentFetchStatus: enum ,
deployment:
{
deploymentId: string ,
deploymentState: enum ,
deploymentResult: enum ,
deploymentTime: string ,
deploymentLogsUrl: string ,
}
,
message: string ,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
id: string ,
version: enum ,
displayName: string ,
description: string ,
repoType: enum ,
contentTypes:
[
string ,
]
,
repository:
{
url: string ,
branch: string ,
displayUrl: string ,
deploymentLogsUrl: string ,
pathMapping:
[
{
contentType: enum ,
path: string ,
}
,
]
,
}
,
repositoryResourceInfo:
{
webhook:
{
webhookId: string ,
webhookUrl: string ,
webhookSecretUpdateTime: string ,
rotateWebhookSecret: boolean ,
}
,
gitHubResourceInfo:
{
appInstallationId: string ,
}
,
azureDevOpsResourceInfo:
{
pipelineId: string ,
serviceConnectionId: string ,
}
,
}
,
lastDeploymentInfo:
{
deploymentFetchStatus: enum ,
deployment:
{
deploymentId: string ,
deploymentState: enum ,
deploymentResult: enum ,
deploymentTime: string ,
deploymentLogsUrl: string ,
}
,
message: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
id: string ,
version: enum ,
displayName: string ,
description: string ,
repoType: enum ,
contentTypes:
[
string ,
]
,
repository:
{
url: string ,
branch: string ,
displayUrl: string ,
deploymentLogsUrl: string ,
pathMapping:
[
{
contentType: enum ,
path: string ,
}
,
]
,
}
,
repositoryResourceInfo:
{
webhook:
{
webhookId: string ,
webhookUrl: string ,
webhookSecretUpdateTime: string ,
rotateWebhookSecret: boolean ,
}
,
gitHubResourceInfo:
{
appInstallationId: string ,
}
,
azureDevOpsResourceInfo:
{
pipelineId: string ,
serviceConnectionId: string ,
}
,
}
,
lastDeploymentInfo:
{
deploymentFetchStatus: enum ,
deployment:
{
deploymentId: string ,
deploymentState: enum ,
deploymentResult: enum ,
deploymentTime: string ,
deploymentLogsUrl: string ,
}
,
message: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}