project change_organization#

Description#

プロジェクトの所属先組織を変更します。

Examples#

$ annofabcli project change_organization --project_id prj1 prj2 --organization org1

デフォルトでは、「進行中」状態のプロジェクトの組織を変更できません。 「進行中」状態のプロジェクトの組織を変更するには、 --suspend_active_project を指定してください。「停止中」状態にした後、プロジェクトを変更します。

Usage Details#

プロジェクトの所属する組織を変更します。

usage: annofabcli project change_organization [-h] [--yes]
                                              [--endpoint_url ENDPOINT_URL]
                                              [--annofab_user_id ANNOFAB_USER_ID]
                                              [--annofab_password ANNOFAB_PASSWORD]
                                              [--annofab_pat ANNOFAB_PAT]
                                              [--logdir LOGDIR]
                                              [--disable_log] [--debug] -p
                                              PROJECT_ID [PROJECT_ID ...] -org
                                              ORGANIZATION
                                              [--suspend_active_project]

Named Arguments#

-p, --project_id

対象プロジェクトのproject_idを指定します。 file:// を先頭に付けると、project_idの一覧が記載されたファイルを指定できます。

-org, --organization

変更後の組織名を指定してください。

--suspend_active_project

進行中状態のプロジェクトを停止中状態に変更した後で、組織を変更します。

global optional arguments#

--yes

処理中に現れる問い合わせに対して、常に yes と回答します。

--endpoint_url

Annofab WebAPIのエンドポイントを指定します。

Default: 'https://annofab.com'

--annofab_user_id

Annofabにログインする際のユーザーID

--annofab_password

Annofabにログインする際のパスワード

--annofab_pat

Annofabにログインする際のパーソナルアクセストークン

--logdir

ログファイルを保存するディレクトリを指定します。

Default: .log

--disable_log

ログを無効にします。

--debug

HTTPリクエストの内容やレスポンスのステータスコードなど、デバッグ用のログが出力されます。

プロジェクトのオーナロール、変更先の組織の管理者またはオーナーロールを持つユーザで実行してください。