workspaces
orc workspaces は、ワークスペースの一覧表示や作成、設定の更新、メンバーのアクセス管理を行います。以降のコマンドで使うワークスペースを選ぶには orc workspace use を使います。特定のワークスペースを操作するコマンドには、その ID を指定します。
ワークスペースの作成や組織の利用枠の確認には、組織レベルの認証情報が必要です。
使い方
orc workspaces list --jsonアクセスできる Workspace を一覧にします。
サブコマンド
list
アクセスできるワークスペースを一覧表示します。アーカイブ済みの項目も含めるには --include-archived true を指定します。
orc workspaces list [options]固有のオプション
--include-archived
Include archived workspaces in the response.; enum: true|false
型: string。任意。
orc workspaces list --include-archived <value>create
--name を指定してワークスペースを作成します。URL のスラッグは --slug で指定できます。
orc workspaces create [options]固有のオプション
--idempotency-key
Retry identity for operations that support idempotency. Use a unique key for each new operation, and reuse it only when retrying the same HTTP method, path, query values and exact request body. JSON whitespace changes can count as a different body. Keys contain 1–255 characters after trimming and expire after 24 hours. A completed JSON response is replayed without repeating the operation. A different request using the same key returns 409 idempotency_error. An in-progress request returns 409 idempotency_in_progress with Retry-After: 2. Whether this header is required depends on the operation.
型: string。任意。
orc workspaces create --idempotency-key <value>--name
(required) Workspace display name after trimming surrounding whitespace. Must contain 1 to 120 characters.; max 120 chars
型: string。任意。
orc workspaces create --name <value>--slug
Preferred workspace URL slug. Omit or send an empty string to derive it from name. The server normalizes to lowercase letters, digits and hyphens and resolves conflicts within the organization.
型: string。任意。
orc workspaces create --slug <value>--workspace-type
Workspace type. Omission creates a team workspace.; enum: personal|team
型: string。任意。
orc workspaces create --workspace-type <value>--client-label
Optional client-facing label. Surrounding whitespace is removed; omitted, null or empty values store no label.; (use "null" or "reset" to clear)
型: string。任意。
orc workspaces create --client-label <value>quotas get
組織の Workspace 利用枠を取得します。Workspace スコープのキーでは 403 insufficient_scope となり、空の利用枠を意味しません。
orc workspaces quotas get [options]get
Workspace ID を指定して情報を取得します。
orc workspaces get <id> [options]update
Workspace ID を指定し、名前・URL 用 slug・表示設定などを更新します。アーカイブされていない pitch Workspace を purpose: client へ変換する操作にも対応します。
orc workspaces update <id> [options]固有のオプション
--idempotency-key
Retry identity for operations that support idempotency. Use a unique key for each new operation, and reuse it only when retrying the same HTTP method, path, query values and exact request body. JSON whitespace changes can count as a different body. Keys contain 1–255 characters after trimming and expire after 24 hours. A completed JSON response is replayed without repeating the operation. A different request using the same key returns 409 idempotency_error. An in-progress request returns 409 idempotency_in_progress with Retry-After: 2. Whether this header is required depends on the operation.
型: string。任意。
orc workspaces update <id> --idempotency-key <value>--is-default
Set this workspace as the organization default. Must be true and the only field in the body. Requires a human organization owner or admin; machine credentials cannot perform this change.; enum: true
型: string。任意。
orc workspaces update <id> --is-default <value>--name
Replacement workspace display name. Omit to retain the current value.; max 120 chars
型: string。任意。
orc workspaces update <id> --name <value>--slug
Replacement preferred slug. Normalized and made unique within the organization. Omit to retain the current slug.
型: string。任意。
orc workspaces update <id> --slug <value>--client-label
Replacement client-facing label. Omit to retain it; null or an empty string clears it. Nonempty strings are trimmed.; (use "null" or "reset" to clear)
型: string。任意。
orc workspaces update <id> --client-label <value>--color-token
Workspace visual identity color. Omit to retain the current token.; enum: default|gray|brown|orange|yellow|green|blue|purple|pink|red
型: string。任意。
orc workspaces update <id> --color-token <value>--identity-kind
Workspace visual identity rendering mode. Omit to retain the current mode. Set the corresponding icon, emoji or image value separately when needed.; enum: color|initial|icon|emoji|image
型: string。任意。
orc workspaces update <id> --identity-kind <value>--icon-token
Icon identifier used by icon identity mode. Omit to retain it; null or an empty string clears it. Does not change identity_kind.; (use "null" or "reset" to clear); max 64 chars
型: string。任意。
orc workspaces update <id> --icon-token <value>--emoji
Emoji value used by emoji identity mode. Omit to retain it; null or an empty string clears it. Does not change identity_kind.; (use "null" or "reset" to clear); max 32 chars
型: string。任意。
orc workspaces update <id> --emoji <value>--image-file-id
File ID used by image identity mode. Omit to retain it; null or an empty string clears it. Does not change identity_kind.; (use "null" or "reset" to clear)
型: string。任意。
orc workspaces update <id> --image-file-id <value>--purpose
Set client to convert an unarchived pitch workspace. Submit only purpose and optional dry_run. The conversion is irreversible. A request to convert to pitch is rejected.; enum: client|pitch
型: string。任意。
orc workspaces update <id> --purpose <value>archive
Workspace ID を指定してアーカイブします。復元には restore を使用します。
orc workspaces archive <id> [options]固有のオプション
--idempotency-key
Retry identity for operations that support idempotency. Use a unique key for each new operation, and reuse it only when retrying the same HTTP method, path, query values and exact request body. JSON whitespace changes can count as a different body. Keys contain 1–255 characters after trimming and expire after 24 hours. A completed JSON response is replayed without repeating the operation. A different request using the same key returns 409 idempotency_error. An in-progress request returns 409 idempotency_in_progress with Retry-After: 2. Whether this header is required depends on the operation.
型: string。任意。
orc workspaces archive <id> --idempotency-key <value>restore
アーカイブ済み Workspace を ID で指定して復元します。
orc workspaces restore <id> [options]固有のオプション
--idempotency-key
Retry identity for operations that support idempotency. Use a unique key for each new operation, and reuse it only when retrying the same HTTP method, path, query values and exact request body. JSON whitespace changes can count as a different body. Keys contain 1–255 characters after trimming and expire after 24 hours. A completed JSON response is replayed without repeating the operation. A different request using the same key returns 409 idempotency_error. An in-progress request returns 409 idempotency_in_progress with Retry-After: 2. Whether this header is required depends on the operation.
型: string。任意。
orc workspaces restore <id> --idempotency-key <value>members list
Workspace ID を指定してメンバーを一覧にします。
orc workspaces members list <id> [options]members create
対象 Workspace ID と --user-id に同じ組織の有効な人のユーザー ID を指定してアクセスを付与します。API キーの合成 ID は使用できません。
orc workspaces members create <id> [options]固有のオプション
--idempotency-key
Retry identity for operations that support idempotency. Use a unique key for each new operation, and reuse it only when retrying the same HTTP method, path, query values and exact request body. JSON whitespace changes can count as a different body. Keys contain 1–255 characters after trimming and expire after 24 hours. A completed JSON response is replayed without repeating the operation. A different request using the same key returns 409 idempotency_error. An in-progress request returns 409 idempotency_in_progress with Retry-After: 2. Whether this header is required depends on the operation.
型: string。任意。
orc workspaces members create <id> --idempotency-key <value>--user-id
(required) User ID of an active member of the workspace organization. This is not a workspace-member assignment ID. The user must already belong to the organization.
型: string。任意。
orc workspaces members create <id> --user-id <value>--workspace-role
Workspace role to assign, defaulting to member. If the assignment already exists, this role replaces its current role and the assignment becomes active.; enum: owner|member
型: string。任意。
orc workspaces members create <id> --workspace-role <value>members delete
Workspace ID とユーザー ID を指定してメンバーのアクセスを除外します。
orc workspaces members delete <id> <user-id> [options]使用例
作成後の Workspace に人のアクセスを付与します。
orc workspaces members create WORKSPACE_ID --user-id USER_ID --workspace-role member --json作成後の Workspace に人のアクセスを付与します。
アクセス付与と組織の利用枠
アクセスを付与する対象は同じ組織に所属する有効な人の Organization user ID です。組織スコープの write API キー、または Workspace の owner/admin が操作できます。API キーの apikey:... 合成 ID を人の ID として指定しないでください。
組織キーで作成した Workspace には人の workspace_members が自動作成されないため、作成後に members create を実行します。組織境界が一致しない対象は 404、read-only キーや権限のない人は 403 になります。付与後は人のプロファイルで orc workspace use <id> またはデータコマンドの --workspace <id> を使用します。
グローバルオプション
orc workspaces では、次のグローバルオプションを使用できます。
各オプションの詳細と使用例は、グローバルオプションを参照してください。