create_tenant

Creates a new tenant in Enterprise Manager.

Format

Standard Mode

emcli create_tenant
      -name="name"
      -description="description"
      -owner_name="owner_name"
      [-owner_password="owner_password"]
      [-owner_type="owner_type"]
      [-namespace="namespace"]

[ ]  indicates that the parameter is optional

Interactive or Script Mode

emcli create_tenant(
      name="name"
      ,description="description"
      ,owner_name="owner_name"
      [,owner_password="owner_password"]
      [,owner_type="owner_type"]
      [,namespace="namespace"]
)

[ ]  indicates that the parameter is optional

Options

  • name

    The name of the tenant.

  • description

    Description of the tenant.

  • owner_name

    The tenant owner name.

  • owner_type

    The type of owner. EM_USER is the default owner type. Other possible values are EM_USER and EXTERNAL_USER.

  • namespace

    The namespace for the tenant.

Exit Codes

0 if successful. A non-zero value indicates that verb processing was unsuccessful.

Example

The following example creates a tenant by name my_tenant with john_doe as the tenant owner.

emcli create_tenant 
      -name=my_tenant
      -description="This is the tenant description."
      -owner_name=john.doe
      -owner_password=pw 
      -owner_type=EM_USER