示例#1
0
    url(identity_specific + r'/members$',
        IdentityMembershipList.as_view(), name='identity-membership-list'),
    url(identity_specific + r'/members/(?P<group_name>%s)$' % user_match,
        IdentityMembership.as_view(), 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>%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'),
示例#2
0
    url(identity_specific + r'/members$',
        IdentityMembershipList.as_view(),
        name='identity-membership-list'),
    url(identity_specific + r'/members/(?P<group_name>%s)$' % user_match,
        IdentityMembership.as_view(),
        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>%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(),
示例#3
0
    url(identity_specific + r"/members$", IdentityMembershipList.as_view(), name="identity-membership-list"),
    url(
        identity_specific + r"/members/(?P<group_name>(%s)$" % user_match,
        IdentityMembership.as_view(),
        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(
示例#4
0
        name='maintenance-record'),
    url(r'^api/v1/notification/$', NotificationList.as_view()),

    #url(r'^api/v1/user/$', atmo_valid_token_required(UserManagement.as_view())),
    #url(r'^api/v1/user/(?P<username>.*)/$', User.as_view()),
    url(r'^api/v1/profile/$', Profile.as_view(), name='profile'),
    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'),
示例#5
0
            name='maintenance-record'),
        url(r'^api/v1/notification/$', NotificationList.as_view()),

        #url(r'^api/v1/user/$', atmo_valid_token_required(UserManagement.as_view())),
        #url(r'^api/v1/user/(?P<username>.*)/$', User.as_view()),
        url(r'^api/v1/profile/$', Profile.as_view(), name='profile'),
        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'),