basePath: / definitions: bitset.BitSet: type: object d7y_io_dragonfly_v2_manager_models.Application: properties: bio: type: string created_at: type: string id: type: integer is_del: type: integer name: type: string priority: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.JSONMap' updated_at: type: string url: type: string user: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.User' user_id: type: integer type: object d7y_io_dragonfly_v2_manager_models.Audit: properties: actor_name: description: ActorName represents the actor name, it can be the username or token name. type: string actor_type: description: |- ActorType represents the actor type, which can be one of the following: - UNKNOWN: Represents an unknown actor such as not authenticated. - USER: Represents a user. - PAT: Represents a personal access token. type: string created_at: type: string detail: allOf: - $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.JSONMap' description: Detail represents the detail, leave for extension for future use. event_type: description: |- EventType represents the event type, indicates the type of event, API for http request, can expand to other types such as SYSTEM for internal system events in future. type: string id: type: integer is_del: type: integer operated_at: description: OperatedAt represents the operation time. type: string operation: description: Operation represents the operation, it will be the HTTP method for API events. type: string path: description: Path represents the request path, it will be the URL path for API events. type: string state: description: State represents the state, it indicates the state of the operation, e.g SUCCESS for API status code >= 200 & < 300. type: string status_code: description: StatusCode represents the status code, can be ignored for non-API events. type: integer updated_at: type: string type: object d7y_io_dragonfly_v2_manager_models.Config: properties: bio: type: string created_at: type: string id: type: integer is_del: type: integer name: type: string updated_at: type: string user: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.User' user_id: type: integer value: type: string type: object d7y_io_dragonfly_v2_manager_models.JSONMap: additionalProperties: {} type: object d7y_io_dragonfly_v2_manager_models.Job: properties: args: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.JSONMap' bio: type: string created_at: type: string id: type: integer is_del: type: integer result: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.JSONMap' scheduler_clusters: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SchedulerCluster' type: array seed_peer_clusters: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeerCluster' type: array state: type: string task_id: type: string type: type: string updated_at: type: string user: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.User' user_id: type: integer type: object d7y_io_dragonfly_v2_manager_models.Oauth: properties: bio: type: string client_id: type: string client_secret: type: string created_at: type: string id: type: integer is_del: type: integer name: type: string redirect_url: type: string updated_at: type: string type: object d7y_io_dragonfly_v2_manager_models.Peer: properties: build_platform: type: string created_at: type: string download_port: type: integer git_commit: type: string git_version: type: string host_name: type: string id: type: integer idc: type: string ip: type: string is_del: type: integer kernel_version: type: string location: type: string object_storage_port: type: integer os: type: string platform: type: string platform_family: type: string platform_version: type: string port: type: integer proxy_port: type: integer scheduler_cluster: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SchedulerCluster' scheduler_cluster_id: type: integer state: type: string type: type: string updated_at: type: string type: object d7y_io_dragonfly_v2_manager_models.PersonalAccessToken: properties: bio: type: string created_at: type: string expired_at: type: string id: type: integer is_del: type: integer name: type: string scopes: items: type: string type: array state: type: string token: type: string updated_at: type: string user: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.User' user_id: type: integer type: object d7y_io_dragonfly_v2_manager_models.Scheduler: properties: config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.JSONMap' created_at: type: string features: items: type: string type: array host_name: type: string id: type: integer idc: type: string ip: type: string is_del: type: integer last_keep_alive_at: type: string location: type: string port: type: integer scheduler_cluster: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SchedulerCluster' scheduler_cluster_id: type: integer state: type: string updated_at: type: string type: object d7y_io_dragonfly_v2_manager_models.SchedulerCluster: properties: bio: type: string client_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.JSONMap' config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.JSONMap' created_at: type: string id: type: integer is_default: type: boolean is_del: type: integer jobs: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Job' type: array name: type: string peers: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Peer' type: array schedulers: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Scheduler' type: array scopes: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.JSONMap' seed_peer_clusters: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeerCluster' type: array updated_at: type: string type: object d7y_io_dragonfly_v2_manager_models.SeedPeer: properties: created_at: type: string download_port: type: integer host_name: type: string id: type: integer idc: type: string ip: type: string is_del: type: integer location: type: string object_storage_port: type: integer port: type: integer seed_peer_cluster: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeerCluster' seed_peer_cluster_id: type: integer state: type: string type: type: string updated_at: type: string type: object d7y_io_dragonfly_v2_manager_models.SeedPeerCluster: properties: bio: type: string config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.JSONMap' created_at: type: string id: type: integer is_del: type: integer jobs: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Job' type: array name: type: string scheduler_clusters: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SchedulerCluster' type: array seed_peer: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeer' type: array updated_at: type: string type: object d7y_io_dragonfly_v2_manager_models.User: properties: avatar: type: string bio: type: string configs: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Config' type: array created_at: type: string email: type: string id: type: integer is_del: type: integer location: type: string name: type: string phone: type: string state: type: string updated_at: type: string type: object d7y_io_dragonfly_v2_manager_permission_rbac.Permission: properties: action: enum: - read - '*' type: string object: type: string required: - action - object type: object d7y_io_dragonfly_v2_manager_types.AddPermissionForRoleRequest: properties: action: enum: - read - '*' type: string object: type: string required: - action - object type: object d7y_io_dragonfly_v2_manager_types.CreateApplicationRequest: properties: bio: type: string name: type: string priority: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.PriorityConfig' url: type: string user_id: type: integer required: - name - priority - url - user_id type: object d7y_io_dragonfly_v2_manager_types.CreateClusterRequest: properties: bio: type: string is_default: type: boolean name: type: string peer_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterClientConfig' scheduler_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterConfig' scopes: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterScopes' seed_peer_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SeedPeerClusterConfig' required: - name - peer_cluster_config - scheduler_cluster_config - seed_peer_cluster_config type: object d7y_io_dragonfly_v2_manager_types.CreateClusterResponse: properties: bio: type: string created_at: type: string id: type: integer is_default: type: boolean name: type: string peer_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterClientConfig' scheduler_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterConfig' scheduler_cluster_id: type: integer scopes: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterScopes' seed_peer_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SeedPeerClusterConfig' seed_peer_cluster_id: type: integer updated_at: type: string type: object d7y_io_dragonfly_v2_manager_types.CreateConfigRequest: properties: bio: type: string name: type: string user_id: type: integer value: type: string required: - name - user_id - value type: object d7y_io_dragonfly_v2_manager_types.CreateJobRequest: properties: args: additionalProperties: {} description: Args is the arguments of the job. type: object bio: description: BIO is the description of the job. type: string scheduler_cluster_ids: description: SchedulerClusterIDs is the scheduler cluster ids of the job. items: type: integer type: array seed_peer_cluster_ids: description: SeedPeerClusterIDs is the seed peer cluster ids of the job. items: type: integer type: array type: description: Type is the type of the job. type: string user_id: description: UserID is the user id of the job. type: integer required: - type type: object d7y_io_dragonfly_v2_manager_types.CreateOauthRequest: properties: bio: type: string client_id: type: string client_secret: type: string name: enum: - github - google type: string redirect_url: type: string required: - client_id - client_secret - name type: object d7y_io_dragonfly_v2_manager_types.CreatePeerRequest: properties: build_platform: type: string download_port: type: integer git_commit: type: string git_version: type: string host_name: type: string idc: type: string ip: type: string kernel_version: type: string location: type: string object_storage_port: type: integer os: type: string platform: type: string platform_family: type: string platform_version: type: string port: type: integer proxy_port: type: integer scheduler_cluster_id: type: integer state: enum: - active - inactive type: string type: enum: - super - normal type: string required: - download_port - host_name - ip - port - proxy_port - scheduler_cluster_id - type type: object d7y_io_dragonfly_v2_manager_types.CreatePersonalAccessTokenRequest: properties: bio: type: string expired_at: type: string name: type: string scopes: items: type: string type: array user_id: type: integer required: - expired_at - name - user_id type: object d7y_io_dragonfly_v2_manager_types.CreateRoleRequest: properties: permissions: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_permission_rbac.Permission' type: array role: type: string required: - permissions - role type: object d7y_io_dragonfly_v2_manager_types.CreateSchedulerClusterRequest: properties: bio: type: string client_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterClientConfig' config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterConfig' is_default: type: boolean name: type: string scopes: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterScopes' seed_peer_cluster_id: type: integer required: - client_config - config - name type: object d7y_io_dragonfly_v2_manager_types.CreateSchedulerRequest: properties: config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerConfig' features: items: type: string type: array host_name: type: string idc: type: string ip: type: string location: type: string port: type: integer scheduler_cluster_id: type: integer required: - host_name - ip - port - scheduler_cluster_id type: object d7y_io_dragonfly_v2_manager_types.CreateSeedPeerClusterRequest: properties: bio: type: string config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SeedPeerClusterConfig' name: type: string required: - config - name type: object d7y_io_dragonfly_v2_manager_types.CreateSeedPeerRequest: properties: download_port: type: integer host_name: type: string idc: type: string ip: type: string location: type: string object_storage_port: type: integer port: type: integer seed_peer_cluster_id: type: integer type: enum: - super type: string required: - download_port - host_name - ip - port - seed_peer_cluster_id - type type: object d7y_io_dragonfly_v2_manager_types.CreateV1PreheatRequest: properties: filteredQueryParams: type: string headers: additionalProperties: type: string type: object type: enum: - image - file type: string url: type: string required: - type - url type: object d7y_io_dragonfly_v2_manager_types.CreateV1PreheatResponse: properties: id: type: string type: object d7y_io_dragonfly_v2_manager_types.DeletePermissionForRoleRequest: properties: action: enum: - read - '*' type: string object: type: string required: - action - object type: object d7y_io_dragonfly_v2_manager_types.GetClusterResponse: properties: bio: type: string created_at: type: string id: type: integer is_default: type: boolean name: type: string peer_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterClientConfig' scheduler_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterConfig' scheduler_cluster_id: type: integer scopes: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterScopes' seed_peer_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SeedPeerClusterConfig' seed_peer_cluster_id: type: integer updated_at: type: string type: object d7y_io_dragonfly_v2_manager_types.GetV1PreheatResponse: properties: finishTime: type: string id: type: string startTime: type: string status: type: string type: object d7y_io_dragonfly_v2_manager_types.PersistentCacheHost: properties: announce_interval: allOf: - $ref: '#/definitions/time.Duration' description: AnnounceInterval is the interval between host announces to scheduler. build: description: Build contains build information. properties: git_commit: description: GitCommit is git commit. type: string git_version: description: GitVersion is git version. type: string go_version: description: GoVersion is go version. type: string platform: description: Platform is build platform. type: string type: object cpu: description: CPU contains cpu information. properties: logical_count: description: LogicalCount is cpu logical count. type: integer percent: description: Percent is cpu usage percent. type: number physical_count: description: PhysicalCount is cpu physical count. type: integer process_percent: description: ProcessPercent is process cpu usage percent. type: number times: description: Times contains cpu times information. properties: guest: description: Guest is guest cpu time. type: number guest_nice: description: GuestNice is guest nice cpu time. type: number idle: description: Idle is idle cpu time. type: number iowait: description: Iowait is iowait cpu time. type: number irq: description: Irq is irq cpu time. type: number nice: description: Nice is nice cpu time. type: number softirq: description: Softirq is softirq cpu time. type: number steal: description: Steal is steal cpu time. type: number system: description: System is system cpu time. type: number user: description: User is user cpu time. type: number type: object type: object created_at: description: CreatedAt is host create time. type: string disable_shared: description: DisableShared is whether the host is disabled for shared with other peers. type: boolean disk: description: Disk contains disk information. properties: free: description: Free is free disk space. type: integer inodes_free: description: InodesFree is free inodes. type: integer inodes_total: description: InodesTotal is total inodes. type: integer inodes_used: description: InodesUsed is used inodes. type: integer inodes_used_percent: description: InodesUsedPercent is inodes usage percent. type: number read_bandwidth: description: ReadBandwidth is read bandwidth. type: integer total: description: Total is total disk space. type: integer used: description: Used is used disk space. type: integer used_percent: description: UsedPercent is disk usage percent. type: number write_bandwidth: description: WriteBandwidth is write bandwidth. type: integer type: object download_port: description: DownloadPort is piece downloading port. type: integer hostname: description: Hostname is host name. type: string id: description: ID is host id. type: string ip: description: IP is host ip. type: string kernel_version: description: KernelVersion is host kernel version. type: string memory: description: Memory contains memory information. properties: available: description: Available is available memory. type: integer free: description: Free is free memory. type: integer process_used_percent: description: ProcessUsedPercent is process memory usage percent. type: number total: description: Total is total memory. type: integer used: description: Used is used memory. type: integer used_percent: description: UsedPercent is memory usage percent. type: number type: object network: description: Network contains network information. properties: idc: description: IDC is network idc. type: string location: description: Location is network location. type: string max_rx_bandwidth: description: MaxRxBandwidth is download rate limit. type: integer max_tx_bandwidth: description: MaxTxBandwidth is upload rate limit. type: integer rx_bandwidth: description: RxBandwidth is download rate. type: integer tcp_connection_count: description: TCPConnectionCount is tcp connection count. type: integer tx_bandwidth: description: TxBandwidth is upload rate. type: integer upload_tcp_connection_count: description: UploadTCPConnectionCount is upload tcp connection count. type: integer type: object os: description: OS is host OS. type: string platform: description: Platform is host platform. type: string platform_family: description: PlatformFamily is host platform family. type: string platform_version: description: PlatformVersion is host platform version. type: string port: description: Port is grpc service port. type: integer scheduler_cluster_id: description: SchedulerClusterID is the scheduler cluster id matched by scopes. type: integer type: description: Type is host type. type: string updated_at: description: UpdatedAt is host update time. type: string type: object d7y_io_dragonfly_v2_manager_types.PersistentCachePeer: properties: block_parents: description: BlockParents is bad parents ids. items: type: string type: array cost: allOf: - $ref: '#/definitions/time.Duration' description: Cost is the cost of downloading. created_at: description: CreatedAt is persistent cache peer create time. type: string finished_pieces: allOf: - $ref: '#/definitions/bitset.BitSet' description: FinishedPieces is finished pieces bitset. host: allOf: - $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.PersistentCacheHost' description: Host is the peer host. id: description: ID is persistent cache peer id. type: string persistent: description: Persistent is whether the peer is persistent. type: boolean state: description: State is persistent cache peer state. type: string updated_at: description: UpdatedAt is persistent cache peer update time. type: string type: object d7y_io_dragonfly_v2_manager_types.PersistentCacheTask: properties: application: description: Application of persistent cache task. type: string content_length: description: ContentLength is persistent cache task total content length. type: integer created_at: description: CreatedAt is persistent cache task create time. type: string id: description: ID is task id. type: string peers: description: PersistentCachePeers is the list of persistent cache peers. items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.PersistentCachePeer' type: array persistent_replica_count: description: PersistentReplicaCount is replica count of the persistent cache task. type: integer piece_length: description: PieceLength is persistent cache task piece length. type: integer state: description: State is persistent cache task state. type: string tag: description: Tag is used to distinguish different persistent cache tasks. type: string total_piece_count: description: TotalPieceCount is total piece count. type: integer ttl: allOf: - $ref: '#/definitions/time.Duration' description: TTL is persistent cache task time to live. updated_at: description: UpdatedAt is persistent cache task update time. type: string type: object d7y_io_dragonfly_v2_manager_types.PriorityConfig: properties: urls: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.URLPriorityConfig' type: array value: maximum: 20 minimum: 0 type: integer required: - value type: object d7y_io_dragonfly_v2_manager_types.ResetPasswordRequest: properties: new_password: maxLength: 20 minLength: 8 type: string old_password: maxLength: 20 minLength: 8 type: string required: - new_password - old_password type: object d7y_io_dragonfly_v2_manager_types.SchedulerClusterClientConfig: properties: load_limit: maximum: 2000 minimum: 1 type: integer type: object d7y_io_dragonfly_v2_manager_types.SchedulerClusterConfig: properties: candidate_parent_limit: maximum: 20 minimum: 1 type: integer filter_parent_limit: maximum: 1000 minimum: 10 type: integer job_rate_limit: maximum: 1000000 minimum: 1 type: integer type: object d7y_io_dragonfly_v2_manager_types.SchedulerClusterScopes: properties: cidrs: items: type: string type: array hostnames: items: type: string type: array idc: type: string location: type: string type: object d7y_io_dragonfly_v2_manager_types.SchedulerConfig: properties: manager_keep_alive_interval: $ref: '#/definitions/time.Duration' required: - manager_keep_alive_interval type: object d7y_io_dragonfly_v2_manager_types.SeedPeerClusterConfig: properties: load_limit: maximum: 50000 minimum: 1 type: integer type: object d7y_io_dragonfly_v2_manager_types.SignUpRequest: properties: avatar: type: string bio: type: string email: type: string location: type: string name: maxLength: 10 minLength: 3 type: string password: maxLength: 20 minLength: 8 type: string phone: type: string required: - email - name - password type: object d7y_io_dragonfly_v2_manager_types.URLPriorityConfig: properties: regex: type: string value: maximum: 20 minimum: 0 type: integer required: - regex - value type: object d7y_io_dragonfly_v2_manager_types.UpdateApplicationRequest: properties: bio: type: string name: type: string priority: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.PriorityConfig' url: type: string user_id: type: integer required: - user_id type: object d7y_io_dragonfly_v2_manager_types.UpdateClusterRequest: properties: bio: type: string is_default: type: boolean name: type: string peer_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterClientConfig' scheduler_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterConfig' scopes: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterScopes' seed_peer_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SeedPeerClusterConfig' type: object d7y_io_dragonfly_v2_manager_types.UpdateClusterResponse: properties: bio: type: string created_at: type: string id: type: integer is_default: type: boolean name: type: string peer_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterClientConfig' scheduler_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterConfig' scheduler_cluster_id: type: integer scopes: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterScopes' seed_peer_cluster_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SeedPeerClusterConfig' seed_peer_cluster_id: type: integer updated_at: type: string type: object d7y_io_dragonfly_v2_manager_types.UpdateConfigRequest: properties: bio: type: string name: type: string user_id: type: integer value: type: string type: object d7y_io_dragonfly_v2_manager_types.UpdateJobRequest: properties: bio: description: BIO is the description of the job. type: string user_id: description: UserID is the user id of the job. type: integer type: object d7y_io_dragonfly_v2_manager_types.UpdateOauthRequest: properties: bio: type: string client_id: type: string client_secret: type: string name: enum: - github - google type: string redirect_url: type: string type: object d7y_io_dragonfly_v2_manager_types.UpdatePersonalAccessTokenRequest: properties: bio: type: string expired_at: type: string scopes: items: type: string type: array state: enum: - active - inactive type: string user_id: type: integer type: object d7y_io_dragonfly_v2_manager_types.UpdateSchedulerClusterRequest: properties: bio: type: string client_config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterClientConfig' config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterConfig' is_default: type: boolean name: type: string scopes: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerClusterScopes' seed_peer_cluster_id: type: integer type: object d7y_io_dragonfly_v2_manager_types.UpdateSchedulerRequest: properties: config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SchedulerConfig' features: items: type: string type: array idc: type: string ip: type: string location: type: string port: type: integer scheduler_cluster_id: type: integer scheduler_id: type: integer type: object d7y_io_dragonfly_v2_manager_types.UpdateSeedPeerClusterRequest: properties: bio: type: string config: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SeedPeerClusterConfig' name: type: string type: object d7y_io_dragonfly_v2_manager_types.UpdateSeedPeerRequest: properties: download_port: type: integer idc: type: string ip: type: string location: type: string object_storage_port: type: integer port: type: integer seed_peer_cluster_id: type: integer type: enum: - super type: string type: object d7y_io_dragonfly_v2_manager_types.UpdateUserRequest: properties: avatar: type: string bio: type: string email: type: string location: type: string phone: type: string type: object time.Duration: enum: - -9223372036854775808 - 9223372036854775807 - 1 - 1000 - 1000000 - 1000000000 - 60000000000 - 3600000000000 type: integer x-enum-varnames: - minDuration - maxDuration - Nanosecond - Microsecond - Millisecond - Second - Minute - Hour host: localhost:8080 info: contact: url: https://d7y.io description: Dragonfly Manager Server license: name: Apache 2.0 title: Dragonfly Manager version: 1.0.0 paths: /api/v1/applications: get: consumes: - application/json description: Get Applications parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Application' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Applications tags: - Application post: consumes: - application/json description: Create by json config parameters: - description: Application in: body name: Application required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateApplicationRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Application' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create Application tags: - Application /api/v1/applications/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy Application tags: - Application get: consumes: - application/json description: Get Application by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Application' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Application tags: - Application patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: Application in: body name: Application required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateApplicationRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Application' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update Application tags: - Application /api/v1/audits: get: consumes: - application/json description: Get Audits parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Audit' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Audits tags: - Audit /api/v1/clusters: get: consumes: - application/json description: Get Clusters parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.GetClusterResponse' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Clusters tags: - Cluster post: consumes: - application/json description: Create by json config parameters: - description: Cluster in: body name: Cluster required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateClusterRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateClusterResponse' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create Cluster tags: - Cluster /api/v1/clusters/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy Cluster tags: - Cluster get: consumes: - application/json description: Get Cluster by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.GetClusterResponse' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Cluster tags: - Cluster patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: Cluster in: body name: Cluster required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateClusterRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateClusterResponse' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update Cluster tags: - Cluster /api/v1/configs: get: consumes: - application/json description: Get Configs parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Config' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Configs tags: - Config post: consumes: - application/json description: Create by json config parameters: - description: Config in: body name: Config required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateConfigRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Config' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create Config tags: - Config /api/v1/configs/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy Config tags: - Config get: consumes: - application/json description: Get Config by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Config' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Config tags: - Config patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: Config in: body name: Config required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateConfigRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Config' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update Config tags: - Config /api/v1/jobs: get: consumes: - application/json description: Get Jobs parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Job' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Jobs tags: - Job post: consumes: - application/json description: Create by json config parameters: - description: Job in: body name: Job required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateJobRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Job' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create Job tags: - Job /api/v1/jobs/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy Job tags: - Job get: consumes: - application/json description: Get Job by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Job' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Job tags: - Job patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: Job in: body name: Job required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateJobRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Job' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update Job tags: - Job /api/v1/oauth: get: consumes: - application/json description: Get Oauths parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Oauth' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Oauths tags: - Oauth post: consumes: - application/json description: Create by json config parameters: - description: Oauth in: body name: Oauth required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateOauthRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Oauth' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create Oauth tags: - Oauth /api/v1/oauth/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy Oauth tags: - Oauth get: consumes: - application/json description: Get Oauth by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Oauth' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Oauth tags: - Oauth patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: Oauth in: body name: Oauth required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateOauthRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Oauth' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update Oauth tags: - Oauth /api/v1/peers: get: consumes: - application/json description: Get Peers parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Peer' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Peers tags: - Peer post: consumes: - application/json description: Create by json config parameters: - description: Peer in: body name: Peer required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreatePeerRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Peer' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create Peer tags: - Peer /api/v1/peers/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy Peer tags: - Peer get: consumes: - application/json description: Get Peer by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Peer' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Peer tags: - Peer /api/v1/permissions: get: description: Get Permissions produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_permission_rbac.Permission' type: array "400": description: Bad Request "500": description: Internal Server Error summary: Get Permissions tags: - Permission /api/v1/persistent-cache-tasks: get: consumes: - application/json description: Get PersistentCacheTasks parameters: - description: scheduler cluster id in: query name: scheduler_cluster_id required: true type: integer - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.PersistentCacheTask' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get PersistentCacheTasks tags: - PersistentCacheTask /api/v1/persistent-cache-tasks/{id}: delete: consumes: - application/json description: Destroy PersistentCacheTask by id parameters: - description: scheduler cluster id in: query name: scheduler_cluster_id required: true type: integer - description: task id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy PersistentCacheTask tags: - PersistentCacheTask get: consumes: - application/json description: Get PersistentCacheTask by id parameters: - description: scheduler cluster id in: query name: scheduler_cluster_id required: true type: integer - description: task id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.PersistentCacheTask' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get PersistentCacheTask tags: - PersistentCacheTask /api/v1/personal-access-tokens: get: consumes: - application/json description: Get PersonalAccessTokens parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.PersonalAccessToken' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get PersonalAccessTokens tags: - PersonalAccessToken post: consumes: - application/json description: Create by json config parameters: - description: PersonalAccessToken in: body name: PersonalAccessToken required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreatePersonalAccessTokenRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.PersonalAccessToken' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create PersonalAccessToken tags: - PersonalAccessToken /api/v1/personal-access-tokens/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy PersonalAccessToken tags: - PersonalAccessToken get: consumes: - application/json description: Get PersonalAccessToken by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.PersonalAccessToken' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get PersonalAccessToken tags: - PersonalAccessToken patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: PersonalAccessToken in: body name: PersonalAccessToken required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdatePersonalAccessTokenRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.PersonalAccessToken' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update PersonalAccessToken tags: - PersonalAccessToken /api/v1/roles: get: consumes: - application/json description: Get roles produces: - application/json responses: "200": description: OK "400": description: Bad Request "500": description: Internal Server Error summary: Get Roles tags: - Role post: consumes: - application/json description: Create Role by json config parameters: - description: Role in: body name: Role required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateRoleRequest' produces: - application/json responses: "200": description: OK "400": description: Bad Request "500": description: Internal Server Error summary: Create Role tags: - Role /api/v1/roles/{role}: delete: consumes: - application/json description: Destroy role by json config parameters: - description: role in: path name: role required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "500": description: Internal Server Error summary: Destroy Role tags: - Role get: consumes: - application/json description: Get Role parameters: - description: role in: path name: role required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "500": description: Internal Server Error summary: Get Role tags: - Role /api/v1/roles/{role}/permissions: delete: consumes: - application/json description: Remove Role Permission by json config parameters: - description: Permission in: body name: Permission required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.DeletePermissionForRoleRequest' - description: role in: path name: role required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "500": description: Internal Server Error summary: Update Role tags: - Role post: consumes: - application/json description: Add Permission by json config parameters: - description: Permission in: body name: Permission required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.AddPermissionForRoleRequest' - description: role in: path name: role required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "500": description: Internal Server Error summary: Add Permission For Role tags: - Role /api/v1/scheduler-clusters: get: consumes: - application/json description: Get SchedulerClusters parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SchedulerCluster' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get SchedulerClusters tags: - SchedulerCluster post: consumes: - application/json description: Create by json config parameters: - description: SchedulerCluster in: body name: SchedulerCluster required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateSchedulerClusterRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SchedulerCluster' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create SchedulerCluster tags: - SchedulerCluster /api/v1/scheduler-clusters/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy SchedulerCluster tags: - SchedulerCluster get: consumes: - application/json description: Get SchedulerCluster by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SchedulerCluster' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get SchedulerCluster tags: - SchedulerCluster patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: SchedulerCluster in: body name: SchedulerCluster required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateSchedulerClusterRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SchedulerCluster' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update SchedulerCluster tags: - SchedulerCluster /api/v1/scheduler-clusters/{id}/schedulers/{scheduler_id}: put: consumes: - application/json description: Add Scheduler to schedulerCluster parameters: - description: id in: path name: id required: true type: string - description: scheduler id in: path name: scheduler_id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Add Scheduler to schedulerCluster tags: - SchedulerCluster /api/v1/scheduler-features: get: consumes: - application/json description: Get Scheduler Features produces: - application/json responses: "200": description: OK schema: items: type: string type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Scheudler Features tags: - Scheduler Feature /api/v1/schedulers: get: consumes: - application/json description: Get Schedulers parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Scheduler' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Schedulers tags: - Scheduler post: consumes: - application/json description: Create by json config parameters: - description: Scheduler in: body name: Scheduler required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateSchedulerRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Scheduler' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create Scheduler tags: - Scheduler /api/v1/schedulers/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy Scheduler tags: - Scheduler get: consumes: - application/json description: Get Scheduler by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Scheduler' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Scheduler tags: - Scheduler patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: Scheduler in: body name: Scheduler required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateSchedulerRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Scheduler' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update Scheduler tags: - Scheduler /api/v1/seed-peer-clusters: get: consumes: - application/json description: Get SeedPeerClusters parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeerCluster' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get SeedPeerClusters tags: - SeedPeerCluster post: consumes: - application/json description: Create by json config parameters: - description: DNCluster in: body name: SeedPeerCluster required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateSeedPeerClusterRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeerCluster' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create SeedPeerCluster tags: - SeedPeerCluster /api/v1/seed-peer-clusters/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy SeedPeerCluster tags: - SeedPeerCluster get: consumes: - application/json description: Get SeedPeerCluster by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeerCluster' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get SeedPeerCluster tags: - SeedPeerCluster patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: SeedPeerCluster in: body name: SeedPeerCluster required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateSeedPeerClusterRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeerCluster' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update SeedPeerCluster tags: - SeedPeerCluster /api/v1/seed-peer-clusters/{id}/scheduler-clusters/{scheduler_cluster_id}: put: consumes: - application/json description: Add SchedulerCluster to SeedPeerCluster parameters: - description: id in: path name: id required: true type: string - description: scheduler cluster id in: path name: scheduler_cluster_id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Add SchedulerCluster to SeedPeerCluster tags: - SeedPeerCluster /api/v1/seed-peer-clusters/{id}/seed-peers/{seed_peer_id}: put: consumes: - application/json description: Add SeedPeer to SeedPeerCluster parameters: - description: id in: path name: id required: true type: string - description: seed peer id in: path name: seed_peer_id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Add Instance to SeedPeerCluster tags: - SeedPeerCluster /api/v1/seed-peers: get: consumes: - application/json description: Get SeedPeers parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeer' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get SeedPeers tags: - SeedPeer post: consumes: - application/json description: Create by json config parameters: - description: SeedPeer in: body name: SeedPeer required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateSeedPeerRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeer' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create SeedPeer tags: - SeedPeer /api/v1/seed-peers/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy SeedPeer tags: - SeedPeer get: consumes: - application/json description: Get SeedPeer by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeer' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get SeedPeer tags: - SeedPeer patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: SeedPeer in: body name: SeedPeer required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateSeedPeerRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.SeedPeer' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update SeedPeer tags: - SeedPeer /api/v1/user/signin/{name}: get: consumes: - application/json description: oauth signin by json config parameters: - description: name in: path name: name required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Oauth Signin tags: - User /api/v1/user/signin/{name}/callback: get: description: oauth signin callback by json config parameters: - description: name in: path name: name required: true type: string - description: code in: query name: code required: true type: string responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Oauth Signin Callback tags: - Oauth /api/v1/user/signup: post: consumes: - application/json description: signup by json config parameters: - description: User in: body name: User required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.SignUpRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.User' "400": description: Bad Request "500": description: Internal Server Error summary: SignUp user tags: - User /api/v1/users: get: consumes: - application/json description: Get Users parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.User' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Users tags: - User /api/v1/users/{id}: get: consumes: - application/json description: Get User by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.User' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get User tags: - User patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: User in: body name: User required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateUserRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.User' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update User tags: - User /api/v1/users/{id}/reset_password: post: consumes: - application/json description: reset password by json config parameters: - description: User in: body name: User required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.ResetPasswordRequest' - description: id in: path name: id required: true type: integer produces: - application/json responses: "200": description: OK "400": description: Bad Request "500": description: Internal Server Error summary: Reset Password For User tags: - User /api/v1/users/{id}/roles: get: description: get roles by json config parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: items: type: string type: array "400": description: Bad Request "500": description: Internal Server Error summary: Get User Roles tags: - User /api/v1/users/{id}/roles/{role}: delete: consumes: - application/json description: delete role by uri config parameters: - description: id in: path name: id required: true type: string - description: role in: path name: role required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "500": description: Internal Server Error summary: Delete Role For User tags: - Users put: consumes: - application/json description: add role to user by uri config parameters: - description: id in: path name: id required: true type: string - description: role in: path name: role required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "500": description: Internal Server Error summary: Add Role For User tags: - Users /healthy: get: consumes: - application/json description: Get app health produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Health tags: - Health /oapi/v1/clusters: get: consumes: - application/json description: Get Clusters parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.GetClusterResponse' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Clusters tags: - Cluster post: consumes: - application/json description: Create by json config parameters: - description: Cluster in: body name: Cluster required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateClusterRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateClusterResponse' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create Cluster tags: - Cluster /oapi/v1/clusters/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy Cluster tags: - Cluster get: consumes: - application/json description: Get Cluster by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.GetClusterResponse' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Cluster tags: - Cluster patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: Cluster in: body name: Cluster required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateClusterRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateClusterResponse' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update Cluster tags: - Cluster /oapi/v1/jobs: get: consumes: - application/json description: Get Jobs parameters: - default: 0 description: current page in: query name: page required: true type: integer - default: 10 description: return max item count, default 10, max 50 in: query maximum: 50 minimum: 2 name: per_page required: true type: integer produces: - application/json responses: "200": description: OK schema: items: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Job' type: array "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Jobs tags: - Job post: consumes: - application/json description: Create by json config parameters: - description: Job in: body name: Job required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateJobRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Job' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create Job tags: - Job /oapi/v1/jobs/{id}: delete: consumes: - application/json description: Destroy by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Destroy Job tags: - Job get: consumes: - application/json description: Get Job by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Job' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get Job tags: - Job patch: consumes: - application/json description: Update by json config parameters: - description: id in: path name: id required: true type: string - description: Job in: body name: Job required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.UpdateJobRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_models.Job' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Update Job tags: - Job /preheats: post: consumes: - application/json description: Create by json config parameters: - description: Preheat in: body name: Preheat required: true schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateV1PreheatRequest' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.CreateV1PreheatResponse' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Create V1 Preheat tags: - Preheat /preheats/{id}: get: consumes: - application/json description: Get Preheat by id parameters: - description: id in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/d7y_io_dragonfly_v2_manager_types.GetV1PreheatResponse' "400": description: Bad Request "404": description: Not Found "500": description: Internal Server Error summary: Get V1 Preheat tags: - Preheat swagger: "2.0" tags: - description: API router (/api/v1) name: api - description: open API router (/oapi/v1) name: oapi