apex.actions.add([ { name: "install-web-credential", action: function( event, element, args) { /* 確認のためのダイアログを表示する */ apex.message.confirm( "Are you sure?", function( okPressed ) { /* OCI VaultのシークレットからWeb資格証明を作成/更新する。 */ apex.server.process( "INSTALL_WEB_CREDENTIAL", { x01: args.secretId } ,{ success: function( data ) { if (data.success) { /* 成功メッセージの表示 */ apex.message.showPageSuccess( "Web Credential Created or Updated!" ); } else { /* 失敗メッセージの表示 */ apex.message.showErrors([ { type: "error", location: "page", message: "Web Credential Creation or Update Failed!", unsafe: false } ]); } } } ); } ); } } ]);