Difference between revisions of "Opensearch-cli profile create"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | opensearch-cli profile create --auth-type "basic" | + | opensearch-cli profile create --auth-type "basic" --name "mylocalhost" --endpoint "https://localhost:[[9200]]" |
− | |||
− | |||
Username: admin | Username: admin | ||
Password: ******* | Password: ******* |
Revision as of 14:45, 22 April 2022
opensearch-cli profile create --auth-type "basic" --name "mylocalhost" --endpoint "https://localhost:9200" Username: admin Password: ******* Profile created successfully.
opensearch-cli profile create --help Create named profile to save settings and credentials that you can apply to an opensearch-cli command. Usage: opensearch-cli profile create [flags] Flags: -a, --auth-type string Authentication type. Options are disabled, basic and aws-iam. If security is disabled, provide --auth-type='disabled'. If security uses HTTP basic authentication, provide --auth-type='basic'. If security uses client certificate authentication, provide --auth-type='cert'. If security uses AWS IAM ARNs as users, provide --auth-type='aws-iam'. opensearch-cli asks for additional information based on your choice of authentication type. -e, --endpoint string Create profile with this endpoint or host -h, --help Help for create -m, --max-retry int Maximum retry attempts allowed if transient problems occur. You can override this value by using the OPENSEARCH_MAX_RETRY environment variable. (default 3) -n, --name string Create profile with this name -t, --timeout int Maximum time allowed for connection in seconds. You can override this value by using the OPENSEARCH_TIMEOUT environment variable. (default 10) Global Flags: -c, --config string Configuration file for opensearch-cli, default is /Users/sf/.opensearch-cli/config.yaml -p, --profile string Use a specific profile from your configuration file
See also
Advertising: