Beispiel #1
0
    url(identity_specific + r'/machine/(?P<machine_id>%s)/vote$' % uuid_match,
        MachineVote.as_view(), name='machine-vote'),

    url(identity_specific + r'/meta$', Meta.as_view(), name='meta-detail'),
    url(identity_specific + r'/meta/(?P<action>.*)$',
        MetaAction.as_view(), name='meta-action'),

    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,
Beispiel #2
0
    url(identity_specific + r'/meta$', Meta.as_view(), name='meta-detail'),
    url(identity_specific + r'/meta/(?P<action>.*)$',
        MetaAction.as_view(),
        name='meta-action'),
    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,
Beispiel #3
0
        identity_specific + r"/machine/(?P<machine_id>[a-zA-Z0-9-]+)/vote$", MachineVote.as_view(), name="machine-vote"
    ),
    url(identity_specific + r"/meta$", Meta.as_view(), name="meta-detail"),
    url(identity_specific + r"/meta/(?P<action>.*)$", MetaAction.as_view(), name="meta-action"),
    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$",
Beispiel #4
0
)

urlpatterns += format_suffix_patterns(patterns(
    '',
    url(r'api/v1/version/$', Version.as_view()),
    url(r'^api/v1/maintenance/$',
        MaintenanceRecordList.as_view(),
        name='maintenance-record-list'),
    url(r'^api/v1/maintenance/(?P<record_id>\d+)/$',
        MaintenanceRecord.as_view(),
        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'),
Beispiel #5
0
urlpatterns += format_suffix_patterns(
    patterns(
        '',
        url(r'api/v1/version/$', Version.as_view()),
        url(r'^api/v1/maintenance/$',
            MaintenanceRecordList.as_view(),
            name='maintenance-record-list'),
        url(r'^api/v1/maintenance/(?P<record_id>\d+)/$',
            MaintenanceRecord.as_view(),
            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(),