Giter VIP home page Giter VIP logo

msrd-rest-samples's Introduction

MSRD REST API Samples

This repository contains samples showing how to programmatically access the MSRD service REST API.

Prerequisite:

  • Must have an Microsoft Security Risk Detection (MSRD) account enabled for API access;
  • Must have generated an API Token;
  • Must have the Azure SDK installed.

For detailed instructions click here

Samples

Powershell

See Powershell sample

Python sample

See Python sample

Bash sample

See Bash sample

Swagger interface

MSRD exposes its API through a documented Swagger interface. The Swagger documentation is published at:

https://www.microsoftsecurityriskdetection.com/swagger

The complete list of REST API operations is found under the ServiceApi node. The Swagger UI lets you interact with the service and dynamically call the APIs.

msrd-rest-samples's People

Contributors

blumu avatar chkeita avatar dmolnar avatar duaneking avatar lzybkr avatar msftgits avatar ranweiler avatar stishkin avatar tpacheco2002 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

msrd-rest-samples's Issues

Bash sample - OS Guid should not be hard-coded in JSON

The GUID of OS images vary between instances of MSRD and therefore should not be hard-coded in the JSON. Instead the OS image should be looked up by name using the /osimages REST API:
https://dogfood.barstowbakersfield.com/swagger/ui/index#!/Account/Account_GetOsImages

Observed:
The bash script sample currently has the Linux OS image hard-coded in the JSON:

"osImageId": "21539f82-8ed1-4e04-8b65-c4dac5eae289",

Expected
The JSON should contain the OS edition fields instead (e.g. RedHat, 7.2) and the Bash script should lookup the Guid from it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.