Find out how to Run Command Line Interface with Hybrid Cloud Safety

0
102

[ad_1]

Find out how to Run Command Line Interface with Hybrid Cloud Safety

Cloud Native

Study how one can get began with working CLI instructions towards Development Micro Cloud One™ providers.
By: Chuck Losh

September 18, 2020

Learn time:  ( phrases)

Hello all! Been awhile since we final met! Right now, I needed to speak to you a couple of fairly cool latest addition from the parents at Development Micro for purchasers. That is Thus! The Development Micro Hybrid Cloud Safety CLI undertaking on GitHub.
Take a look at the GitHub repository for the undertaking! https://github.com/trendmicro/thus
This can be a python undertaking that you would be able to pull down and set up in your digital atmosphere, or you’ll be able to run a pip3 based mostly set up to placed on a system that you have already got Python 3.6 or larger.

On this case, I ran my exams contained in the Home windows Subsystem for Linux or WSL as you’ll be able to see above. My distribution is the brand new Ubuntu model 20.04 LTS launch. The directions for setup will be adopted within the GitHub markdown article referenced beforehand to put in the Python packages and dependencies. You can too allow autocomplete using tabs which is a really helpful function in any CLI based mostly device! Right here is the instance of the pip set up command to put in the CLI!
pip3 set up –user tm-thus
When you get the CLI put in, let’s go forward and add our API info to the software program. The CLI device means that you can connect with your related Development Micro Cloud One Companies. On the time of this text, Development Micro Workload Safety, Development Micro Container Picture Safety, and Development Micro Cloud Conformity are supported for connections.
To begin, let’s go together with Development Micro Cloud One Workload Safety. First, make a credentials file to attach the CLI to the corresponding service.
vi ~/.thus/credentials
You are able to do this within the vi editor, or nano in case your desire. You’ll need the construction of the credentials file fairly just like under. The DSMapikey variable is an api key generated out of your Cloud One Workload Safety Console.

You may simply generate an API key within the Cloud One Workload Safety console proven under for example.

The following file that you’re going to need to create for the Thus CLI to make use of for Cloud One Workload Safety is the configuration file. Once more, use vi, or nano to edit. Your ensuing configuration file ought to look fairly just like under.
vi ~/.thus/config.

This file goes to have the API of the DSMHost entered which must be the handle under for Development Micro Cloud One Workload Safety.
https://app.deepsecurity.trendmicro.com/api
A very non-compulsory piece is if you wish to confirm the SSL certificates, or not. That is carried out with the DSMVerifyssl flag.
Okay cool! Let’s examine if the CLI interface works. I edited my bashrc file so as to add the autocomplete performance. That’s proven under.
vi ~/.bashrc

That is so autocomplete routinely begins up every new terminal session.

As we will see above, I kind in thus after which deepsecurity and hit tab and all out there CLI instructions can be found to me. This may in flip work together with the uncovered API utilizing my credentials. Cool! So, we now know that the autocomplete portion is working. Let’s go forward and checklist out all computer systems related to my Development Micro Cloud One Workload Safety Subscription.
Okay, so we will see the next command labored, and was speaking correctly to my Cloud One Workload Safety subscription. I used the jq pipe to make the JSON returned extra human readable.
thus deepsecurity computer systems checklist | jq

Let’s go forward and check out one other Development Micro Cloud One service CLI command!
On this instance, I’ve Development Micro Cloud One Container Picture Safety working inside my Microsoft Azure Subscription.
I simply need to run a fast command to get a list of all container scans that I’ve within the resolution in Azure and people related outcomes.
thus smartcheck scans checklist | jq

Fairly cool have a look at that! Reveals my abstract info for all of the container picture scans.
The final Development Micro Cloud One service that I’m going to take a look at is Development Micro Cloud One Conformity.
As a check, I needed to get an account itemizing of protected accounts in my Cloud One Conformity subscription.
thus cloudconformity accounts checklist | jq

Properly, That is a great begin proper??
Fairly cool undertaking and how one can get began working CLI instructions towards Development Micro Cloud One providers! Till, subsequent time!

Tags

sXpIBdPeKzI9PC2p0SWMpUSM2NSxWzPyXTMLlbXmYa0R20xk

[ad_2]