Beispiel #1
0
    url(identity_specific + r'/machine/(?P<machine_id>%s)$' % uuid_match,
        Machine.as_view(), name='machine-detail'),
    url(identity_specific + r'/machine/(?P<machine_id>%s)/license$' % uuid_match,
        MachineLicense.as_view(), name='machine-license'),
    url(identity_specific + r'/machine/(?P<machine_id>%s)' % uuid_match
        + '/icon$', MachineIcon.as_view(), name='machine-icon'),

    url(provider_specific + r'/identity$', IdentityList.as_view(), name='identity-list'),
    url(identity_specific + r'$', Identity.as_view(), name='identity-detail'),

    url(r'^credential$', CredentialList.as_view(),
        name='credential-list'),
    url(r'^credential/(?P<identity_uuid>%s)$' % (uuid_match,),
        CredentialDetail.as_view(), name='credential-detail'),

    url(r'^identity$', IdentityDetailList.as_view(),
        name='identity-detail-list'),
    url(r'^identity/(?P<identity_uuid>%s)$' % (uuid_match,), IdentityDetail.as_view(),
        name='identity-detail'),
    url(r'^provider$', ProviderList.as_view(), name='provider-list'),
    url(r'^provider/(?P<provider_uuid>%s)$' % uuid_match,
        Provider.as_view(), name='provider-detail'),


    url(identity_specific + r'/request_image$',
        MachineRequestList.as_view(), name='machine-request-list'),
    url(identity_specific + r'/request_image/(?P<machine_request_id>%s)$' % (uuid_match,),
        MachineRequest.as_view(), name='machine-request'),


    url(identity_specific + r'/profile$',
Beispiel #2
0
 url(identity_specific + r'/machine/(?P<machine_id>%s)' % uuid_match +
     '/icon$',
     MachineIcon.as_view(),
     name='machine-icon'),
 url(provider_specific + r'/identity$',
     IdentityList.as_view(),
     name='identity-list'),
 url(identity_specific + r'$',
     Identity.as_view(),
     name='identity-detail'),
 url(r'^credential$', CredentialList.as_view(), name='credential-list'),
 url(r'^credential/(?P<identity_uuid>%s)$' % (uuid_match, ),
     CredentialDetail.as_view(),
     name='credential-detail'),
 url(r'^identity$',
     IdentityDetailList.as_view(),
     name='identity-detail-list'),
 url(r'^identity/(?P<identity_uuid>%s)$' % (uuid_match, ),
     IdentityDetail.as_view(),
     name='identity-detail'),
 url(r'^provider$', ProviderList.as_view(), name='provider-list'),
 url(r'^provider/(?P<provider_uuid>%s)$' % uuid_match,
     Provider.as_view(),
     name='provider-detail'),
 url(identity_specific + r'/request_image$',
     MachineRequestList.as_view(),
     name='machine-request-list'),
 url(identity_specific + r'/request_image/(?P<machine_request_id>%s)$' %
     (uuid_match, ),
     MachineRequest.as_view(),
     name='machine-request'),
Beispiel #3
0
            identity_specific + r"/volume_snapshot/(?P<snapshot_id>[a-zA-Z0-9-]+)$",
            VolumeSnapshotDetail.as_view(),
            name="volume-snapshot-detail",
        ),
        url(identity_specific + r"/machine$", MachineList.as_view(), name="machine-list"),
        url(identity_specific + r"/machine/history$", MachineHistory.as_view(), name="machine-history"),
        url(identity_specific + r"/machine/search$", MachineSearch.as_view(), name="machine-search"),
        url(identity_specific + r"/machine/(?P<machine_id>[a-zA-Z0-9-]+)$", Machine.as_view(), name="machine-detail"),
        url(
            identity_specific + r"/machine/(?P<machine_id>[a-zA-Z0-9-]+)" + "/icon$",
            MachineIcon.as_view(),
            name="machine-icon",
        ),
        url(provider_specific + r"/identity$", IdentityList.as_view(), name="identity-list"),
        url(identity_specific + r"$", Identity.as_view(), name="identity-detail"),
        url(r"^identity$", IdentityDetailList.as_view(), name="identity-detail-list"),
        url(r"^provider$", ProviderList.as_view(), name="provider-list"),
        url(r"^provider/(?P<provider_id>\d+)$", Provider.as_view(), name="provider-detail"),
        url(identity_specific + r"/request_image$", MachineRequestList.as_view(), name="machine-request-list"),
        url(
            identity_specific + r"/request_image/(?P<machine_request_id>\d+)$",
            MachineRequest.as_view(),
            name="machine-request",
        ),
        url(identity_specific + r"/profile$", Profile.as_view(), name="profile-detail"),
        url(r"version$", Version.as_view()),
        url(r"^maintenance$", MaintenanceRecordList.as_view(), name="maintenance-record-list"),
    )
)
urlpatterns = patterns("", url(r"^", include(private_apis, namespace="private_apis")))
urlpatterns += patterns("", url(r"^", include(public_apis, namespace="public_apis")))
Beispiel #4
0
    url(r'^api/v1/provider/(?P<provider_id>\d+)'
        + '/identity/(?P<identity_id>\d+)/meta/$', Meta.as_view(), name='meta-detail'),
    url(r'^api/v1/provider/(?P<provider_id>\d+)'
        + '/identity/(?P<identity_id>\d+)/meta/(?P<action>.*)/$',
        MetaAction.as_view(), name='meta-action'),


    url(r'^api/v1/provider/(?P<provider_id>\d+)'
        + '/identity/(?P<identity_id>\d+)/$',
        IdentityMembershipList.as_view(), name='identity-membership-list'),
    url(r'^api/v1/provider/(?P<provider_id>\d+)'
        + '/identity/(?P<identity_id>\d+)/$',
        IdentityMembership.as_view(), name='identity-membership-detail'),
    url(r'^api/v1/provider/(?P<provider_id>\d+)'
        + '/identity/$', IdentityList.as_view(), name='identity-list'),
    url(r'^api/v1/provider/(?P<provider_id>\d+)'
        + '/identity/(?P<identity_id>\d+)/$',
        Identity.as_view(), name='identity-detail'),

    url(r'^api/v1/identity/$', IdentityDetailList.as_view(),
        name='identity-detail-list'),

    url(r'^api/v1/provider/$', ProviderList.as_view(), name='provider-list'),
    url(r'^api/v1/provider/(?P<provider_id>\d+)/$',
        Provider.as_view(), name='provider-detail'),

))

