Get domain
    • PDF

    Get domain

    • PDF

    Article summary

    We are preparing a localization service for the content. We will do our best to provide the localization service as soon as possible.

    Gets all domains.

    GET https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain
    

    Request

    Request Parameters

    ParameterRequiredTypeLimitationsDescription
    haveContainerYbooleanIndicates whether to get container information.
    haveUsgaeYbooleanIndicates whether to get domain usage information.

    Response

    FieldRequiredTypeDescriptionNote
    [].autoCompleteChangeableYstringIndicates whether autocomplete indexes are changeable.ENABLE, DISABLE
    [].autocompleteSchemaYAutoCompleteSchemaAutocomplete status
    [].containerChangeableYstringIndicates whether search containers are changeable.ENABLE, DISABLE
    [].containersYList<Container>Container information
    [].createdDateYstringDomain creation time
    [].descriptionYstringDomain description
    [].domainStatusYstringService status
    [].domainUsageYDomanUsageDomain usage
    [].indexerCountYnumberNumber of containers for indexes
    [].nameYstringDomain name
    [].schema.documentYSchemaSearch settings
    [].schemaChangeableYstringIndicates whether schemas are changeable.ENABLE, DISABLE
    [].searcherCountYnumberNumber of containers for searches
    [].typeYstringContainer typesmall, medium, large, xlarge, xxlarge, xxxlarge
    [].updatedDateYstringLast update time

    Response status

    HTTP statusDescription
    200OK (Successfully completed)
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    500Internal Server Error

    Examples

    Request Example

    GET /CloudSearch/real/v1/domain
    
    Host: cloudsearch.apigw.ntruss.com
    haveContainer: false
    haveUsage: false
    accept: application/json
    x-ncp-iam-access-key: cPMl0CYGgRYvEa8sylCj
    x-ncp-apigw-signature-v2: nn6HxvbYlXzuDBLYG8qNdz4Z7Y6qs+l5EX8BmGwI/EI=
    x-ncp-apigw-timestamp: 1551436817715
    

    Request Example

    [
      {
        "name": "my_service",
        "description": "description",
        "domainStatus": "RUNNING",
        "containerChangeable": "ENABLE",
        "schemaChangeable": "ENABLE",
        "autoCompleteChangeable": "ENABLE",
        "type": "small",
        "indexerCount": 1,
        "searcherCount": 1,
        "schema": {
          "document": {
            "primarySectionName": "docid",
            "sections": [
              {
                "name": "docid"
              },
              {
                "name": "brand"
              },
              {
                "name": "name"
              },
              {
                "docProperties": [
                  {
                    "type": "string",
                    "name": "dp_color"
                  }
                ],
                "name": "color"
              },
              {
                "docProperties": [
                  {
                    "type": "uint32",
                    "name": "dp_price"
                  }
                ],
                "name": "price"
              },
              {
                "docProperties": [
                  {
                    "type": "string",
                    "name": "dp_type"
                  }
                ],
                "name": "type"
              },
              {
                "docProperties": [
                  {
                    "type": "uint32",
                    "name": "dp_sell_cnt"
                  }
                ],
                "name": "sell_cnt"
              },
              {
                "name": "image_url"
              }
            ],
            "indexes": [
              {
                "documentTermWeight": "sum_wgt",
                "buildInfos": [
                  {
                    "indexProcessors": [
                      {
                        "type": "hanaterm",
                        "method": "sgmt",
                        "option": "+korea +josacat +eomicat"
                      }
                    ],
                    "sectionTermWeight": "1.0 * stw_2p(tf, 0.5, 0.25, 0., length / 128.0)",
                    "sections": [
                      "brand",
                      "name"
                    ],
                    "name": "index_build"
                  }
                ],
                "name": "brand_name"
              }
            ]
          }
        },
        "autocompleteSchema": null,
        "createdDate": "2019-02-28T10:28:33.795Z",
        "updatedDate": "2019-02-28T10:28:39.000Z"
      }
    ]
    

    Was this article helpful?

    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.