管理 API 参考
下表由 Arka 的 OpenAPI 契约生成。原始契约包含参数、请求和响应结构,以及各操作的认证要求。
OpenAPI 3.1.0 · Arka 1.0.0
assets
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/assets/{id}/sbom | getAssetSBOM |
audits
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/audits | listAuditEvents |
| GET | /api/v1/audits/export | exportAuditEvents |
auth
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/auth/ldap/providers | listLDAPProviders |
| POST | /api/v1/auth/ldap/providers | upsertLDAPProvider |
| DELETE | /api/v1/auth/ldap/providers/{id} | deleteLDAPProvider |
| POST | /api/v1/auth/ldap/providers/{id}/test | testLDAPProvider |
| POST | /api/v1/auth/login | login |
| GET | /api/v1/auth/me | getCurrentPrincipal |
| POST | /api/v1/auth/oidc/{provider}/callback | completeOIDCCallback |
| GET | /api/v1/auth/oidc/{provider}/start | startOIDCLogin |
| POST | /api/v1/auth/oidc/exchange | exchangeWorkloadOIDCToken |
| GET | /api/v1/auth/oidc/providers | listOIDCProviders |
| POST | /api/v1/auth/oidc/providers | upsertOIDCProvider |
| DELETE | /api/v1/auth/oidc/providers/{id} | deleteOIDCProvider |
| PUT | /api/v1/auth/password | changeMyPassword |
| GET | /api/v1/auth/workload-providers | listWorkloadOIDCProviders |
| POST | /api/v1/auth/workload-providers | createWorkloadOIDCProvider |
| DELETE | /api/v1/auth/workload-providers/{id} | deleteWorkloadOIDCProvider |
| GET | /api/v1/auth/workload-providers/{id} | getWorkloadOIDCProvider |
| PATCH | /api/v1/auth/workload-providers/{id} | updateWorkloadOIDCProvider |
builds
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/builds | listBuilds |
| POST | /api/v1/builds | createBuild |
| DELETE | /api/v1/builds/{id} | deleteBuild |
| GET | /api/v1/builds/{id} | getBuild |
| POST | /api/v1/builds/{id}/promote | promoteBuild |
formats
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/formats | listFormats |
health
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/health | getHealth |
| GET | /api/v1/health/live | getLiveness |
jobs
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/jobs | listJobs |
| POST | /api/v1/jobs | enqueueJob |
| GET | /api/v1/jobs/{id} | getJob |
| POST | /api/v1/jobs/{id}/cancel | cancelJob |
| POST | /api/v1/jobs/{id}/retry | retryJob |
migrations
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/migrations/drivers | listMigrationDrivers |
| GET | /api/v1/migrations/jobs | listMigrationJobs |
| POST | /api/v1/migrations/jobs | startMigrationJob |
| GET | /api/v1/migrations/jobs/{id} | getMigrationJob |
| GET | /api/v1/migrations/jobs/{id}/cutover-readiness | getMigrationCutoverReadiness |
| GET | /api/v1/migrations/jobs/{id}/reconciliation | getMigrationReconciliation |
| POST | /api/v1/migrations/jobs/{id}/resume | resumeMigrationJob |
| POST | /api/v1/migrations/jobs/{id}/retry-failed | retryFailedMigrationItems |
| POST | /api/v1/migrations/jobs/{id}/sync | syncMigrationCutover |
| GET | /api/v1/migrations/sources | listMigrationSources |
| POST | /api/v1/migrations/sources | createMigrationSource |
| DELETE | /api/v1/migrations/sources/{id} | deleteMigrationSource |
| POST | /api/v1/migrations/sources/{id}/preflight | preflightMigrationSource |
| POST | /api/v1/migrations/sources/{id}/provision | provisionFromMigrationSource |
| GET | /api/v1/migrations/sources/{id}/repositories | discoverMigrationSourceRepositories |
| POST | /api/v1/migrations/sources/{id}/test | testMigrationSource |
| POST | /api/v1/migrations/sources/{id}/verify | verifyMigrationParity |
observability
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/observability/status | getObservabilityStatus |
overview
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/overview | getOverview |
platform
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/platform/compat/nexus3 | getNexus3CompatStatus |
| GET | /api/v1/platform/outbound-proxy | getOutboundProxy |
| PUT | /api/v1/platform/outbound-proxy | updateOutboundProxy |
ready
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/ready | getReadiness |
repositories
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/repositories | listRepositories |
| POST | /api/v1/repositories | createRepository |
| DELETE | /api/v1/repositories/{id} | deleteRepository |
| GET | /api/v1/repositories/{id} | getRepository |
| PATCH | /api/v1/repositories/{id} | updateRepository |
| GET | /api/v1/repositories/{id}/artifacts | listRepositoryArtifacts |
| DELETE | /api/v1/repositories/{id}/assets | deleteRepositoryAsset |
| GET | /api/v1/repositories/{id}/assets | listRepositoryAssets |
| GET | /api/v1/repositories/{id}/assets/{assetId}/properties | getAssetProperties |
| PUT | /api/v1/repositories/{id}/assets/{assetId}/properties | setAssetProperties |
| DELETE | /api/v1/repositories/{id}/assets/{assetId}/properties/{key} | deleteAssetProperty |
| GET | /api/v1/repositories/{id}/assets/detail | getRepositoryAssetDetail |
| GET | /api/v1/repositories/{id}/assets/tree | browseRepositoryTree |
| POST | /api/v1/repositories/{id}/directories/delete | deleteRepositoryDirectory |
| POST | /api/v1/repositories/{id}/directories/delete-preview | previewDirectoryDelete |
| GET | /api/v1/repositories/{id}/grants | listRepositoryGrants |
| PUT | /api/v1/repositories/{id}/grants | upsertRepositoryGrant |
| DELETE | /api/v1/repositories/{id}/grants/{grantId} | deleteRepositoryGrant |
| POST | /api/v1/repositories/{id}/promote | promoteRepository |
| GET | /api/v1/repositories/{id}/retention | getRepositoryRetention |
| PUT | /api/v1/repositories/{id}/retention | upsertRepositoryRetention |
| POST | /api/v1/repositories/{id}/retention/run | runRepositoryRetention |
| GET | /api/v1/repositories/{id}/security/allowlists | listQuarantineAllowlists |
| POST | /api/v1/repositories/{id}/security/allowlists | createQuarantineAllowlist |
| DELETE | /api/v1/repositories/{id}/security/allowlists/{allowlistId} | deleteQuarantineAllowlist |
| GET | /api/v1/repositories/{id}/security/license-compliance | getRepositoryLicenseCompliance |
| PUT | /api/v1/repositories/{id}/security/license-policy | updateRepositoryLicensePolicy |
| GET | /api/v1/repositories/{id}/security/policy | getRepositorySecurityPolicy |
| PUT | /api/v1/repositories/{id}/security/policy | upsertRepositorySecurityPolicy |
| GET | /api/v1/repositories/{id}/security/sboms | listRepositorySBOMs |
| PUT | /api/v1/repositories/{id}/security/sboms | upsertAssetSBOM |
| DELETE | /api/v1/repositories/{id}/security/sboms/{sbomId} | deleteAssetSBOM |
| GET | /api/v1/repositories/{id}/security/scans | listRepositoryScans |
| POST | /api/v1/repositories/{id}/security/scans | triggerRepositoryScan |
| GET | /api/v1/repositories/{id}/security/signatures | listAssetSignatures |
| POST | /api/v1/repositories/{id}/security/signatures | attachAssetSignature |
| DELETE | /api/v1/repositories/{id}/security/signatures/{signatureId} | deleteAssetSignature |
| GET | /api/v1/repositories/{id}/snippets | getRepositorySnippets |
routing-rules
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/routing-rules | listRoutingRules |
| POST | /api/v1/routing-rules | createRoutingRule |
| DELETE | /api/v1/routing-rules/{id} | deleteRoutingRule |
| GET | /api/v1/routing-rules/{id} | getRoutingRule |
| PUT | /api/v1/routing-rules/{id} | updateRoutingRule |
| POST | /api/v1/routing-rules/test | testRoutingRule |
search
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/search | searchAssets |
security
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/security/content-selectors | listContentSelectors |
| POST | /api/v1/security/content-selectors | createContentSelector |
| DELETE | /api/v1/security/content-selectors/{id} | deleteContentSelector |
| GET | /api/v1/security/content-selectors/{id} | getContentSelector |
| PUT | /api/v1/security/content-selectors/{id} | updateContentSelector |
| POST | /api/v1/security/content-selectors/preview | previewContentSelector |
| GET | /api/v1/security/scanner/status | getScannerStatus |
| GET | /api/v1/security/scans/{scanId} | getVulnerabilityScan |
| GET | /api/v1/security/signing-keys | listSigningKeys |
| DELETE | /api/v1/security/signing-keys/{id} | deleteSigningKey |
| POST | /api/v1/security/signing-keys/{id}/activate | activateSigningKey |
| GET | /api/v1/security/signing-keys/{id}/public-key | getSigningPublicKey |
| POST | /api/v1/security/signing-keys/generate | generateSigningKey |
storage-pools
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/storage-pools | listStoragePools |
| POST | /api/v1/storage-pools | createStoragePool |
| DELETE | /api/v1/storage-pools/{id} | deleteStoragePool |
| GET | /api/v1/storage-pools/{id} | getStoragePool |
| PATCH | /api/v1/storage-pools/{id} | updateStoragePool |
| POST | /api/v1/storage-pools/{id}/test | testStoragePool |
| GET | /api/v1/storage-pools/{id}/usage | getStoragePoolUsage |
storage
| 方法 | 路径 | 操作 ID |
|---|---|---|
| POST | /api/v1/storage/gc | runBlobGC |
teams
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/teams | listTeams |
| POST | /api/v1/teams | createTeam |
| DELETE | /api/v1/teams/{id} | deleteTeam |
| GET | /api/v1/teams/{id} | getTeam |
| PATCH | /api/v1/teams/{id} | updateTeam |
| DELETE | /api/v1/teams/{id}/members/{userId} | removeTeamMember |
| PUT | /api/v1/teams/{id}/members/{userId} | addTeamMember |
tokens
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/tokens | listMyTokens |
| POST | /api/v1/tokens | createMyToken |
| DELETE | /api/v1/tokens/{id} | revokeToken |
users
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/users | listUsers |
| POST | /api/v1/users | createUser |
| PATCH | /api/v1/users/{id} | updateUser |
webhook-deliveries
| 方法 | 路径 | 操作 ID |
|---|---|---|
| POST | /api/v1/webhook-deliveries/{id}/replay | replayWebhookDelivery |
webhooks
| 方法 | 路径 | 操作 ID |
|---|---|---|
| GET | /api/v1/webhooks | listWebhooks |
| POST | /api/v1/webhooks | createWebhook |
| DELETE | /api/v1/webhooks/{id} | deleteWebhook |
| GET | /api/v1/webhooks/{id} | getWebhook |
| PATCH | /api/v1/webhooks/{id} | updateWebhook |
| GET | /api/v1/webhooks/{id}/deliveries | listWebhookDeliveries |
| POST | /api/v1/webhooks/{id}/test | testWebhook |
| GET | /api/v1/webhooks/events | listWebhookEvents |