Skip to content

Environments

/env/get

bash
curl https://ops.minusonedb.com/env/get?env=24e27632d234452ba37e60936c0e88eb \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/get -env 24e27632d234452ba37e60936c0e88eb
ParameterTypeRequired
envStringYes
  • Rights: view
  • Verb: GET

Retrieve metadata associated with the specified environment. Note: Anywhere the environment id is passed into, the environment name could be used as well.

200 OKReturns environment metadata

/env/list

bash
curl https://ops.minusonedb.com/env/list?account=31e1192e-5415-4d85-a45e-b88897c96c1b \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/list -account 31e1192e-5415-4d85-a45e-b88897c96c1b
ParameterTypeRequired
accountStringYes
  • Rights: view
  • Verb: GET

List all environments associated with the specified account.

200 OKReturns a list of environments for the account

/env/create

bash
curl https://ops.minusonedb.com/env/create \
  -d "env=newenvironment-m1&servers=2" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/create -env newenvironment-m1 -servers 2
ParameterTypeRequired
accountStringYes
nameStringYes
serversintNo
  • Rights: manage
  • Verb: POST

Create a new environment. The name must be unique within the account. Servers defaults to 2 if unspecified. Note: Anywhere the environment id is passed into, the environment name could be used as well.

200 OKReturns metadata for the newly created environment

/env/rename

bash
curl https://ops.minusonedb.com/env/rename \
  -d "env=myenv-m1&name=mynewenv-m1" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/rename -env myenv-m1 -name mynewenv-m1
ParameterTypeRequired
envStringYes
nameStringYes
  • Rights: manage
  • Verb: POST

Renames an existing environment. Can be used to move an environment from one account to another but the user must have manage permissions for both the source and destination accounts.

/env/destroy

bash
curl https://ops.minusonedb.com/env/destroy \
  -d "env=24e27632d234452ba37e60936c0e88eb" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/destroy -env 24e27632d234452ba37e60936c0e88eb
ParameterTypeRequired
envStringYes
  • Rights: manage
  • Verb: POST

Destroy an environment and all associated resources. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/rescale

bash
curl https://ops.minusonedb.com/env/rescale \
  -d "env=24e27632d234452ba37e60936c0e88eb&servers=2&threshold=2" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/rescale -env 24e27632d234452ba37e60936c0e88eb -servers 2 -threshold 2
ParameterTypeRequired
envStringYes
serversintNo
thresholdintNo
  • Rights: manage
  • Verb: POST

Change the number of data processing servers for the specified environment. If servers is unspecified, the existing number is used. Threshold defaults to the existing number of servers. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/reboot

bash
curl https://ops.minusonedb.com/env/reboot \
  -d "env=24e27632d234452ba37e60936c0e88eb&group=index" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/reboot -env 24e27632d234452ba37e60936c0e88eb -group index
ParameterTypeRequired
envStringYes
groupStringYes
  • Rights: manage
  • Verb: POST

Reboots all servers in a server group; a server group encompasses the servers associated for a particular data store or session store. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/store/create

bash
curl https://ops.minusonedb.com/env/store/create \
  -d "env=24e27632d234452ba37e60936c0e88eb&store=index&type=standard&shards=1&replicas=2" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/store/create -env 24e27632d234452ba37e60936c0e88eb -store index -type standard -shards 1 -replicas 2
ParameterTypeRequired
envStringYes
storeStringYes
typeStringNo
shardsintNo
replicasintNo
  • Rights: manage
  • Verb: POST

Create a new data store for the specified environment. Store name must be unique within the environment. Type is standard or boost (default: standard). Shards default to 1; a single shard can store 450 GB (standard) or 375 GB (boost). Replicas default to 2. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/store/rename

bash
curl https://ops.minusonedb.com/env/store/rename \
  -d "env=24e27632d234452ba37e60936c0e88eb&store=index&name=newStoreName" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/store/rename -env 24e27632d234452ba37e60936c0e88eb -store index -name newStoreName
ParameterTypeRequired
envStringYes
storeStringYes
nameStringYes
  • Rights: manage
  • Verb: POST

Change the name of a data store for the specified environment. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/store/destroy

bash
curl https://ops.minusonedb.com/env/store/destroy \
  -d "env=24e27632d234452ba37e60936c0e88eb&store=index" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/store/destroy -env 24e27632d234452ba37e60936c0e88eb -store index
