Ejemplo n.º 1
0
    url(r'^instance_history/'
        + '(?P<instance_id>%s)/' % uuid_match
        + 'status_history$', InstanceStatusHistoryDetail.as_view(),
        name='instance-history'),

    url(identity_specific + r'/instance/'
        + '(?P<instance_id>%s)/tag$' % uuid_match,
        InstanceTagList.as_view(), name='instance-tag-list'),
    url(identity_specific + r'/instance/'
        + '(?P<instance_id>%s)/tag/(?P<tag_slug>.*)$' % uuid_match,
        InstanceTagDetail.as_view(), name='instance-tag-detail'),
    url(identity_specific + r'/instance/'
        + '(?P<instance_id>%s)/action$' % uuid_match,
        InstanceAction.as_view(), name='instance-action'),
    url(identity_specific + r'/instance/(?P<instance_id>%s)$' % uuid_match,
        Instance.as_view(), name='instance-detail'),
    url(identity_specific + r'/instance$',
        InstanceList.as_view(), name='instance-list'),

    url(r'^instance_action/$',
        InstanceActionList.as_view(),
        name='instance-action-list'),
    url(r'^instance_action/(?P<action_id>%s)$' % (id_match,),
        InstanceActionDetail.as_view(),
        name='instance-action-detail'),

    url(identity_specific + r'/size$',
        SizeList.as_view(), name='size-list'),
    url(identity_specific + r'/size/(?P<size_id>%s)$' % (id_match,),
        Size.as_view(), name='size-detail'),
Ejemplo n.º 2
0
     r"^instance_history/" "(?P<instance_id>[a-zA-Z0-9-]+)$",
     InstanceHistoryDetail.as_view(),
     name="instance-history",
 ),
 url(
     r"^instance_history/" "(?P<instance_id>[a-zA-Z0-9-]+)/" "status_history$",
     InstanceStatusHistoryDetail.as_view(),
     name="instance-history",
 ),
 url(
     identity_specific + r"/instance/" + "(?P<instance_id>[a-zA-Z0-9-]+)/action$",
     InstanceAction.as_view(),
     name="instance-action",
 ),
 url(
     identity_specific + r"/instance/(?P<instance_id>[a-zA-Z0-9-]+)$", Instance.as_view(), name="instance-detail"
 ),
 url(identity_specific + r"/instance$", InstanceList.as_view(), name="instance-list"),
 url(identity_specific + r"/size$", SizeList.as_view(), name="size-list"),
 url(identity_specific + r"/size/(?P<size_id>\d+)$", Size.as_view(), name="size-detail"),
 url(identity_specific + r"/volume$", VolumeList.as_view(), name="volume-list"),
 url(identity_specific + r"/volume/(?P<volume_id>[a-zA-Z0-9-]+)$", Volume.as_view(), name="volume-detail"),
 url(
     identity_specific + r"/boot_volume(?P<volume_id>[a-zA-Z0-9-]+)?$", BootVolume.as_view(), name="boot-volume"
 ),
 url(identity_specific + r"/volume_snapshot$", VolumeSnapshot.as_view(), name="volume-snapshot"),
 url(
     identity_specific + r"/volume_snapshot/(?P<snapshot_id>[a-zA-Z0-9-]+)$",
     VolumeSnapshotDetail.as_view(),
     name="volume-snapshot-detail",
 ),
Ejemplo n.º 3
0
     InstanceStatusHistoryDetail.as_view(),
     name='instance-history'),
 url(identity_specific + r'/instance/' +
     '(?P<instance_id>%s)/tag$' % uuid_match,
     InstanceTagList.as_view(),
     name='instance-tag-list'),
 url(identity_specific + r'/instance/' +
     '(?P<instance_id>%s)/tag/(?P<tag_slug>.*)$' % uuid_match,
     InstanceTagDetail.as_view(),
     name='instance-tag-detail'),
 url(identity_specific + r'/instance/' +
     '(?P<instance_id>%s)/action$' % uuid_match,
     InstanceAction.as_view(),
     name='instance-action'),
 url(identity_specific + r'/instance/(?P<instance_id>%s)$' % uuid_match,
     Instance.as_view(),
     name='instance-detail'),
 url(identity_specific + r'/instance$',
     InstanceList.as_view(),
     name='instance-list'),
 url(r'^instance_action/$',
     InstanceActionList.as_view(),
     name='instance-action-list'),
 url(r'^instance_action/(?P<action_id>%s)$' % (id_match, ),
     InstanceActionDetail.as_view(),
     name='instance-action-detail'),
 url(identity_specific + r'/size$',
     SizeList.as_view(),
     name='size-list'),
 url(identity_specific + r'/size/(?P<size_id>%s)$' % (id_match, ),
     Size.as_view(),
Ejemplo n.º 4
0
    url(r'^instance_history/'
        '(?P<instance_id>[a-zA-Z0-9-]+)/'
        'status_history$', InstanceStatusHistoryDetail.as_view(),
        name='instance-history'),

    url(identity_specific + r'/instance/'
        + '(?P<instance_id>[a-za-z0-9-]+)/tag$',
        InstanceTagList.as_view(), name='instance-tag-list'),
    url(identity_specific + r'/instance/'
        + '(?P<instance_id>[a-zA-Z0-9-]+)/tag/(?P<tag_slug>.*)$',
        InstanceTagDetail.as_view(), name='instance-tag-detail'),
    url(identity_specific + r'/instance/'
        + '(?P<instance_id>[a-za-z0-9-]+)/action$',
        InstanceAction.as_view(), name='instance-action'),
    url(identity_specific + r'/instance/(?P<instance_id>[a-zA-Z0-9-]+)$',
        Instance.as_view(), name='instance-detail'),
    url(identity_specific + r'/instance$',
        InstanceList.as_view(), name='instance-list'),

    url(identity_specific + r'/size$',
        SizeList.as_view(), name='size-list'),
    url(identity_specific + r'/size/(?P<size_id>\d+)$',
        Size.as_view(), name='size-detail'),


    url(identity_specific + r'/volume$',
        VolumeList.as_view(), name='volume-list'),
    url(identity_specific + r'/volume/(?P<volume_id>[a-zA-Z0-9-]+)$',
        Volume.as_view(), name='volume-detail'),
    url(identity_specific + r'/boot_volume(?P<volume_id>[a-zA-Z0-9-]+)?$',
        BootVolume.as_view(), name='boot-volume'),