Navigation

mongocli cloud-manager featurePolicies update

The featurePolicies update command updates all Cloud Manager feature control policies for the external system that manages the specified project. You can also update all feature policies for one project through the API.

mongocli cloud-manager|cm featurePolicies update|updates
--name <name-of-external-system>
[ --output|-o <output-format> ]
--policy <one-or-more-feature-policies>
[ --profile|-P <profile-name> ]
--projectId <project-ID>
[ --systemId <id-of-external-system> ]
Note

Use -h or --help to view the command-line help for this command.

Option
Type
Description
Required?
--name
string
Name of the external system that manages this project's deployment.
yes
--output, -o
string

Command output format. Valid values are:

  • json for output in JSON format
  • go-template for custom output using the Go template
  • go-template-file for custom output specified using the Go template file

If omitted, the command returns output in the default format.

no
--policy
strings

Comma-separated list of policies that the external system applies to this project. Possible values and their descriptions are:

Variable
Description
EXTERNALLY_MANAGED_LOCK
Users can't use Cloud Manager or Ops Manager to manage other settings given in the policies list, and may use a configured external system to manage these settings.
DISABLE_USER_MANAGEMENT
Users can't manage users or roles.
DISABLE_AUTHENTICATION_MECHANISMS
Users can't change authentication settings.
DISABLE_SET_MONGOD_CONFIG
Users can't change any mongod settings listed in the policies[n].disabledParams policy.
DISABLE_SET_MONGOD_VERSION
Users can't change the version of any mongod or mongos.
DISABLE_BACKUP_AGENT
Users can't enable or disable the agent.
DISABLE_MONGOD_LOG_MANAGEMENT
Users can't change log management settings.
DISABLE_IMPORT_TO_AUTOMATION
Users can't manage deployments using Automation Agent.
DISABLE_AGENT_API_KEY_MANAGEMENT
Users can't create or update Agent API keys.
DISABLE_MONGOD_HOST_MANAGEMENT
Users can't change the server type of hosts.
yes
--profile, -P
string
Name of the profile where the project ID and the Programmatic API Keys for the project are saved. If omitted, uses the default profile. To learn more about creating a profile, see Configure the MongoDB CLI.
no
--projectId
string

Unique identifier of the project. If omitted, uses the project ID in the profile or environment variable.

no
--systemId
string
Unique identifier of the external system that manages this Ops Manager project.
no

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.

Feature control policies updated.

If you request output in JSON format, the command returns the fields described in the API reference.

The following example uses the mongocli cm featurePolicies update command to update all feature control policies for the project specified in the profile called myCm.

mongocli cm featurePolicies update --name my-external-system --policy EXTERNALLY_MANAGED_LOCK -P myCm

The previous command produces the following output.

Feature control policies updated.
Give Feedback