MinIO
DevSecOps Pack.#
This Integration is part of theSupported versions
Supported Cortex XSOAR versions: 6.0.0 and later.
An Integration with MinIO Object Storage This integration was integrated and tested with RELEASE.2020-12 of MinIO.
#
Configure MinIO in CortexParameter | Description | Required |
---|---|---|
server | Server Name or Address (e.g. 8.8.8.8) | True |
port | Port Number | True |
access_key | Access Key | True |
access_secret | Access Secret | True |
ssl | Connect over SSL | False |
#
CommandsYou can execute these commands from the CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.
#
minio-make-bucketCreate a new bucket.
#
Base Commandminio-make-bucket
#
InputArgument Name | Description | Required |
---|---|---|
name | Bucket Name. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
MinIO.Buckets.bucket | Unknown | MinIO Bucket Name |
MinIO.Buckets.status | Unknown | MinIO Bucket Status |
#
Command Example!minio-make-bucket name="test20"
#
Context Example#
Human Readable Output#
Results
bucket status test20 created
#
minio-remove-bucketRemove an existing bucket.
#
Base Commandminio-remove-bucket
#
InputArgument Name | Description | Required |
---|---|---|
name | Bucket Name. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
MinIO.Buckets.bucket | Unknown | MinIO Bucket Name |
MinIO.Buckets.status | Unknown | MinIO Bucket Status |
#
Command Example!minio-remove-bucket name="test20"
#
Context Example#
Human Readable Output#
Results
bucket status test20 removed
#
minio-list-bucketsList All MinIO Buckets
#
Base Commandminio-list-buckets
#
InputThere are no input arguments for this command.
#
Context OutputPath | Type | Description |
---|---|---|
MinIO.Buckets | Unknown | MinIO Buckets |
#
Command Example!minio-list-buckets
#
Context Example#
Human Readable Output#
Results
bucket creation_date opencti-bucket 2020-12-18 17:06:04.887000+00:00 test1 2020-12-29 10:54:39.996000+00:00 test10 2020-12-29 10:45:46.962000+00:00
#
minio-list-objectsLists object information of a bucket.
#
Base Commandminio-list-objects
#
InputArgument Name | Description | Required |
---|---|---|
bucket_name | Name of the bucket. | Required |
prefix | Object name starts with prefix. | Optional |
start_after | List objects after this key name. | Optional |
include_user_meta | MinIO specific flag to control to include user metadata. Possible values are: True, False. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
MinIO.Objects | Unknown | MinIO Objects |
#
Command Example!minio-list-objects bucket_name="test10"
#
Context Example#
Human Readable Output#
Results
bucket etag is_dir last_modified object size test10 4be6f1e4bda138a555416b866a90530c false 2020-12-29 10:46:04.387000+00:00 MINIO_wordmark.png 11496 test10 c4e3802707693c8df821b37c91c0cfd8 false 2020-12-30 06:10:37.886000+00:00 test.txt 9 test10 7a6add52bec4ca39eedeea16927c92e3 false 2020-12-30 06:12:33.487000+00:00 test.yml 34960
#
minio-get-objectGets data from offset to length of an object.
#
Base Commandminio-get-object
#
InputArgument Name | Description | Required |
---|---|---|
bucket_name | Bucket Name. | Required |
name | Object Name. | Required |
offset | Start byte position of object data. | Optional |
length | Number of bytes of object data from offset. Possible values are: . | Optional |
request_headers | Any additional headers to be added with GET request. | Optional |
extra_query_params | Extra query parameters for advanced usage. | Optional |
#
Context OutputThere is no context output for this command.
#
Command Example!minio-get-object bucket_name="test10" name="MINIO_wordmark.png"
#
Context Example#
Human Readable Output#
minio-stat-objectGet object information and metadata of an object.
#
Base Commandminio-stat-object
#
InputArgument Name | Description | Required |
---|---|---|
bucket_name | Bucket Name. | Required |
name | Object Name. | Required |
extra_query_params | Extra query parameters for advanced usage. | Optional |
#
Context OutputThere is no context output for this command.
#
Command Example!minio-stat-object bucket_name="test10" name="test.txt"
#
Context Example#
Human Readable Output#
Results
bucket content-type etag object size test10 application/octet-stream "c4e3802707693c8df821b37c91c0cfd8" test.txt 9
#
minio-remove-objectRemove an object.
#
Base Commandminio-remove-object
#
InputArgument Name | Description | Required |
---|---|---|
bucket_name | Bucket Name. | Required |
name | Object Name. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
MinIO.Objects.name | Unknown | Object Name |
MinIO.Objects.status | Unknown | Object Status |
#
Command Example!minio-remove-object bucket_name="test10" name="test.txt"
#
Context Example#
Human Readable Output#
Results
bucket object status test10 test.txt removed
#
minio-fput-objectUploads data from a file to an object in a bucket.
#
Base Commandminio-fput-object
#
InputArgument Name | Description | Required |
---|---|---|
bucket_name | Bucket Name. Possible values are: . | Required |
entry_id | File Entry ID. | Required |
content_type | File Type. | Optional |
metadata | Any additional metadata to be uploaded along with your PUT request. | Optional |
#
Context OutputThere is no context output for this command.
#
Command Example!minio-fput-object bucket_name="test10" entry_id="297@58b146a9-f748-4f65-8846-a1d63c7e77f4"
#
Context Example#
Human Readable Output#
Results
bucket object status test10 test.yml uploaded
#
minio-put-objectUploads data from a stream to an object in a bucket.
#
Base Commandminio-put-object
#
InputArgument Name | Description | Required |
---|---|---|
bucket_name | Bucket Name. Possible values are: . | Required |
data | Contains object data. | Required |
name | Object name in the bucket. | Required |
content_type | File Type. | Optional |
metadata | Any additional metadata to be uploaded along with your PUT request. | Optional |
#
Context OutputThere is no context output for this command.
#
Command Example!minio-put-object bucket_name="test10" data="'test100'" name="test.txt"
#
Context Example#
Human Readable Output#
Results
bucket object status test10 test.txt uploaded
#
minio-get-tagsGet tags configuration of an object.
#
Base Commandminio-get-tags
#
InputArgument Name | Description | Required |
---|---|---|
bucket_name | Bucket Name. | Required |
name | Object name in the bucket. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
MinIO.Objects.bucket | Unknown | Bucket Name. |
MinIO.Objects.object | Unknown | Object Name. |
MinIO.Objects.tags | Unknown | Object Tags. |
#
Command Example!minio-get-tags bucket_name="test11" name="test.txt"
#
Context Example#
minio-set-tagSet tags configuration to an object.
#
Base Commandminio-set-tag
#
InputArgument Name | Description | Required |
---|---|---|
bucket_name | Bucket Name. | Required |
name | Object name in the bucket. | Required |
tag_key | Key for the tag to add on the object. | Required |
tag_value | Value for the tag to add on the object. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
MinIO.Objects.bucket | Unknown | Bucket Name. |
MinIO.Objects.object | Unknown | Object Name. |
MinIO.Objects.tags | Unknown | Object Tags. |
#
Command Example!minio-set-tag bucket_name="test11" name="test.txt" tag_key="status" tag_value="in_progress"
#
Context Example#
minio-copy-objectCreate an object by server-side copying data from another object.
#
Base Commandminio-copy-object
#
InputArgument Name | Description | Required |
---|---|---|
bucket_name_src | Bucket Name to copy object from. | Required |
name_src | Object name to copy. | Required |
bucket_name_dst | Bucket Name to copy object to. | Required |
name_dst | Object name copied. | Required |
metadata | Any user-defined metadata to be copied along with destination object. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
MinIO.Objects.bucket | Unknown | Bucket Name. |
MinIO.Objects.object | Unknown | Object Name |
MinIO.Objects.status | Unknown | Object Status |
#
Command Example!minio-copy-object bucket_name_src="test12" name_src="test_source.txt" bucket_name_dst="test12" name_dst="test_destination.txt"
!minio-copy-object bucket_name_src="test12" name_src="test_source.txt" bucket_name_dst="test12" name_dst="myFolder/test_destination.txt"
(It will create the folder myFolder)