ParameterTypeRequired
envStringYes
storeStringYes
  • Rights: manage
  • Verb: POST

Destroy a data store from the specified environment. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/session/create

bash
curl https://ops.minusonedb.com/env/session/create \
  -d "env=24e27632d234452ba37e60936c0e88eb&store=stash&shards=1&replicas=2" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/session/create -env 24e27632d234452ba37e60936c0e88eb -store stash -shards 1 -replicas 2
ParameterTypeRequired
envStringYes
storeStringYes
shardsintNo
replicasintNo
  • Rights: manage
  • Verb: POST

Create a new session store for the specified environment. Store name must be unique within the environment. Shards default to 1; a single shard can store approximately 450,000 session objects and support approximately 45,000 updates/second. Replicas default to 2. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/session/rename

bash
curl https://ops.minusonedb.com/env/session/rename \
  -d "env=24e27632d234452ba37e60936c0e88eb&store=stash&name=newSessionStoreName" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/session/rename -env 24e27632d234452ba37e60936c0e88eb -store stash -name newSessionStoreName
ParameterTypeRequired
envStringYes
storeStringYes
nameStringYes
  • Rights: manage
  • Verb: POST

Change the name for a session store for the specified environment. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/session/destroy

bash
curl https://ops.minusonedb.com/env/session/destroy \
  -d "env=24e27632d234452ba37e60936c0e88eb&store=stash" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/session/destroy -env 24e27632d234452ba37e60936c0e88eb -store stash
ParameterTypeRequired
envStringYes
storeStringYes
  • Rights: manage
  • Verb: POST

Destroy a session store from the specified environment. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/bucket/register

bash
curl https://ops.minusonedb.com/env/bucket/register \
  -d "env=24e27632d234452ba37e60936c0e88eb&bucket=myBucket" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/bucket/register -env 24e27632d234452ba37e60936c0e88eb -bucket myBucket
ParameterTypeRequired
envStringYes
bucketStringYes
  • Rights: manage
  • Verb: POST

Register a new bucket for the specified environment. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/bucket/deregister

bash
curl https://ops.minusonedb.com/env/bucket/deregister \
  -d "env=24e27632d234452ba37e60936c0e88eb&bucket=myBucket" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/bucket/deregister -env 24e27632d234452ba37e60936c0e88eb -bucket myBucket
ParameterTypeRequired
envStringYes
bucketStringYes
  • Rights: manage
  • Verb: POST

Deregister an existing bucket from the specified environment. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/bucket/grant

bash
curl https://ops.minusonedb.com/env/bucket/grant \
  -d "env=24e27632d234452ba37e60936c0e88eb&arn=arn:aws:iam::123456789123456789:role/read-role" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/bucket/grant -env 24e27632d234452ba37e60936c0e88eb -arn arn:aws:iam::123456789123456789:role/read-role
ParameterTypeRequired
envStringYes
arnStringYes
  • Rights: manage
  • Verb: POST

Grant read access to the environment bucket to a user's role external to the m1 AWS account. Try env/get to see what read roles have been granted. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/bucket/revoke

bash
curl https://ops.minusonedb.com/env/bucket/revoke \
  -d "env=24e27632d234452ba37e60936c0e88eb&arn=arn:aws:iam::123456789123456789:role/read-role" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/bucket/revoke -env 24e27632d234452ba37e60936c0e88eb -arn arn:aws:iam::123456789123456789:role/read-role
ParameterTypeRequired
envStringYes
arnStringYes
  • Rights: manage
  • Verb: POST

Revoke read access to the environment bucket to a user's role external to the m1 AWS account. Try env/get to see what read roles have been granted. Note: Anywhere the environment id is passed into, the environment name could be used as well.

/env/outbound

bash
curl https://ops.minusonedb.com/env/outbound \
  -d "env=test-m1&enable=true" \
  -H "m1-auth-token: $myToken"
bash
m1 ops env/outbound -env test-m1 -enable true
ParameterTypeRequired
envStringYes
enableBooleanYes
  • Rights: manage
  • Verb: POST

Enables or disables outbound internet connectivity for an environment's data processing servers. This is disabled by default but must be enabled to access data in GCS buckets.

© 2021-2026 MinusOne, Inc.