urlpatterns += staticfiles_urlpatterns()
Beispiel #5
0
    url(identity_specific + r'/machine$',
        MachineList.as_view(), name='machine-list'),
    url(identity_specific + r'/machine/history$',
        MachineHistory.as_view(), name='machine-history'),
    url(identity_specific + r'/machine/search$',
        MachineSearch.as_view(), name='machine-search'),
    url(identity_specific + r'/machine/(?P<machine_id>[a-zA-Z0-9-]+)$',
        Machine.as_view(), name='machine-detail'),
    url(identity_specific + r'/machine/(?P<machine_id>[a-zA-Z0-9-]+)'
        + '/icon$', MachineIcon.as_view(), name='machine-icon'),

    url(provider_specific + r'/identity$', IdentityList.as_view(), name='identity-list'),
    url(identity_specific + r'$', Identity.as_view(), name='identity-detail'),

    url(r'^identity$', IdentityDetailList.as_view(),
        name='identity-detail-list'),
    url(r'^identity/(?P<identity_id>\d+)$', IdentityDetail.as_view(),
        name='identity-detail-list'),
    url(r'^provider$', ProviderList.as_view(), name='provider-list'),
    url(r'^provider/(?P<provider_id>\d+)$',
        Provider.as_view(), name='provider-detail'),


    url(identity_specific + r'/request_image$',
        MachineRequestList.as_view(), name='machine-request-list'),
    url(identity_specific + r'/request_image/(?P<machine_request_id>\d+)$',
        MachineRequest.as_view(), name='machine-request'),


    url(identity_specific + r'/profile$',