Revision 39a6388d snf-cyclades-app/synnefo/api/management/commands/server-create.py

b/snf-cyclades-app/synnefo/api/management/commands/server-create.py
41 41
from synnefo.api.util import get_image, allocate_public_address
42 42
from synnefo.api.faults import ItemNotFound
43 43

  
44
HELP_MSG = """
45

  
46
Create a new VM without authenticating the user or checking the resource
47
limits of the user. Also the allocator can be bypassed by specifing a
48
backend-id.
49
"""
50

  
44 51

  
45 52
class Command(BaseCommand):
46
    help = "Create a new VM."
53
    help = "Create a new VM." + HELP_MSG
47 54

  
48 55
    output_transaction = True
49 56

  
50 57
    option_list = BaseCommand.option_list + (
51 58
            make_option("--backend-id", dest="backend_id",
52
                        help="ID of the Ganeti backend"),
59
                        help="Unique identifier of the Ganeti backend."
60
                             " Use snf-manage backend-list to find out"
61
                             " available backends."),
53 62
            make_option("--name", dest="name",
54
                        help="Name of the server."),
63
                        help="An arbitrary string for naming the server"),
55 64
            make_option("--user-id", dest="user_id",
56
                        help="ID of the Owner of the server."),
65
                        help="Unique identifier of the owner of the server"),
57 66
            make_option("--image-id", dest="image_id",
58
                        help="ID of the image."),
67
                        help="Unique identifier of the image."
68
                             " Use snf-manage image-list to find out"
69
                             " available images."),
59 70
            make_option("--flavor-id", dest="flavor_id",
60
                        help="ID of the flavor"),
71
                        help="Unique identifier of the flavor"
72
                             " Use snf-manage flavor-list to find out"
73
                             " available flavors."),
61 74
            make_option("--password", dest="password",
62 75
                        help="Password for the new server")
63 76
        )

Also available in: Unified diff