For AI agents: the complete documentation index is available at https://docs.dataplatform.ovh.net/ja/llms.txt, the full documentation bundle is available at https://docs.dataplatform.ovh.net/ja/llms-full.txt, and this page is available as Markdown at https://docs.dataplatform.ovh.net/ja/sdk/api-qb-acl.md.
  • 🇯🇵 日本語
  • Front API での Analytics Manager ACL ルールのカスタマイズ

    Warning

    再作業中、納期未定。 Front App SDK (ReactJS) と Front API SDK (NodeJS) の両方が置き換えられています。このページは現在のリリースを文書化し、置き換えが出荷されるまで正確であり、維持されます。これに対して書かれたコードは引き続き動作します。

    Warning

    拡張機能 qb をインストールする必要があります。

    /src/qb/services/ACL.js というファイルを、このテンプレートから作成します:

    module.exports = async (req,query,dataset)=> {
        return query
    }

    現在、ルールは適用されません。

    この関数を使用して、以下のことができます:

    • ユーザーがクエリを実行することを禁止する または
    • クエリ内容を更新する(クエリ内にフィールドを追加するなど)

    完全な例:

    // This function is called each time you launch a query from the Front API,
    // and allows you to intercept it. 
    // thus you can easily forbid a query or modify it (in order to apply a filter) 
    
    module.exports = async (req,query,dataset)=> \{
    
    // req.authentication.session contains the object provided by IAM 
    // or your custom authentication
    
    // If you wish to deny certain requests for non-admins.
    if(query.data.fields.quantity && !req.authentication.session.isAdmin) \{
        let err = new Error('QuantityNotAuthorized')
        err.status = 401
        throw err
    \}
    
    // If you need to apply a filter for non-admin
    if(!req.authentication.session.isAdmin) \{
        query.filter = query.filter || \{\}
        query.filter.company = \{
            in:["Data Platform"]
        \}
    \}
    
    return query

    さらに詳しく

    当社のソリューションを実装するためのトレーニングや技術サポートが必要な場合は、営業担当者にお問い合わせください、またはこのリンクをクリックして、当社のプロフェッショナルサービスの専門家にプロジェクトのカスタム分析を依頼するための見積もりを取得してください。

    Data Platform を構築するチームと直接やり取りし、質問をしたり、フィードバックを送信したり、専用の Discord チャネルで交流してください。

    OVHcloud サービスについてサポートが必要な場合は、ヘルプセンターでリクエストを作成してください。

    ユーザーコミュニティに参加してください。