Deprecated Lifecycle and Tiering UI (#3470)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
645
swagger.yml
645
swagger.yml
@@ -1153,121 +1153,6 @@ paths:
|
||||
tags:
|
||||
- Bucket
|
||||
|
||||
/buckets/{bucket_name}/lifecycle:
|
||||
get:
|
||||
summary: Bucket Lifecycle
|
||||
operationId: GetBucketLifecycle
|
||||
parameters:
|
||||
- name: bucket_name
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: A successful response.
|
||||
schema:
|
||||
$ref: "#/definitions/bucketLifecycleResponse"
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/ApiError"
|
||||
tags:
|
||||
- Bucket
|
||||
post:
|
||||
summary: Add Bucket Lifecycle
|
||||
operationId: AddBucketLifecycle
|
||||
parameters:
|
||||
- name: bucket_name
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
- name: body
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/definitions/addBucketLifecycle"
|
||||
responses:
|
||||
201:
|
||||
description: A successful response.
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/ApiError"
|
||||
tags:
|
||||
- Bucket
|
||||
|
||||
/buckets/multi-lifecycle:
|
||||
post:
|
||||
summary: Add Multi Bucket Lifecycle
|
||||
operationId: AddMultiBucketLifecycle
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/definitions/addMultiBucketLifecycle"
|
||||
responses:
|
||||
200:
|
||||
description: A successful response.
|
||||
schema:
|
||||
$ref: "#/definitions/multiLifecycleResult"
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/ApiError"
|
||||
tags:
|
||||
- Bucket
|
||||
|
||||
/buckets/{bucket_name}/lifecycle/{lifecycle_id}:
|
||||
put:
|
||||
summary: Update Lifecycle rule
|
||||
operationId: UpdateBucketLifecycle
|
||||
parameters:
|
||||
- name: bucket_name
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
- name: lifecycle_id
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
- name: body
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/definitions/updateBucketLifecycle"
|
||||
responses:
|
||||
200:
|
||||
description: A successful response.
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/ApiError"
|
||||
tags:
|
||||
- Bucket
|
||||
|
||||
delete:
|
||||
summary: Delete Lifecycle rule
|
||||
operationId: DeleteBucketLifecycleRule
|
||||
parameters:
|
||||
- name: bucket_name
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
- name: lifecycle_id
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
204:
|
||||
description: A successful response.
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/ApiError"
|
||||
tags:
|
||||
- Bucket
|
||||
|
||||
/buckets/{bucket_name}/rewind/{date}:
|
||||
get:
|
||||
summary: Get objects in a bucket for a rewind date
|
||||
@@ -2394,137 +2279,6 @@ paths:
|
||||
tags:
|
||||
- Configuration
|
||||
|
||||
/admin/tiers:
|
||||
get:
|
||||
summary: Returns a list of tiers for ilm
|
||||
operationId: TiersList
|
||||
responses:
|
||||
200:
|
||||
description: A successful response.
|
||||
schema:
|
||||
$ref: "#/definitions/tierListResponse"
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/ApiError"
|
||||
tags:
|
||||
- Tiering
|
||||
post:
|
||||
summary: Allows to configure a new tier
|
||||
operationId: AddTier
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/definitions/tier"
|
||||
responses:
|
||||
201:
|
||||
description: A successful response.
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/ApiError"
|
||||
tags:
|
||||
- Tiering
|
||||
|
||||
/admin/tiers/names:
|
||||
get:
|
||||
summary: Returns a list of tiers' names for ilm
|
||||
operationId: TiersListNames
|
||||
responses:
|
||||
200:
|
||||
description: A successful response.
|
||||
schema:
|
||||
$ref: "#/definitions/tiersNameListResponse"
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/ApiError"
|
||||
tags:
|
||||
- Tiering
|
||||
|
||||
/admin/tiers/{type}/{name}:
|
||||
get:
|
||||
summary: Get Tier
|
||||
operationId: GetTier
|
||||
parameters:
|
||||
- name: type
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
enum:
|
||||
- s3
|
||||
- gcs
|
||||
- azure
|
||||
- minio
|
||||
- name: name
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: A successful response.
|
||||
schema:
|
||||
$ref: "#/definitions/tier"
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/ApiError"
|
||||
tags:
|
||||
- Tiering
|
||||
|
||||
/admin/tiers/{type}/{name}/credentials:
|
||||
put:
|
||||
summary: Edit Tier Credentials
|
||||
operationId: EditTierCredentials
|
||||
parameters:
|
||||
- name: type
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
enum:
|
||||
- s3
|
||||
- gcs
|
||||
- azure
|
||||
- minio
|
||||
- name: name
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
- name: body
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/definitions/tierCredentialsRequest"
|
||||
responses:
|
||||
200:
|
||||
description: A successful response.
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/ApiError"
|
||||
tags:
|
||||
- Tiering
|
||||
/admin/tiers/{name}/remove:
|
||||
delete:
|
||||
summary: Remove Tier
|
||||
operationId: RemoveTier
|
||||
parameters:
|
||||
- name: name
|
||||
in: path
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
204:
|
||||
description: A successful response.
|
||||
default:
|
||||
description: Generic error response.
|
||||
schema:
|
||||
$ref: "#/definitions/ApiError"
|
||||
tags:
|
||||
- Tiering
|
||||
|
||||
/nodes:
|
||||
get:
|
||||
summary: Lists Nodes
|
||||
@@ -4601,254 +4355,6 @@ definitions:
|
||||
type: integer
|
||||
format: int32
|
||||
|
||||
bucketLifecycleResponse:
|
||||
type: object
|
||||
properties:
|
||||
lifecycle:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/objectBucketLifecycle"
|
||||
|
||||
expirationResponse:
|
||||
type: object
|
||||
properties:
|
||||
date:
|
||||
type: string
|
||||
days:
|
||||
type: integer
|
||||
format: int64
|
||||
delete_marker:
|
||||
type: boolean
|
||||
delete_all:
|
||||
type: boolean
|
||||
noncurrent_expiration_days:
|
||||
type: integer
|
||||
format: int64
|
||||
newer_noncurrent_expiration_versions:
|
||||
type: integer
|
||||
format: int64
|
||||
|
||||
transitionResponse:
|
||||
type: object
|
||||
properties:
|
||||
date:
|
||||
type: string
|
||||
storage_class:
|
||||
type: string
|
||||
days:
|
||||
type: integer
|
||||
format: int64
|
||||
noncurrent_transition_days:
|
||||
type: integer
|
||||
format: int64
|
||||
noncurrent_storage_class:
|
||||
type: string
|
||||
|
||||
lifecycleTag:
|
||||
type: object
|
||||
properties:
|
||||
key:
|
||||
type: string
|
||||
value:
|
||||
type: string
|
||||
|
||||
objectBucketLifecycle:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
prefix:
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
expiration:
|
||||
$ref: "#/definitions/expirationResponse"
|
||||
transition:
|
||||
$ref: "#/definitions/transitionResponse"
|
||||
tags:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/lifecycleTag"
|
||||
|
||||
addBucketLifecycle:
|
||||
type: object
|
||||
properties:
|
||||
type:
|
||||
description: ILM Rule type (Expiry or transition)
|
||||
type: string
|
||||
enum:
|
||||
- expiry
|
||||
- transition
|
||||
prefix:
|
||||
description: Non required field, it matches a prefix to perform ILM operations on it
|
||||
type: string
|
||||
tags:
|
||||
description: Non required field, tags to match ILM files
|
||||
type: string
|
||||
expiry_days:
|
||||
description: Required in case of expiry_date or transition fields are not set. it defines an expiry days for ILM
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
transition_days:
|
||||
description: Required in case of transition_date or expiry fields are not set. it defines a transition days for ILM
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
storage_class:
|
||||
description: Required only in case of transition is set. it refers to a tier
|
||||
type: string
|
||||
disable:
|
||||
description: Non required, toggle to disable or enable rule
|
||||
type: boolean
|
||||
expired_object_delete_marker:
|
||||
description: Non required, toggle to disable or enable rule
|
||||
type: boolean
|
||||
expired_object_delete_all:
|
||||
description: Non required, toggle to disable or enable rule
|
||||
type: boolean
|
||||
noncurrentversion_expiration_days:
|
||||
description: Non required, can be set in case of expiration is enabled
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
noncurrentversion_transition_days:
|
||||
description: Non required, can be set in case of transition is enabled
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
newer_noncurrentversion_expiration_versions:
|
||||
description: Non required, can be set in case of expiration is enabled
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
noncurrentversion_transition_storage_class:
|
||||
description: Non required, can be set in case of transition is enabled
|
||||
type: string
|
||||
|
||||
updateBucketLifecycle:
|
||||
type: object
|
||||
required:
|
||||
- type
|
||||
properties:
|
||||
type:
|
||||
description: ILM Rule type (Expiry or transition)
|
||||
type: string
|
||||
enum:
|
||||
- expiry
|
||||
- transition
|
||||
prefix:
|
||||
description: Non required field, it matches a prefix to perform ILM operations on it
|
||||
type: string
|
||||
tags:
|
||||
description: Non required field, tags to match ILM files
|
||||
type: string
|
||||
expiry_days:
|
||||
description: Required in case of expiry_date or transition fields are not set. it defines an expiry days for ILM
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
transition_days:
|
||||
description: Required in case of transition_date or expiry fields are not set. it defines a transition days for ILM
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
storage_class:
|
||||
description: Required only in case of transition is set. it refers to a tier
|
||||
type: string
|
||||
disable:
|
||||
description: Non required, toggle to disable or enable rule
|
||||
type: boolean
|
||||
expired_object_delete_marker:
|
||||
description: Non required, toggle to disable or enable rule
|
||||
type: boolean
|
||||
expired_object_delete_all:
|
||||
description: Non required, toggle to disable or enable rule
|
||||
type: boolean
|
||||
noncurrentversion_expiration_days:
|
||||
description: Non required, can be set in case of expiration is enabled
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
noncurrentversion_transition_days:
|
||||
description: Non required, can be set in case of transition is enabled
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
noncurrentversion_transition_storage_class:
|
||||
description: Non required, can be set in case of transition is enabled
|
||||
type: string
|
||||
|
||||
addMultiBucketLifecycle:
|
||||
type: object
|
||||
required:
|
||||
- buckets
|
||||
- type
|
||||
properties:
|
||||
buckets:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
type:
|
||||
description: ILM Rule type (Expiry or transition)
|
||||
type: string
|
||||
enum:
|
||||
- expiry
|
||||
- transition
|
||||
prefix:
|
||||
description: Non required field, it matches a prefix to perform ILM operations on it
|
||||
type: string
|
||||
tags:
|
||||
description: Non required field, tags to match ILM files
|
||||
type: string
|
||||
expiry_days:
|
||||
description: Required in case of expiry_date or transition fields are not set. it defines an expiry days for ILM
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
transition_days:
|
||||
description: Required in case of transition_date or expiry fields are not set. it defines a transition days for ILM
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
storage_class:
|
||||
description: Required only in case of transition is set. it refers to a tier
|
||||
type: string
|
||||
expired_object_delete_marker:
|
||||
description: Non required, toggle to disable or enable rule
|
||||
type: boolean
|
||||
expired_object_delete_all:
|
||||
description: Non required, toggle to disable or enable rule
|
||||
type: boolean
|
||||
noncurrentversion_expiration_days:
|
||||
description: Non required, can be set in case of expiration is enabled
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
noncurrentversion_transition_days:
|
||||
description: Non required, can be set in case of transition is enabled
|
||||
type: integer
|
||||
format: int32
|
||||
default: 0
|
||||
noncurrentversion_transition_storage_class:
|
||||
description: Non required, can be set in case of transition is enabled
|
||||
type: string
|
||||
|
||||
multicycleResultItem:
|
||||
type: object
|
||||
properties:
|
||||
bucketName:
|
||||
type: string
|
||||
error:
|
||||
type: string
|
||||
|
||||
multiLifecycleResult:
|
||||
properties:
|
||||
results:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/multicycleResultItem"
|
||||
|
||||
prefixAccessPair:
|
||||
type: object
|
||||
properties:
|
||||
@@ -4910,104 +4416,6 @@ definitions:
|
||||
bucket_name:
|
||||
type: string
|
||||
|
||||
tier_s3:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
endpoint:
|
||||
type: string
|
||||
accesskey:
|
||||
type: string
|
||||
secretkey:
|
||||
type: string
|
||||
bucket:
|
||||
type: string
|
||||
prefix:
|
||||
type: string
|
||||
region:
|
||||
type: string
|
||||
storageclass:
|
||||
type: string
|
||||
usage:
|
||||
type: string
|
||||
objects:
|
||||
type: string
|
||||
versions:
|
||||
type: string
|
||||
|
||||
tier_minio:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
endpoint:
|
||||
type: string
|
||||
accesskey:
|
||||
type: string
|
||||
secretkey:
|
||||
type: string
|
||||
bucket:
|
||||
type: string
|
||||
prefix:
|
||||
type: string
|
||||
region:
|
||||
type: string
|
||||
storageclass:
|
||||
type: string
|
||||
usage:
|
||||
type: string
|
||||
objects:
|
||||
type: string
|
||||
versions:
|
||||
type: string
|
||||
|
||||
tier_azure:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
endpoint:
|
||||
type: string
|
||||
accountname:
|
||||
type: string
|
||||
accountkey:
|
||||
type: string
|
||||
bucket:
|
||||
type: string
|
||||
prefix:
|
||||
type: string
|
||||
region:
|
||||
type: string
|
||||
usage:
|
||||
type: string
|
||||
objects:
|
||||
type: string
|
||||
versions:
|
||||
type: string
|
||||
|
||||
tier_gcs:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
endpoint:
|
||||
type: string
|
||||
creds:
|
||||
type: string
|
||||
bucket:
|
||||
type: string
|
||||
prefix:
|
||||
type: string
|
||||
region:
|
||||
type: string
|
||||
usage:
|
||||
type: string
|
||||
objects:
|
||||
type: string
|
||||
versions:
|
||||
type: string
|
||||
|
||||
deleteFile:
|
||||
type: object
|
||||
properties:
|
||||
@@ -5028,59 +4436,6 @@ definitions:
|
||||
recursive:
|
||||
type: boolean
|
||||
|
||||
tier:
|
||||
type: object
|
||||
properties:
|
||||
status:
|
||||
type: boolean
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
- s3
|
||||
- gcs
|
||||
- azure
|
||||
- minio
|
||||
- unsupported
|
||||
s3:
|
||||
type: object
|
||||
$ref: "#/definitions/tier_s3"
|
||||
gcs:
|
||||
type: object
|
||||
$ref: "#/definitions/tier_gcs"
|
||||
azure:
|
||||
type: object
|
||||
$ref: "#/definitions/tier_azure"
|
||||
minio:
|
||||
type: object
|
||||
$ref: "#/definitions/tier_minio"
|
||||
|
||||
tierListResponse:
|
||||
type: object
|
||||
properties:
|
||||
items:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/tier"
|
||||
|
||||
tiersNameListResponse:
|
||||
type: object
|
||||
properties:
|
||||
items:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
|
||||
tierCredentialsRequest:
|
||||
type: object
|
||||
properties:
|
||||
access_key:
|
||||
type: string
|
||||
secret_key:
|
||||
type: string
|
||||
creds:
|
||||
type: string
|
||||
description: a base64 encoded value
|
||||
|
||||
rewindItem:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user