Get a Segment Type (ARM)

[This topic is pre-release documentation and is subject to change.]

Gets the specified Segment type definition.


The request is constructed as follows:

HTTP Verb Request URI
GET <<subId>/resourceGroups/<rgName>/providers/Microsoft.CustomerInsights/hubs/<hubName>/segments/<segmentName>?api-version=2017-04-26&&locale=<locale-code>

URI Parameters

URI Parameter Required Description
subId Yes The Azure subscription ID
rgName Yes The resource group name
hubName Yes Name of your Customer Insights Hub
segmentName Yes The name of the Segment definition to retrieve
locale-code No The localization code to apply to any returned properties. If no locale code is specified, then 'en-us' is used as default.


The response includes a standard HTTP status code, a set of standard response headers, and a response body.

Response Body

Upon success, contains context information and the requested Segment type definition, for example:

            "memberIds":[ "1", "2", "3" ], 
            "tags": [] 
         "segmentState":{ "segmentSize":0 }, 

Status Code

  • 200 (OK) - Segment was returned successfully.
  • 403 (Forbidden) - Operation was blocked, usually because the Segmentation feature flag is disabled.
  • 404 (Not Found) - Specified segment name was not found.