1. Packages
  2. Ibm Provider
  3. API Docs
  4. getAppConfigSegment
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getAppConfigSegment

Explore with Pulumi AI

Retrieve information about an existing IBM Cloud App Configuration segment. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. For more information, about App Configuration segment, see App Configuration concepts.

Using getAppConfigSegment

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAppConfigSegment(args: GetAppConfigSegmentArgs, opts?: InvokeOptions): Promise<GetAppConfigSegmentResult>
function getAppConfigSegmentOutput(args: GetAppConfigSegmentOutputArgs, opts?: InvokeOptions): Output<GetAppConfigSegmentResult>
Copy
def get_app_config_segment(guid: Optional[str] = None,
                           id: Optional[str] = None,
                           includes: Optional[Sequence[str]] = None,
                           segment_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetAppConfigSegmentResult
def get_app_config_segment_output(guid: Optional[pulumi.Input[str]] = None,
                           id: Optional[pulumi.Input[str]] = None,
                           includes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           segment_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetAppConfigSegmentResult]
Copy
func LookupAppConfigSegment(ctx *Context, args *LookupAppConfigSegmentArgs, opts ...InvokeOption) (*LookupAppConfigSegmentResult, error)
func LookupAppConfigSegmentOutput(ctx *Context, args *LookupAppConfigSegmentOutputArgs, opts ...InvokeOption) LookupAppConfigSegmentResultOutput
Copy

> Note: This function is named LookupAppConfigSegment in the Go SDK.

public static class GetAppConfigSegment 
{
    public static Task<GetAppConfigSegmentResult> InvokeAsync(GetAppConfigSegmentArgs args, InvokeOptions? opts = null)
    public static Output<GetAppConfigSegmentResult> Invoke(GetAppConfigSegmentInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAppConfigSegmentResult> getAppConfigSegment(GetAppConfigSegmentArgs args, InvokeOptions options)
public static Output<GetAppConfigSegmentResult> getAppConfigSegment(GetAppConfigSegmentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getAppConfigSegment:getAppConfigSegment
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Guid This property is required. string
The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
SegmentId This property is required. string
The segment ID.
Id string
Includes List<string>
Include feature and property details in the response.
Guid This property is required. string
The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
SegmentId This property is required. string
The segment ID.
Id string
Includes []string
Include feature and property details in the response.
guid This property is required. String
The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
segmentId This property is required. String
The segment ID.
id String
includes List<String>
Include feature and property details in the response.
guid This property is required. string
The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
segmentId This property is required. string
The segment ID.
id string
includes string[]
Include feature and property details in the response.
guid This property is required. str
The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
segment_id This property is required. str
The segment ID.
id str
includes Sequence[str]
Include feature and property details in the response.
guid This property is required. String
The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
segmentId This property is required. String
The segment ID.
id String
includes List<String>
Include feature and property details in the response.

getAppConfigSegment Result

The following output properties are available:

CreatedTime string
(Timestamp) Creation time of the segment.
Description string
(String) Segment description.
Features List<GetAppConfigSegmentFeature>
(List) List of Features associated with the segment.
Guid string
Href string
(String) Segment URL.
Id string
Name string
(String) Property Name.
Properties List<GetAppConfigSegmentProperty>
(List) List of properties associated with the segment.
Rules List<GetAppConfigSegmentRule>
(String) List of rules that determine if the entity belongs to the segment during feature / property evaluation.
SegmentId string
(String) Segment id.
Tags string
(String) Tags associated with the segments.
UpdatedTime string
(Timestamp) Last modified time of the segment data.
Includes List<string>
CreatedTime string
(Timestamp) Creation time of the segment.
Description string
(String) Segment description.
Features []GetAppConfigSegmentFeature
(List) List of Features associated with the segment.
Guid string
Href string
(String) Segment URL.
Id string
Name string
(String) Property Name.
Properties []GetAppConfigSegmentProperty
(List) List of properties associated with the segment.
Rules []GetAppConfigSegmentRule
(String) List of rules that determine if the entity belongs to the segment during feature / property evaluation.
SegmentId string
(String) Segment id.
Tags string
(String) Tags associated with the segments.
UpdatedTime string
(Timestamp) Last modified time of the segment data.
Includes []string
createdTime String
(Timestamp) Creation time of the segment.
description String
(String) Segment description.
features List<GetAppConfigSegmentFeature>
(List) List of Features associated with the segment.
guid String
href String
(String) Segment URL.
id String
name String
(String) Property Name.
properties List<GetAppConfigSegmentProperty>
(List) List of properties associated with the segment.
rules List<GetAppConfigSegmentRule>
(String) List of rules that determine if the entity belongs to the segment during feature / property evaluation.
segmentId String
(String) Segment id.
tags String
(String) Tags associated with the segments.
updatedTime String
(Timestamp) Last modified time of the segment data.
includes List<String>
createdTime string
(Timestamp) Creation time of the segment.
description string
(String) Segment description.
features GetAppConfigSegmentFeature[]
(List) List of Features associated with the segment.
guid string
href string
(String) Segment URL.
id string
name string
(String) Property Name.
properties GetAppConfigSegmentProperty[]
(List) List of properties associated with the segment.
rules GetAppConfigSegmentRule[]
(String) List of rules that determine if the entity belongs to the segment during feature / property evaluation.
segmentId string
(String) Segment id.
tags string
(String) Tags associated with the segments.
updatedTime string
(Timestamp) Last modified time of the segment data.
includes string[]
created_time str
(Timestamp) Creation time of the segment.
description str
(String) Segment description.
features Sequence[GetAppConfigSegmentFeature]
(List) List of Features associated with the segment.
guid str
href str
(String) Segment URL.
id str
name str
(String) Property Name.
properties Sequence[GetAppConfigSegmentProperty]
(List) List of properties associated with the segment.
rules Sequence[GetAppConfigSegmentRule]
(String) List of rules that determine if the entity belongs to the segment during feature / property evaluation.
segment_id str
(String) Segment id.
tags str
(String) Tags associated with the segments.
updated_time str
(Timestamp) Last modified time of the segment data.
includes Sequence[str]
createdTime String
(Timestamp) Creation time of the segment.
description String
(String) Segment description.
features List<Property Map>
(List) List of Features associated with the segment.
guid String
href String
(String) Segment URL.
id String
name String
(String) Property Name.
properties List<Property Map>
(List) List of properties associated with the segment.
rules List<Property Map>
(String) List of rules that determine if the entity belongs to the segment during feature / property evaluation.
segmentId String
(String) Segment id.
tags String
(String) Tags associated with the segments.
updatedTime String
(Timestamp) Last modified time of the segment data.
includes List<String>

Supporting Types

GetAppConfigSegmentFeature

FeatureId This property is required. string
(String) Feature Id.
Name This property is required. string
(String) Property Name.
FeatureId This property is required. string
(String) Feature Id.
Name This property is required. string
(String) Property Name.
featureId This property is required. String
(String) Feature Id.
name This property is required. String
(String) Property Name.
featureId This property is required. string
(String) Feature Id.
name This property is required. string
(String) Property Name.
feature_id This property is required. str
(String) Feature Id.
name This property is required. str
(String) Property Name.
featureId This property is required. String
(String) Feature Id.
name This property is required. String
(String) Property Name.

GetAppConfigSegmentProperty

Name This property is required. string
(String) Property Name.
PropertyId This property is required. string
(String) Property Id.
Name This property is required. string
(String) Property Name.
PropertyId This property is required. string
(String) Property Id.
name This property is required. String
(String) Property Name.
propertyId This property is required. String
(String) Property Id.
name This property is required. string
(String) Property Name.
propertyId This property is required. string
(String) Property Id.
name This property is required. str
(String) Property Name.
property_id This property is required. str
(String) Property Id.
name This property is required. String
(String) Property Name.
propertyId This property is required. String
(String) Property Id.

GetAppConfigSegmentRule

AttributeName This property is required. string
(String) Attribute name.
Operator This property is required. string
(String) Operator to be used for the evaluation if the entity belongs to the segment.
Values This property is required. List<string>
(String) List of values. Entities matching any of the given values will be considered to belong to the segment.
AttributeName This property is required. string
(String) Attribute name.
Operator This property is required. string
(String) Operator to be used for the evaluation if the entity belongs to the segment.
Values This property is required. []string
(String) List of values. Entities matching any of the given values will be considered to belong to the segment.
attributeName This property is required. String
(String) Attribute name.
operator This property is required. String
(String) Operator to be used for the evaluation if the entity belongs to the segment.
values This property is required. List<String>
(String) List of values. Entities matching any of the given values will be considered to belong to the segment.
attributeName This property is required. string
(String) Attribute name.
operator This property is required. string
(String) Operator to be used for the evaluation if the entity belongs to the segment.
values This property is required. string[]
(String) List of values. Entities matching any of the given values will be considered to belong to the segment.
attribute_name This property is required. str
(String) Attribute name.
operator This property is required. str
(String) Operator to be used for the evaluation if the entity belongs to the segment.
values This property is required. Sequence[str]
(String) List of values. Entities matching any of the given values will be considered to belong to the segment.
attributeName This property is required. String
(String) Attribute name.
operator This property is required. String
(String) Operator to be used for the evaluation if the entity belongs to the segment.
values This property is required. List<String>
(String) List of values. Entities matching any of the given values will be considered to belong to the segment.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.