Esempio n. 1
0
    url(r'^application$',
        ApplicationList.as_view(),
        name='application-list'),

    url(r'^application/search$',
        ApplicationSearch.as_view(),
        name='application-search'),
    url(r'^application/(?P<app_uuid>%s)$' % uuid_match,
        Application.as_view(),
        name='application-detail'),
    #ApplicationThreshold Related APIs
    url(r'^application/(?P<app_uuid>%s)/threshold$' % uuid_match,
        ApplicationThresholdDetail.as_view(),
        name='threshold-detail'),

    url(r'^instance_history$', InstanceHistory.as_view(),
        name='instance-history'),
    url(r'^instance_history/'
        '(?P<instance_id>%s)$' % uuid_match, InstanceHistoryDetail.as_view(),
        name='instance-history'),
    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'),
Esempio n. 2
0
 url(r'^tag/(?P<tag_slug>.*)$', Tag.as_view()),
 url(r'^application$',
     ApplicationList.as_view(),
     name='application-list'),
 url(r'^application/search$',
     ApplicationSearch.as_view(),
     name='application-search'),
 url(r'^application/(?P<app_uuid>%s)$' % uuid_match,
     Application.as_view(),
     name='application-detail'),
 #ApplicationThreshold Related APIs
 url(r'^application/(?P<app_uuid>%s)/threshold$' % uuid_match,
     ApplicationThresholdDetail.as_view(),
     name='threshold-detail'),
 url(r'^instance_history$',
     InstanceHistory.as_view(),
     name='instance-history'),
 url(r'^instance_history/'
     '(?P<instance_id>%s)$' % uuid_match,
     InstanceHistoryDetail.as_view(),
     name='instance-history'),
 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,
Esempio n. 3
0
    url(r'^tag$', TagList.as_view(), name='tag-list'),
    url(r'^tag/(?P<tag_slug>.*)$', Tag.as_view()),

    url(r'^application$',
        ApplicationList.as_view(),
        name='application-list'),

    url(r'^application/search$',
        ApplicationSearch.as_view(),
        name='application-search'),
    url(r'^application/(?P<app_uuid>[a-zA-Z0-9-]+)$',
        Application.as_view(),
        name='application-detail'),

    url(r'^instance$', InstanceHistory.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/history$',
        InstanceHistory.as_view(), name='instance-history'),
    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+)$',
Esempio n. 4
0
    url(r'^api/v1/provider/(?P<provider_id>\d+)/occupancy/$',
        Occupancy.as_view(), name='occupancy'),
    url(r'^api/v1/provider/(?P<provider_id>\d+)/hypervisor/$',
        Hypervisor.as_view(), name='hypervisor'),

    url(r'^api/v1/group/$', GroupList.as_view(), name='group-list'),
    url(r'^api/v1/group/(?P<groupname>.*)/$', Group.as_view()),

    url(r'^api/v1/tag/$', TagList.as_view(), name='tag-list'),
    url(r'^api/v1/tag/(?P<tag_slug>.*)/$', Tag.as_view()),

    url(r'^api/v1/application/$',
        ApplicationListNoAuth.as_view(),
        name='application-list-no-auth'),

    url(r'^api/v1/instance/$', InstanceHistory.as_view(),
        name='instance-history'),

    url(r'^api/v1/request_image/$',
        MachineRequestStaffList.as_view(), name='direct-machine-request-list'),
    url(r'^api/v1/request_image/(?P<machine_request_id>\d+)/$',
        MachineRequestStaff.as_view(), name='direct-machine-request-detail'),
    url(r'^api/v1/request_image/(?P<machine_request_id>\d+)/(?P<action>.*)/$',
        MachineRequestStaff.as_view(), name='direct-machine-request-action'),


    url(r'^api/v1/provider/(?P<provider_id>\d+)/account/(?P<username>([A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*))/$',
        Account.as_view(), name='account-management'),


    url(r'^api/v1/provider/(?P<provider_id>\d+)'
Esempio n. 5
0
        name="identity-membership-detail",
    ),
)

public_apis = format_suffix_patterns(
    patterns(
        "",
        url(r"^profile$", Profile.as_view(), name="profile"),
        url(r"^group$", GroupList.as_view(), name="group-list"),
        url(r"^group/(?P<groupname>.*)$", Group.as_view()),
        url(r"^tag$", TagList.as_view(), name="tag-list"),
        url(r"^tag/(?P<tag_slug>.*)$", Tag.as_view()),
        url(r"^application$", ApplicationList.as_view(), name="application-list"),
        url(r"^application/search$", ApplicationSearch.as_view(), name="application-search"),
        url(r"^application/(?P<app_uuid>[a-zA-Z0-9-]+)$", Application.as_view(), name="application-detail"),
        url(r"^instance_history$", InstanceHistory.as_view(), name="instance-history"),
        url(
            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",
        ),
Esempio n. 6
0
    url(r'^tag$', TagList.as_view(), name='tag-list'),
    url(r'^tag/(?P<tag_slug>.*)$', Tag.as_view()),

    url(r'^application$',
        ApplicationList.as_view(),
        name='application-list'),

    url(r'^application/search$',
        ApplicationSearch.as_view(),
        name='application-search'),
    url(r'^application/(?P<app_uuid>[a-zA-Z0-9-]+)$',
        Application.as_view(),
        name='application-detail'),

    url(r'^instance_history$', InstanceHistory.as_view(),
        name='instance-history'),
    url(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-]+)/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'),