PADomainUtils - copyJob(文字列 paJob, 文字列 runAs)

  • リリースバージョン: Washingtondc
  • 更新日 2024年02月01日
  • 読む1読むのに数分
  • パフォーマンスアナリティクスのスケジュール設定済みデータ収集ジョブ レコードを別のドメインにコピーします。

    表 : 1. パラメーター
    名前 タイプ 説明
    paJob 文字列 パフォーマンスアナリティクスのスケジュール設定済みデータ収集ジョブ [sysauto_pa] レコードの sys_id。
    runAs 文字列 ジョブのコピー先のドメインのユーザー。
    表 : 2. 返される内容
    タイプ 説明
    文字列 エラーが発生した場合はエラー メッセージが表示され、エラーがなければ空の文字列が返されます。
    // No source domain needs to be set
    var pa = new SNC.PADomainUtils();
    // copy the '[PA Incident] Daily Data Collection job'
    // set the 'run as' of the new record to be the 'acme.itil' user
    // first argument is the sys_id of the sysauto_pa record
    // the second is the sys_id of the acme.itil user record
    pa.copyJob('82ba2023d7101100b96d45a3ce6103cd','797d14341f1310005a3637b8ec8b7010');