mongocli ops-manager admin backup s3 describe
Note
You must be a Global Owner
to run admin
commands.
The admin backup s3 describe
command retrieves
configuration information for the specified backup
S3 blockstore
configuration. You can also retrieve an S3 configuration using
the API, or view S3
configurations in the
Administration Console.
Syntax
mongocli ops-manager|om admin backup s3 describe|get <s3-name> [ --output|-o <output-format> ] [ --profile|-P <profile-name> ]
Note
Use -h
or --help
to view the command-line help for
this command.
Arguments
Argument | Type | Description | Required? |
---|---|---|---|
<s3-name> | string | Unique identifier of the S3 blockstore configuration that you
want to describe. You can retrieve a list of S3 names for
a deployment with the
List Backup S3 Configurations command. | yes |
Options
Option | Type | Description | Required? |
---|---|---|---|
--output , -o | string | Command output format. Valid values are:
If omitted, the command returns output in the default format. | no |
--profile , -P | string | Name of the profile where the public and private
keys for accessing Ops Manager are saved. If omitted, uses the
default profile. To learn more about creating a
profile, see Configure the MongoDB CLI. | no |
Output
The command prints the following fields in the specified format to the terminal if the command succeeds. If the command prints an error, see Troubleshooting for recommended solutions.
NAME URI SSL LOAD FACTOR AUTH METHOD <name> <hostname>:<port> <boolean> <integer> <s3-auth-method>
The default output is a subset of the fields returned by this command. For the complete list of JSON fields returned by the command, see the Public API reference for your MongoDB service:
Examples
The following command retrieves configuration information for an
S3 blockstore using the default profile, which contains
Global Owner
Ops Manager
credentials. The output is
returned in the default format.
mongocli ops-manager admin backup s3 describe s3BackupExample
The previous command prints the following to the terminal.
NAME URI SSL LOAD FACTOR AUTH METHOD s3BackupExample mongodb://127.0.0.1:27017 false 1
The following command retrieves configuration information for an
S3 blockstore using the default profile, which contains
Global Owner
Ops Manager
credentials. The output is
returned in JSON format.
mongocli ops-manager admin backup s3 describe s3BackupExample -o json
The previous command prints the following to the terminal in JSON format.
{ "id": "s3BackupExample", "uri": "mongodb://127.0.0.1:27017", "ssl": false, "assignmentEnabled": true, "encryptedCredentials": false, "loadFactor": 1, "awsAccessKey": "access", "awsSecretKey": "secret", "s3BucketEndpoint": "https://s3.us-east-1.amazonaws.com/bucketExample/", "s3BucketName": "bucketExample", "s3MaxConnections": 50, "disableProxyS3": false, "acceptedTos": true, "sseEnabled": false, "pathStyleAccessEnabled": false }