MENU
      臨時Domain作成

        臨時Domain作成


        記事の要約

        Cloud Searchで使うDomainを臨時的に作成できます。

        該当リクエストを実行する前に Schema検証を通じて作成したSchemaを確認してください。

        POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/tempdomain
        HTTP

        リクエスト

        リクエストボディ

        フィールド名必須タイプ制約事項説明
        nameRequiredString英文字、 "_"ではじまる、英文字、数字、 "_"、"-" 許容、最小3文字、最大20文字まで入力Domain名
        OptionalStringsmall, medium, large, xlarge, xxlarge, xxxlargeの中、一つを選択(Default:small)コンテナ規模設定
        descriptionOptionalString0 ~ 100文字まで入力Domain説明
        indexerCountOptionalNumber現在は1のみ設定可能インデックス用コンテナ数
        searcherCountOptionalNumberMin:1, Max:4検索用コンテナ数
        schema.documentOptionalSchema有効なSchema(Schema検証を通じて確認可能)検索設定

        レスポンス

        HTTP StatusDesc
        200OK(作成完了)
        400Bad Request
        401Unauthorized
        403Forbidden
        404Not Found
        500Internal Server Error

        例示

        リクエスト例示

        POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/tempdomain
        
        POST /CloudSearch/real/v1/tempdomain HTTP/1.1
        Host:cloudsearch.apigw.ntruss.com
        accept:application/json
        
        x-ncp-apigw-signature-v2: LssXAuyQepxO4ie/XFnCKTJQZzDpOD0GyNQFz9OKhjY=
        x-ncp-apigw-timestamp: 1545957229164
        x-ncp-iam-access-key: teGTwtcSEGA7fu28BGGi
        
        {
          "name": "pet_temp",
          "description" : "search engine for pet",
          "type" : "small",
          "indexerCount": 1,
          "searcherCount": 1
        }
        HTTP

        レスポンス例示

        {"result":"ok"}
        JSON

        この記事は役に立ちましたか?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.