@Path(value="/object-storage")
@Consumes(value="application/json")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
public interface ObjectStorageResource
| Modifier and Type | Method and Description |
|---|---|
UserSessionResponse |
createObjectStorageUserSession(String tenantUuid)
Create an object storage user session for.
|
TenantKeyPairResponse |
createTenantKey(String tenantUuid,
TenantKeyCreateRequest tenantKeyCreateRequest)
Create a new access/secret key pair for a tenant.
|
void |
deleteTenantKey(String tenantUuid,
TenantKeyDeleteRequest tenantKeyDeleteRequest)
Delete an access/secret key pair for a tenant
|
TenantsResponse |
getAllObjectStorageTenantsForCompany(String companyId,
String regionId,
ObjectPagingParams filters)
Retrieves all Object Storage Tenants for a particular company.
|
BucketInfoListResponse |
getBucketInfoList(String tenantUuid)
Get the list of bucket info for the given tenant.
|
TenantResponse |
getTenant(String tenantUuid)
Get a tenant given it's id.
|
TenantKeyPairSetResponse |
getTenantKeysForUser(String tenantUuid,
String username)
Lists access/secret key pairs for an object storage tenant and user.
|
UserSessionResponse |
renewUserSession(String tenantUuid,
String sessionToken)
Renew an object storage user session.
|
void |
syncTenant(String tenantUuid)
Sync the tenant.
|
@POST
@Path(value="/{tenantUuid}/actions/create-user-session")
UserSessionResponse createObjectStorageUserSession(@PathParam(value="tenantUuid")
String tenantUuid)
tenantUuid - StringUserSessionResponse@POST
@Path(value="/{tenantUuid}/actions/renew-user-session/{sessionToken}")
UserSessionResponse renewUserSession(@PathParam(value="tenantUuid")
String tenantUuid,
@PathParam(value="sessionToken")
String sessionToken)
tenantUuid - tenant uuidsessionToken - session token@GET
@Path(value="/{companyId}/{regionId}/tenants")
TenantsResponse getAllObjectStorageTenantsForCompany(@PathParam(value="companyId")
String companyId,
@PathParam(value="regionId")
String regionId,
@BeanParam
ObjectPagingParams filters)
companyId - Stringfilters - ObjectPagingParams object paging paramsTenantsResponse@GET
@Path(value="/{tenantUuid}/keys/{username}")
TenantKeyPairSetResponse getTenantKeysForUser(@PathParam(value="tenantUuid")
String tenantUuid,
@PathParam(value="username")
String username)
tenantUuid - tenant uuidusername - username@POST
@Path(value="/{tenantUuid}/key")
TenantKeyPairResponse createTenantKey(@PathParam(value="tenantUuid")
String tenantUuid,
TenantKeyCreateRequest tenantKeyCreateRequest)
tenantUuid - tenant uuidtenantKeyCreateRequest - tenant key create request@DELETE
@Path(value="/{tenantUuid}/key")
void deleteTenantKey(@PathParam(value="tenantUuid")
String tenantUuid,
TenantKeyDeleteRequest tenantKeyDeleteRequest)
tenantUuid - tenant uuidtenantKeyDeleteRequest - tenant key delete request@GET
@Path(value="/{tenantUuid}/bucket-info")
BucketInfoListResponse getBucketInfoList(@PathParam(value="tenantUuid")
String tenantUuid)
tenantUuid - tenant uuid@GET
@Path(value="/{tenantUuid}")
TenantResponse getTenant(@PathParam(value="tenantUuid")
String tenantUuid)
tenantUuid - tenant uuid@POST
@Path(value="/{tenantUuid}/sync")
void syncTenant(@PathParam(value="tenantUuid")
String tenantUuid)
tenantUuid - tenant uuidCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.