MGR Schedule

描述
MySQLSchedule is the Schema for the mysqlschedules API
类型
object

规格

属性类型描述
apiVersionstring

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kindstring

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject

MySQLScheduleSpec defines the desired state of MySQLSchedule

statusobject

MySQLScheduleStatus defines the observed state of MySQLSchedule

.spec

描述
MySQLScheduleSpec defines the desired state of MySQLSchedule
类型
object
属性类型描述
clusterobject

Cluster is the name of source cluster.

expiryDaysinteger

ExpiryDays is the days of the latest backup data hold.

fullobject

Full is the full backup schedule.

fullExecutorstring

Executor is the executor of full backup.

incrobject

Incr is the increment backup schedule.

mysqlShellDumpobject

DumpOption is the dump option for backup.

storageobject

Storage is the storage information of backup for.

storeMetaboolean

StoreMeta is the flag of store meta data.

.spec.cluster

描述
Cluster is the name of source cluster.
类型
object
属性类型描述
namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

.spec.full

描述
Full is the full backup schedule.
类型
object
属性类型描述
cronstring

Cron is the scheduled backup time expressed using cron.

enableboolean

Enable is enable or disable schedule backup.

.spec.incr

描述
Incr is the increment backup schedule.
类型
object
属性类型描述
cronstring

Cron is the scheduled backup time expressed using cron.

enableboolean

Enable is enable or disable schedule backup.

.spec.mysqlShellDump

描述
DumpOption is the dump option for backup.
类型
object
属性类型描述
excludeSchemasarray

ExcludeSchemas specifies the schemas to exclude from the backup.

excludeTablesarray

ExcludeTables specifies the tables to exclude from the backup, using the 'schema.table' format.

includeSchemasarray

IncludeSchemas specifies the schemas to include in the backup.

includeTablesarray

IncludeTables specifies the tables to include in the backup, using the 'schema.table' format.

maxRateinteger

MaxRate specifies the maximum rate at which data is transferred during the backup operation.

threadsinteger

Threads specifies the number of threads to use for the backup operation.

.spec.mysqlShellDump.excludeSchemas

描述
ExcludeSchemas specifies the schemas to exclude from the backup.
类型
array

.spec.mysqlShellDump.excludeSchemas[]

类型
string

.spec.mysqlShellDump.excludeTables

描述
ExcludeTables specifies the tables to exclude from the backup, using the 'schema.table' format.
类型
array

.spec.mysqlShellDump.excludeTables[]

类型
string

.spec.mysqlShellDump.includeSchemas

描述
IncludeSchemas specifies the schemas to include in the backup.
类型
array

.spec.mysqlShellDump.includeSchemas[]

类型
string

.spec.mysqlShellDump.includeTables

描述
IncludeTables specifies the tables to include in the backup, using the 'schema.table' format.
类型
array

.spec.mysqlShellDump.includeTables[]

类型
string

.spec.storage

描述
Storage is the storage information of backup for.
类型
object
属性类型描述
s3object

S3 means s3 compatible object storage

.spec.storage.s3

描述
S3 means s3 compatible object storage
类型
object
属性类型描述
bucketstring

Bucket in which to store the Backup.

endpointstring

Endpoint (hostname only or fully qualified URI) of S3 compatible storage service.

regionstring

Region in which the S3 compatible bucket is located.

secretobject

Secret is a reference to the Secret containing the credentials authenticating with the S3 compatible storage service.

.spec.storage.s3.secret

描述
Secret is a reference to the Secret containing the credentials authenticating with the S3 compatible storage service.
类型
object
属性类型描述
namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

.status

描述
MySQLScheduleStatus defines the observed state of MySQLSchedule
类型
object
属性类型描述
fullLatestTimestring

FullLatestTime is the full backup latest run time.

incrLatestTimestring

IncrLatestTime is the increment backup latest run time.

API 端点

可用的 API 端点如下:

  • /apis/mysql.middleware.alauda.io/v1/namespaces/{namespace}/mysqlschedules
    • DELETE: delete collection of MySQLSchedule
    • GET: list objects of kind MySQLSchedule
    • POST: create a new MySQLSchedule
  • /apis/mysql.middleware.alauda.io/v1/namespaces/{namespace}/mysqlschedules/{name}
    • DELETE: delete the specified MySQLSchedule
    • GET: read the specified MySQLSchedule
    • PATCH: partially update the specified MySQLSchedule
    • PUT: replace the specified MySQLSchedule
  • /apis/mysql.middleware.alauda.io/v1/namespaces/{namespace}/mysqlschedules/{name}/status
    • GET: read status of the specified MySQLSchedule
    • PATCH: partially update status of the specified MySQLSchedule
    • PUT: replace status of the specified MySQLSchedule

/apis/mysql.middleware.alauda.io/v1/namespaces/{namespace}/mysqlschedules

HTTP 方法
DELETE
描述
delete collection of MySQLSchedule
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
list objects of kind MySQLSchedule
HTTP 响应
HTTP 状态码响应体
200 - OKMySQLScheduleList schema
401 - UnauthorizedEmpty
HTTP 方法
POST
描述
create a new MySQLSchedule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyMySQLSchedule schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKMySQLSchedule schema
201 - CreatedMySQLSchedule schema
202 - AcceptedMySQLSchedule schema
401 - UnauthorizedEmpty

/apis/mysql.middleware.alauda.io/v1/namespaces/{namespace}/mysqlschedules/{name}

HTTP 方法
DELETE
描述
delete the specified MySQLSchedule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
read the specified MySQLSchedule
HTTP 响应
HTTP 状态码响应体
200 - OKMySQLSchedule schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update the specified MySQLSchedule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKMySQLSchedule schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace the specified MySQLSchedule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyMySQLSchedule schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKMySQLSchedule schema
201 - CreatedMySQLSchedule schema
401 - UnauthorizedEmpty

/apis/mysql.middleware.alauda.io/v1/namespaces/{namespace}/mysqlschedules/{name}/status

HTTP 方法
GET
描述
read status of the specified MySQLSchedule
HTTP 响应
HTTP 状态码响应体
200 - OKMySQLSchedule schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update status of the specified MySQLSchedule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKMySQLSchedule schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace status of the specified MySQLSchedule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyMySQLSchedule schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKMySQLSchedule schema
201 - CreatedMySQLSchedule schema
401 - UnauthorizedEmpty