Get list of Environments

GET /apprapp/feature/v1/instances/{guid}/environments

List all the environments in the App Configuration service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.environments.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.environments.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

expand

boolean

If set to `true`, returns expanded view of the resource details.

sort

string

Sort the environment details based on the specified attribute. By default, items are sorted by name.

tags

string

Filter the resources to be returned based on the associated tags. Specify the parameter as a list of comma separated tags. Returns resources associated with any of the specified tags.

include

array

Include feature, property, snapshots details in the response.

limit

integer

The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.

offset

integer

The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.

string

Searches for the provided keyword and returns the appropriate row with that value. Here the search happens on the '[Name OR Tag]' of the entity

Response

200 - Successfully listed the environments.

environments

array

Array of environments.

limit

integer

The number of records that are retrieved in a list.

offset

integer

The number of records that are skipped in a list.

total_count

integer

The total number of records.

first

PaginatedListFirst

URL to navigate to the first page of records.

previous

PaginatedListPrevious

URL to navigate to the previous list of records.

next

PaginatedListNext

URL to navigate to the next list of records.

last

PaginatedListLast

URL to navigate to the last page of records.

401 - Unauthorized

message

string

The message describing the error.

Create Environment

POST /apprapp/feature/v1/instances/{guid}/environments

Create an environment.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.environments.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.environments.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

201 - Successfully created the environment.

name

string

Environment name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

environment_id

string

Environment id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Environment description

tags

string

Tags associated with the environment, allowed special characters are [_. ,-:]

color_code

string

Color code to distinguish the environment. The Hex code for the color. For example `#FF0000` for `red`.

created_time

string

Creation time of the environment.

updated_time

string

Last modified time of the environment data.

href

string

Environment URL

features

array

List of Features associated with the environment.

properties

array

List of properties associated with the environment.

snapshots

array

List of snapshots associated with the environment.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Update Environment

PUT /apprapp/feature/v1/instances/{guid}/environments/{environment_id}

Update an environment.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.environments.update

Auditing

Calling this method generates the following auditing event.

  • apprapp.environments.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

Query Parameters

Response

200 - Successfully updated the environment details.

name

string

Environment name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

environment_id

string

Environment id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Environment description

tags

string

Tags associated with the environment, allowed special characters are [_. ,-:]

color_code

string

Color code to distinguish the environment. The Hex code for the color. For example `#FF0000` for `red`.

created_time

string

Creation time of the environment.

updated_time

string

Last modified time of the environment data.

href

string

Environment URL

features

array

List of Features associated with the environment.

properties

array

List of properties associated with the environment.

snapshots

array

List of snapshots associated with the environment.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the environment id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get Environment

GET /apprapp/feature/v1/instances/{guid}/environments/{environment_id}

Retrieve the details of the environment.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.environments.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.environments.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

Query Parameters

expand

boolean

If set to `true`, returns expanded view of the resource details.

include

array

Include feature, property, snapshots details in the response.

Response

200 - Successfully retrieved the environment details.

name

string

Environment name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

environment_id

string

Environment id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Environment description

tags

string

Tags associated with the environment, allowed special characters are [_. ,-:]

color_code

string

Color code to distinguish the environment. The Hex code for the color. For example `#FF0000` for `red`.

created_time

string

Creation time of the environment.

updated_time

string

Last modified time of the environment data.

href

string

Environment URL

features

array

List of Features associated with the environment.

properties

array

List of properties associated with the environment.

snapshots

array

List of snapshots associated with the environment.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

404 - Not Found. Verify that the environment id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Delete Environment

DELETE /apprapp/feature/v1/instances/{guid}/environments/{environment_id}

Delete an Environment.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.environments.delete

Auditing

Calling this method generates the following auditing event.

  • apprapp.environments.delete

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

Query Parameters

Response

202 - Accepted. Workflow approval initiated for the environment delete operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

204 - Successfully deleted the specified environment.

400 - Bad request. Ensure that at least one environment should exist in the instance.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the environment id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Environment delete operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

Get list of Collections

GET /apprapp/feature/v1/instances/{guid}/collections

List of all the collections in the App Configuration service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.collections.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.collections.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

expand

boolean

If set to `true`, returns expanded view of the resource details.

sort

string

Sort the collection details based on the specified attribute. By default, items are sorted by name.

tags

string

Filter the resources to be returned based on the associated tags. Specify the parameter as a list of comma separated tags. Returns resources associated with any of the specified tags.

features

array

Filter collections by a list of comma separated features.

properties

array

Filter collections by a list of comma separated properties.

include

array

Include feature, property, snapshots details in the response.

limit

integer

The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.

offset

integer

The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.

search

string

Searches for the provided keyword and returns the appropriate row with that value. Here the search happens on the '[Name OR Tag]' of the entity

Response

200 - Successfully listed the collections.

collections

array

Array of collections.

limit

integer

The number of records that are retrieved in a list.

offset

integer

The number of records that are skipped in a list.

total_count

integer

The total number of records.

first

PaginatedListFirst

URL to navigate to the first page of records.

previous

PaginatedListPrevious

URL to navigate to the previous list of records.

next

PaginatedListNext

URL to navigate to the next list of records.

last

PaginatedListLast

URL to navigate to the last page of records.

401 - Unauthorized

message

string

The message describing the error.

Create Collection

POST /apprapp/feature/v1/instances/{guid}/collections

Create a collection.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.collections.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.collections.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

201 - Successfully created the collection.

name

string

Collection name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

collection_id

string

Collection Id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Collection description

tags

string

Tags associated with the collection, allowed special characters are [_. ,-:]

created_time

string

Creation time of the collection.

updated_time

string

Last updated time of the collection data.

href

string

Collection URL

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Update Collection

PUT /apprapp/feature/v1/instances/{guid}/collections/{collection_id}

Update the collection name, tags and description. Collection Id cannot be updated.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.collections.update

Auditing

Calling this method generates the following auditing event.

  • apprapp.collections.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

collection_id

Required *

string

Collection Id of the collection

Query Parameters

Response

200 - Successfully updated the collection details.

name

string

Collection name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

collection_id

string

Collection Id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Collection description

tags

string

Tags associated with the collection, allowed special characters are [_. ,-:]

created_time

string

Creation time of the collection.

updated_time

string

Last updated time of the collection data.

href

string

Collection URL

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the collection id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get Collection

GET /apprapp/feature/v1/instances/{guid}/collections/{collection_id}

Retrieve the details of the collection.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.collections.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.collections.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

collection_id

Required *

string

Collection Id of the collection

Query Parameters

expand

boolean

If set to `true`, returns expanded view of the resource details.

include

array

Include feature, property, snapshots details in the response.

Response

200 - Successfully retrieved the collection details.

name

string

Collection name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

collection_id

string

Collection Id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Collection description

tags

string

Tags associated with the collection, allowed special characters are [_. ,-:]

created_time

string

Creation time of the collection.

updated_time

string

Last updated time of the collection data.

href

string

Collection URL

features

array

List of Features associated with the collection.

properties

array

List of properties associated with the collection.

snapshots

array

List of snapshots associated with the collection.

features_count

integer

Number of features associated with the collection.

properties_count

integer

Number of properties associated with the collection.

snapshot_count

integer

Number of snapshot associated with the collection.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

404 - Not Found. Verify that the collection id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Delete Collection

DELETE /apprapp/feature/v1/instances/{guid}/collections/{collection_id}

Delete the collection.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.collections.delete

Auditing

Calling this method generates the following auditing event.

  • apprapp.collections.delete

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

collection_id

Required *

string

Collection Id of the collection

Query Parameters

Response

202 - Accepted. Workflow approval initiated for the collection delete operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

204 - Successfully deleted the specified collection.

404 - Not Found. Verify that the collection id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Collection delete operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

Get list of Features

GET /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features

List all the feature flags in the specified environment.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.features.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

Query Parameters

expand

boolean

If set to `true`, returns expanded view of the resource details.

sort

string

Sort the feature details based on the specified attribute. By default, items are sorted by name.

tags

string

Filter the resources to be returned based on the associated tags. Specify the parameter as a list of comma separated tags. Returns resources associated with any of the specified tags.

collections

array

Filter features by a list of comma separated collections.

segments

array

Filter features by a list of comma separated segments.

include

array

Include the associated collections or targeting rules or change request details in the response.

limit

integer

The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.

offset

integer

The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.

search

string

Searches for the provided keyword and returns the appropriate row with that value. Here the search happens on the '[Name OR Tag]' of the entity

Response

200 - Successfully listed all the features.

features

array

Array of Features.

limit

integer

The number of records that are retrieved in a list.

offset

integer

The number of records that are skipped in a list.

total_count

integer

The total number of records.

first

PaginatedListFirst

URL to navigate to the first page of records.

previous

PaginatedListPrevious

URL to navigate to the previous list of records.

next

PaginatedListNext

URL to navigate to the next list of records.

last

PaginatedListLast

URL to navigate to the last page of records.

401 - Unauthorized

message

string

The message describing the error.

Create Feature

POST /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features

Create a feature flag

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.features.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

Query Parameters

Response

201 - Successfully created the feature flag.

name

string

Feature name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

feature_id

string

Feature id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Feature description

type

string

Type of the feature (BOOLEAN, STRING, NUMERIC). If `type` is `STRING`, then `format` attribute is required.

format

string

Format of the feature (TEXT, JSON, YAML) and it is a required attribute when `type` is `STRING`. It is not required for `BOOLEAN` and `NUMERIC` types. This property is populated in the response body of `POST, PUT and GET` calls if the type `STRING` is used and not populated for `BOOLEAN` and `NUMERIC` types.

enabled_value

object

Value of the feature when it is enabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

disabled_value

object

Value of the feature when it is disabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

enabled

boolean

The state of the feature flag.

rollout_percentage

integer

Rollout percentage associated with feature flag. Supported only for Lite and Enterprise plans.

rollout_type

string

The rollout strategy type for the feature flag. `MANUAL` is the default. `PROGRESSIVE` enables automatic phase-based rollout. `GUARDED` enables automatic phase-based rollout that is monitored against the configured metrics.

rollout_configuration

RolloutConfiguration

Configuration that controls the rollout behaviour for a Progressive or Guarded rollout type.

tags

string

Tags associated with the feature, allowed special characters are [_. ,-:]

segment_rules

array

Specify the targeting rules that is used to set different feature flag values for different segments.

segment_exists

boolean

Denotes if the targeting rules are specified for the feature flag.

segment_count

integer

The number of targeting rules (segment_rules) configured for the feature flag.

rollout_rule

RolloutRule

Identifies which rule of the feature flag is currently under a Progressive rollout. Only one rule among set-of-rules can be under rollout at a time.

collections

array

List of collection id representing the collections that are associated with the specified feature flag.

created_time

string

Creation time of the feature flag.

updated_time

string

Last modified time of the feature flag data.

evaluation_time

string

The last occurrence of the feature flag value evaluation.

href

string

Feature flag URL

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

400 - Bad request. . Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Update Feature

PUT /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}

Update a feature flag details

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features.update

Auditing

Calling this method generates the following auditing event.

  • apprapp.features.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

Query Parameters

Response

200 - Successfully updated the feature flag details

name

string

Feature name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

feature_id

string

Feature id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Feature description

type

string

Type of the feature (BOOLEAN, STRING, NUMERIC). If `type` is `STRING`, then `format` attribute is required.

format

string

Format of the feature (TEXT, JSON, YAML) and it is a required attribute when `type` is `STRING`. It is not required for `BOOLEAN` and `NUMERIC` types. This property is populated in the response body of `POST, PUT and GET` calls if the type `STRING` is used and not populated for `BOOLEAN` and `NUMERIC` types.

enabled_value

object

Value of the feature when it is enabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

disabled_value

object

Value of the feature when it is disabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

enabled

boolean

The state of the feature flag.

rollout_percentage

integer

Rollout percentage associated with feature flag. Supported only for Lite and Enterprise plans.

rollout_type

string

The rollout strategy type for the feature flag. `MANUAL` is the default. `PROGRESSIVE` enables automatic phase-based rollout. `GUARDED` enables automatic phase-based rollout that is monitored against the configured metrics.

rollout_configuration

RolloutConfiguration

Configuration that controls the rollout behaviour for a Progressive or Guarded rollout type.

tags

string

Tags associated with the feature, allowed special characters are [_. ,-:]

segment_rules

array

Specify the targeting rules that is used to set different feature flag values for different segments.

segment_exists

boolean

Denotes if the targeting rules are specified for the feature flag.

segment_count

integer

The number of targeting rules (segment_rules) configured for the feature flag.

rollout_rule

RolloutRule

Identifies which rule of the feature flag is currently under a Progressive rollout. Only one rule among set-of-rules can be under rollout at a time.

collections

array

List of collection id representing the collections that are associated with the specified feature flag.

created_time

string

Creation time of the feature flag.

updated_time

string

Last modified time of the feature flag data.

evaluation_time

string

The last occurrence of the feature flag value evaluation.

href

string

Feature flag URL

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

202 - Accepted. Workflow approval initiated for the feature update operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the feature id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Feature update operation is already under workflow approval, or the update is blocked because the feature's collection association is being changed from an environment that is not scoped for workflow, while another environment in the instance has an active workflow scope for this feature.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Update Feature Values

PATCH /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}

Update the feature values. This method can be executed only by the `writer` role. This method allows the update of feature name, feature enabled_value, feature disabled_value, tags, description and feature segment rules, however this method does not allow toggling the feature flag and assigning feature to a collection.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features.patch

Auditing

Calling this method generates the following auditing event.

  • apprapp.features.updatevalues

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

Query Parameters

Response

200 - Successfully updated the feature values.

name

string

Feature name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

feature_id

string

Feature id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Feature description

type

string

Type of the feature (BOOLEAN, STRING, NUMERIC). If `type` is `STRING`, then `format` attribute is required.

format

string

Format of the feature (TEXT, JSON, YAML) and it is a required attribute when `type` is `STRING`. It is not required for `BOOLEAN` and `NUMERIC` types. This property is populated in the response body of `POST, PUT and GET` calls if the type `STRING` is used and not populated for `BOOLEAN` and `NUMERIC` types.

enabled_value

object

Value of the feature when it is enabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

disabled_value

object

Value of the feature when it is disabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

enabled

boolean

The state of the feature flag.

rollout_percentage

integer

Rollout percentage associated with feature flag. Supported only for Lite and Enterprise plans.

rollout_type

string

The rollout strategy type for the feature flag. `MANUAL` is the default. `PROGRESSIVE` enables automatic phase-based rollout. `GUARDED` enables automatic phase-based rollout that is monitored against the configured metrics.

rollout_configuration

RolloutConfiguration

Configuration that controls the rollout behaviour for a Progressive or Guarded rollout type.

tags

string

Tags associated with the feature, allowed special characters are [_. ,-:]

segment_rules

array

Specify the targeting rules that is used to set different feature flag values for different segments.

segment_exists

boolean

Denotes if the targeting rules are specified for the feature flag.

segment_count

integer

The number of targeting rules (segment_rules) configured for the feature flag.

rollout_rule

RolloutRule

Identifies which rule of the feature flag is currently under a Progressive rollout. Only one rule among set-of-rules can be under rollout at a time.

collections

array

List of collection id representing the collections that are associated with the specified feature flag.

created_time

string

Creation time of the feature flag.

updated_time

string

Last modified time of the feature flag data.

evaluation_time

string

The last occurrence of the feature flag value evaluation.

href

string

Feature flag URL

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

202 - Accepted. Workflow approval initiated for the feature patch operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the feature id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Feature patch operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get Feature

GET /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}

Retrieve details of a feature.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.features.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

Query Parameters

include

array

Include the associated collections or targeting rules or change request details in the response.

Response

200 - Successfully retrieved the feature details.

name

string

Feature name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

feature_id

string

Feature id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Feature description

type

string

Type of the feature (BOOLEAN, STRING, NUMERIC). If `type` is `STRING`, then `format` attribute is required.

format

string

Format of the feature (TEXT, JSON, YAML) and it is a required attribute when `type` is `STRING`. It is not required for `BOOLEAN` and `NUMERIC` types. This property is populated in the response body of `POST, PUT and GET` calls if the type `STRING` is used and not populated for `BOOLEAN` and `NUMERIC` types.

enabled_value

object

Value of the feature when it is enabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

disabled_value

object

Value of the feature when it is disabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

enabled

boolean

The state of the feature flag.

rollout_percentage

integer

Rollout percentage associated with feature flag. Supported only for Lite and Enterprise plans.

rollout_type

string

The rollout strategy type for the feature flag. `MANUAL` is the default. `PROGRESSIVE` enables automatic phase-based rollout. `GUARDED` enables automatic phase-based rollout that is monitored against the configured metrics.

rollout_configuration

RolloutConfiguration

Configuration that controls the rollout behaviour for a Progressive or Guarded rollout type.

tags

string

Tags associated with the feature, allowed special characters are [_. ,-:]

segment_rules

array

Specify the targeting rules that is used to set different feature flag values for different segments.

segment_exists

boolean

Denotes if the targeting rules are specified for the feature flag.

segment_count

integer

The number of targeting rules (segment_rules) configured for the feature flag.

rollout_rule

RolloutRule

Identifies which rule of the feature flag is currently under a Progressive rollout. Only one rule among set-of-rules can be under rollout at a time.

collections

array

List of collection id representing the collections that are associated with the specified feature flag.

created_time

string

Creation time of the feature flag.

updated_time

string

Last modified time of the feature flag data.

evaluation_time

string

The last occurrence of the feature flag value evaluation.

href

string

Feature flag URL

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

404 - Not Found. Verify that the feature id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Delete Feature

DELETE /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}

Delete a feature flag

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features.delete

Auditing

Calling this method generates the following auditing event.

  • apprapp.features.delete

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

Query Parameters

Response

202 - Accepted. Workflow approval initiated for the feature delete operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

204 - Successfully deleted the specified feature.

404 - Not Found. Verify that the feature id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Feature delete operation is already under workflow approval, or the delete is blocked because the feature is being deleted from an environment that is not scoped for workflow, while another environment in the instance has an active workflow scope for this feature.

Toggle Feature

PUT /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/toggle

Toggle a feature.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features.toggle

Auditing

Calling this method generates the following auditing event.

  • apprapp.features.toggle

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

Query Parameters

Response

200 - Successfully toggled the specified feature.

name

string

Feature name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

feature_id

string

Feature id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Feature description

type

string

Type of the feature (BOOLEAN, STRING, NUMERIC). If `type` is `STRING`, then `format` attribute is required.

format

string

Format of the feature (TEXT, JSON, YAML) and it is a required attribute when `type` is `STRING`. It is not required for `BOOLEAN` and `NUMERIC` types. This property is populated in the response body of `POST, PUT and GET` calls if the type `STRING` is used and not populated for `BOOLEAN` and `NUMERIC` types.

enabled_value

object

Value of the feature when it is enabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

disabled_value

object

Value of the feature when it is disabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

enabled

boolean

The state of the feature flag.

rollout_percentage

integer

Rollout percentage associated with feature flag. Supported only for Lite and Enterprise plans.

rollout_type

string

The rollout strategy type for the feature flag. `MANUAL` is the default. `PROGRESSIVE` enables automatic phase-based rollout. `GUARDED` enables automatic phase-based rollout that is monitored against the configured metrics.

rollout_configuration

RolloutConfiguration

Configuration that controls the rollout behaviour for a Progressive or Guarded rollout type.

tags

string

Tags associated with the feature, allowed special characters are [_. ,-:]

segment_rules

array

Specify the targeting rules that is used to set different feature flag values for different segments.

segment_exists

boolean

Denotes if the targeting rules are specified for the feature flag.

segment_count

integer

The number of targeting rules (segment_rules) configured for the feature flag.

rollout_rule

RolloutRule

Identifies which rule of the feature flag is currently under a Progressive rollout. Only one rule among set-of-rules can be under rollout at a time.

collections

array

List of collection id representing the collections that are associated with the specified feature flag.

created_time

string

Creation time of the feature flag.

updated_time

string

Last modified time of the feature flag data.

evaluation_time

string

The last occurrence of the feature flag value evaluation.

href

string

Feature flag URL

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

202 - Accepted. Workflow approval initiated for the feature toggle operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

400 - Bad request.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the feature id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Feature toggle operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

Stop Feature Rollout

PATCH /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/rollout

Stop an in-progress rollout for a feature flag that is in a Progressive rollout state. The rollout is halted at the specified rollout percentage, which becomes the fixed percentage at which the feature is served until the rollout is reconfigured. This operation is not applicable to features in Manual rollout mode.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features-rollout-action.patch

Auditing

Calling this method generates the following auditing event.

  • apprapp.features.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

Query Parameters

Response

200 - Successfully stopped the in-progress rollout.

name

string

Feature name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

feature_id

string

Feature id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Feature description

type

string

Type of the feature (BOOLEAN, STRING, NUMERIC). If `type` is `STRING`, then `format` attribute is required.

format

string

Format of the feature (TEXT, JSON, YAML) and it is a required attribute when `type` is `STRING`. It is not required for `BOOLEAN` and `NUMERIC` types. This property is populated in the response body of `POST, PUT and GET` calls if the type `STRING` is used and not populated for `BOOLEAN` and `NUMERIC` types.

enabled_value

object

Value of the feature when it is enabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

disabled_value

object

Value of the feature when it is disabled. The value can be Boolean, Numeric, String - TEXT, String - JSON, String - YAML value as per the `type` and `format` attributes.

enabled

boolean

The state of the feature flag.

rollout_percentage

integer

Rollout percentage associated with feature flag. Supported only for Lite and Enterprise plans.

rollout_type

string

The rollout strategy type for the feature flag. `MANUAL` is the default. `PROGRESSIVE` enables automatic phase-based rollout. `GUARDED` enables automatic phase-based rollout that is monitored against the configured metrics.

rollout_configuration

RolloutConfiguration

Configuration that controls the rollout behaviour for a Progressive or Guarded rollout type.

tags

string

Tags associated with the feature, allowed special characters are [_. ,-:]

segment_rules

array

Specify the targeting rules that is used to set different feature flag values for different segments.

segment_exists

boolean

Denotes if the targeting rules are specified for the feature flag.

segment_count

integer

The number of targeting rules (segment_rules) configured for the feature flag.

rollout_rule

RolloutRule

Identifies which rule of the feature flag is currently under a Progressive rollout. Only one rule among set-of-rules can be under rollout at a time.

collections

array

List of collection id representing the collections that are associated with the specified feature flag.

created_time

string

Creation time of the feature flag.

updated_time

string

Last modified time of the feature flag data.

evaluation_time

string

The last occurrence of the feature flag value evaluation.

href

string

Feature flag URL

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

202 - Accepted. Workflow approval initiated for stopping the feature rollout operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

400 - Bad request.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the feature id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Feature stop rollout operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

Create Feature Rule

POST /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/rules

Create a rule for feature flag

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features-rules.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.features-rules.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

Query Parameters

Response

201 - Successfully created the feature rule.

rules

array

The list of targeted segments.

value

object

Value to be used for evaluation for this rule. The value can be Boolean, SecretRef, String - TEXT , String - JSON , String - YAML or a Numeric value as per the `type` and `format` attributes.

rule_id

string

Rule id is an identifier used for identifying the rule

rule_name

string

Name assigned to a particular rule.

rollout_percentage

integer

Rollout percentage associated with feature flag. Supported only for Lite and Enterprise plans.

rollout_type

string

The rollout strategy type for the feature flag. `MANUAL` is the default. `PROGRESSIVE` enables automatic phase-based rollout. `GUARDED` enables automatic phase-based rollout that is monitored against the configured metrics.

rollout_configuration

RolloutConfiguration

Configuration that controls the rollout behaviour for a Progressive or Guarded rollout type.

order

integer

Order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.

href

string

Feature flag rule URL

202 - Accepted. Workflow approval initiated for the feature rule create operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

400 - Bad request. . Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Feature rule create operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get All rules for feature

GET /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/rules

Get all the rules for a feature flag in the specified environment.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features-rules.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.features-rules.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

Query Parameters

Response

200 - Successfully fetched the targeted rules.

segment_rules

array

Array of Segment Rules

limit

integer

The number of records that are retrieved in a list.

offset

integer

The number of records that are skipped in a list.

total_count

integer

The total number of records.

first

PaginatedListFirst

URL to navigate to the first page of records.

previous

PaginatedListPrevious

URL to navigate to the previous list of records.

next

PaginatedListNext

URL to navigate to the next list of records.

last

PaginatedListLast

URL to navigate to the last page of records.

401 - Unauthorized

message

string

The message describing the error.

Get rule for feature by rule id

GET /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/rules/{rule_id}

Get the rule by rule id for the feature flag in the specified environment.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features-rules.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.features-rules.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

rule_id

Required *

string

rule id

Query Parameters

Response

200 - Successfully fetched the rule.

rules

array

The list of targeted segments.

value

object

Value to be used for evaluation for this rule. The value can be Boolean, SecretRef, String - TEXT , String - JSON , String - YAML or a Numeric value as per the `type` and `format` attributes.

rule_id

string

Rule id is an identifier used for identifying the rule

rule_name

string

Name assigned to a particular rule.

rollout_percentage

integer

Rollout percentage associated with feature flag. Supported only for Lite and Enterprise plans.

rollout_type

string

The rollout strategy type for the feature flag. `MANUAL` is the default. `PROGRESSIVE` enables automatic phase-based rollout. `GUARDED` enables automatic phase-based rollout that is monitored against the configured metrics.

rollout_configuration

RolloutConfiguration

Configuration that controls the rollout behaviour for a Progressive or Guarded rollout type.

order

integer

Order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.

href

string

Feature flag rule URL

401 - Unauthorized

message

string

The message describing the error.

Update Feature rule

PATCH /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/rules/{rule_id}

Update Feature rule.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features-rule.patch

Auditing

Calling this method generates the following auditing event.

  • apprapp.features-rule.patch

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

rule_id

Required *

string

rule id

Query Parameters

Response

200 - Successfully update the specified feature rule.

rules

array

The list of targeted segments.

value

object

Value to be used for evaluation for this rule. The value can be Boolean, SecretRef, String - TEXT , String - JSON , String - YAML or a Numeric value as per the `type` and `format` attributes.

rule_id

string

Rule id is an identifier used for identifying the rule

rule_name

string

Name assigned to a particular rule.

rollout_percentage

integer

Rollout percentage associated with feature flag. Supported only for Lite and Enterprise plans.

rollout_type

string

The rollout strategy type for the feature flag. `MANUAL` is the default. `PROGRESSIVE` enables automatic phase-based rollout. `GUARDED` enables automatic phase-based rollout that is monitored against the configured metrics.

rollout_configuration

RolloutConfiguration

Configuration that controls the rollout behaviour for a Progressive or Guarded rollout type.

order

integer

Order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.

href

string

Feature flag rule URL

202 - Accepted. Workflow approval initiated for the feature rule patch operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

400 - Bad request.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the feature id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict occurred

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

Delete Feature rule

DELETE /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/rules/{rule_id}

Delete a feature rule

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features-rules.delete

Auditing

Calling this method generates the following auditing event.

  • apprapp.features-rules.delete

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

rule_id

Required *

string

rule id

Query Parameters

Response

202 - Accepted. Workflow approval initiated for the feature rule delete operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

204 - Successfully deleted the specified rule.

404 - Not Found. Verify that the rule id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Feature rule delete operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

Stop Feature Rule Rollout

PATCH /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/rules/{rule_id}/rollout

Stop an in-progress rollout for a specific rule of a feature flag that is in a Progressive rollout state. The rollout for the rule is halted at the specified rollout percentage, which becomes the fixed percentage at which the rule is evaluated until the rollout is reconfigured. This operation is not applicable to rules that are in Manual rollout mode.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features-rules-rollout-action.patch

Auditing

Calling this method generates the following auditing event.

  • apprapp.features.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

rule_id

Required *

string

rule id

Query Parameters

Response

200 - Successfully stopped the in-progress rollout for specified rule.

rules

array

The list of targeted segments.

value

object

Value to be used for evaluation for this rule. The value can be Boolean, SecretRef, String - TEXT , String - JSON , String - YAML or a Numeric value as per the `type` and `format` attributes.

rule_id

string

Rule id is an identifier used for identifying the rule

rule_name

string

Name assigned to a particular rule.

rollout_percentage

integer

Rollout percentage associated with feature flag. Supported only for Lite and Enterprise plans.

rollout_type

string

The rollout strategy type for the feature flag. `MANUAL` is the default. `PROGRESSIVE` enables automatic phase-based rollout. `GUARDED` enables automatic phase-based rollout that is monitored against the configured metrics.

rollout_configuration

RolloutConfiguration

Configuration that controls the rollout behaviour for a Progressive or Guarded rollout type.

order

integer

Order of the rule, used during evaluation. The evaluation is performed in the order defined and the value associated with the first matching rule is used for evaluation.

href

string

Feature flag rule URL

202 - Accepted. Workflow approval initiated for stopping the feature rule rollout operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

400 - Bad request.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the feature id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Feature rule stop rollout operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

Update Feature rule order

PATCH /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/rules_order

Update Feature rule order.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.features-rules-order.patch

Auditing

Calling this method generates the following auditing event.

  • apprapp.features-rules-order.patch

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

Query Parameters

Response

200 - Successfully update the specified feature rule.

202 - Accepted. Workflow approval initiated for the feature rule order operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

400 - Bad request.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the feature id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Feature rule order operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

List Guarded Rollouts

GET /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/guarded-rollouts

List all the guarded rollouts for the specified feature flag in the given environment.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.rollouts.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.rollouts.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

Query Parameters

limit

integer

The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.

offset

integer

The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.

Response

200 - Successfully listed all the guarded rollouts for the feature.

guarded_rollouts

array

Array of guarded rollouts.

limit

integer

The number of records that are retrieved in a list.

offset

integer

The number of records that are skipped in a list.

total_count

integer

The total number of records.

first

PaginatedListFirst

URL to navigate to the first page of records.

previous

PaginatedListPrevious

URL to navigate to the previous list of records.

next

PaginatedListNext

URL to navigate to the next list of records.

last

PaginatedListLast

URL to navigate to the last page of records.

400 - Bad Request. The server request does not contain proper values to complete the API request.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized. The request could not be authorized.

message

string

The message describing the error.

404 - Not Found. Verify that the feature_id and environment_id are correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get Guarded Rollout

GET /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/guarded-rollouts/{rollout_id}

Get the details of a specific guarded rollout for a feature flag.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.rollouts.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.rollouts.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

rollout_id

Required *

string

Guarded rollout Id

Query Parameters

Response

200 - Successfully retrieved the guarded rollout details.

rollout_id

string

The unique identifier of the guarded rollout.

rule_id

string

The rule identifier associated with this guarded rollout.

rule

FeatureSegmentRule

start_time

string

The date and time the guarded rollout was started.

end_time

string

The date and time the guarded rollout completed. Null if still in progress.

status

string

The current status of the guarded rollout.

description

string

A human-readable description of the rollout outcome.

current_phase_index

integer

The index of the current or last active phase.

phases

array

Ordered list of rollout phases.

feature_snapshot

GuardedRolloutFeatureSnapshot

Snapshot of feature flag values at the time of the guarded rollout.

metrics

array

Metrics monitored during the guarded rollout.

400 - Bad Request. The server request does not contain proper values to complete the API request.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized. The request could not be authorized.

message

string

The message describing the error.

404 - Not Found. Verify that the rollout_id, feature_id and environment_id are correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get Guarded Rollout Metric

GET /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/features/{feature_id}/guarded-rollouts/{rollout_id}/metrics/{metric_id}

Get the metric details and statistical results for a specific metric of a guarded rollout.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.rollout-metric-timeseries.read

Auditing

Calling this method generates the following auditing event.

  • apprapp.rollout-metric-timeseries.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

feature_id

Required *

string

Feature Id

rollout_id

Required *

string

Guarded rollout Id

metric_id

Required *

string

Metric ID

Query Parameters

Response

200 - Successfully retrieved the guarded rollout metric details.

rollout_id

string

The unique identifier of the guarded rollout.

metric_id

string

The unique identifier of the metric.

status

string

The status of the guarded rollout metric.

sub_status

string

The sub-status indicating the specific state of the guarded rollout metric.

result

array

Time-series statistical results for this metric.

400 - Bad Request. The rollout_id or metric_id path parameter is empty.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized. The request could not be authorized.

message

string

The message describing the error.

404 - Not Found. Verify that the metric_id, rollout_id, feature_id and environment_id are correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get list of Properties

GET /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/properties

List all the properties in the specified environment.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.properties.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.properties.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

Query Parameters

expand

boolean

If set to `true`, returns expanded view of the resource details.

sort

string

Sort the property details based on the specified attribute. By default, items are sorted by name.

tags

string

Filter the resources to be returned based on the associated tags. Specify the parameter as a list of comma separated tags. Returns resources associated with any of the specified tags.

collections

array

Filter properties by a list of comma separated collections.

segments

array

Filter properties by a list of comma separated segments.

include

array

Include the associated collections or targeting rules details in the response.

limit

integer

The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.

offset

integer

The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.

search

string

Searches for the provided keyword and returns the appropriate row with that value. Here the search happens on the '[Name OR Tag]' of the entity

Response

200 - Successfully listed all the properties.

properties

array

Array of properties.

limit

integer

The number of records that are retrieved in a list.

offset

integer

The number of records that are skipped in a list.

total_count

integer

The total number of records.

first

PaginatedListFirst

URL to navigate to the first page of records.

previous

PaginatedListPrevious

URL to navigate to the previous list of records.

next

PaginatedListNext

URL to navigate to the next list of records.

last

PaginatedListLast

URL to navigate to the last page of records.

401 - Unauthorized

message

string

The message describing the error.

Create Property

POST /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/properties

Create a Property

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.properties.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.properties.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

Query Parameters

Response

201 - Successfully created the property.

name

string

Property name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

property_id

string

Property id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Property description

type

string

Type of the property (BOOLEAN, STRING, NUMERIC, SECRETREF). If `type` is `STRING`, then `format` attribute is required.

format

string

Format of the property (TEXT, JSON, YAML) and it is a required attribute when `type` is `STRING`. It is not required for `BOOLEAN`, `NUMERIC` or `SECRETREF` types. This attribute is populated in the response body of `POST, PUT and GET` calls if the type `STRING` is used and not populated for `BOOLEAN`, `NUMERIC` and `SECRETREF` types.

value

object

Value of the Property. The value can be Boolean, Numeric, SecretRef, String - TEXT, String - JSON, String - YAML as per the `type` and `format` attributes.

tags

string

Tags associated with the property, allowed special characters are [_. ,-:]

segment_rules

array

Specify the targeting rules that is used to set different property values for different segments.

segment_exists

boolean

Denotes if the targeting rules are specified for the property.

collections

array

List of collection id representing the collections that are associated with the specified property.

created_time

string

Creation time of the property.

updated_time

string

Last modified time of the property data.

evaluation_time

string

The last occurrence of the property value evaluation.

href

string

Property URL.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Update Property

PUT /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/properties/{property_id}

Update a Property.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.properties.update

Auditing

Calling this method generates the following auditing event.

  • apprapp.properties.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

property_id

Required *

string

Property Id

Query Parameters

Response

200 - Successfully updated the property details.

name

string

Property name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

property_id

string

Property id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Property description

type

string

Type of the property (BOOLEAN, STRING, NUMERIC, SECRETREF). If `type` is `STRING`, then `format` attribute is required.

format

string

Format of the property (TEXT, JSON, YAML) and it is a required attribute when `type` is `STRING`. It is not required for `BOOLEAN`, `NUMERIC` or `SECRETREF` types. This attribute is populated in the response body of `POST, PUT and GET` calls if the type `STRING` is used and not populated for `BOOLEAN`, `NUMERIC` and `SECRETREF` types.

value

object

Value of the Property. The value can be Boolean, Numeric, SecretRef, String - TEXT, String - JSON, String - YAML as per the `type` and `format` attributes.

tags

string

Tags associated with the property, allowed special characters are [_. ,-:]

segment_rules

array

Specify the targeting rules that is used to set different property values for different segments.

segment_exists

boolean

Denotes if the targeting rules are specified for the property.

collections

array

List of collection id representing the collections that are associated with the specified property.

created_time

string

Creation time of the property.

updated_time

string

Last modified time of the property data.

evaluation_time

string

The last occurrence of the property value evaluation.

href

string

Property URL.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

202 - Accepted. Workflow approval initiated for the property update operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the property id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Property update operation is already under workflow approval, or the update is blocked because the property's collection association is being changed from an environment that is not scoped for workflow, while another environment in the instance has an active workflow scope for this property.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Update Property values

PATCH /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/properties/{property_id}

Update the property values. This method can be executed by the `writer` role. Property value and targeting rules can be updated, however this method does not allow assigning property to a collection.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.properties.patch

Auditing

Calling this method generates the following auditing event.

  • apprapp.properties.updatevalues

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

property_id

Required *

string

Property Id

Query Parameters

Response

200 - Successfully updated the property values.

name

string

Property name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

property_id

string

Property id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Property description

type

string

Type of the property (BOOLEAN, STRING, NUMERIC, SECRETREF). If `type` is `STRING`, then `format` attribute is required.

format

string

Format of the property (TEXT, JSON, YAML) and it is a required attribute when `type` is `STRING`. It is not required for `BOOLEAN`, `NUMERIC` or `SECRETREF` types. This attribute is populated in the response body of `POST, PUT and GET` calls if the type `STRING` is used and not populated for `BOOLEAN`, `NUMERIC` and `SECRETREF` types.

value

object

Value of the Property. The value can be Boolean, Numeric, SecretRef, String - TEXT, String - JSON, String - YAML as per the `type` and `format` attributes.

tags

string

Tags associated with the property, allowed special characters are [_. ,-:]

segment_rules

array

Specify the targeting rules that is used to set different property values for different segments.

segment_exists

boolean

Denotes if the targeting rules are specified for the property.

collections

array

List of collection id representing the collections that are associated with the specified property.

created_time

string

Creation time of the property.

updated_time

string

Last modified time of the property data.

evaluation_time

string

The last occurrence of the property value evaluation.

href

string

Property URL.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

202 - Accepted. Workflow approval initiated for the property patch operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the property id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Property patch operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get Property

GET /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/properties/{property_id}

Retrieve details of a property.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.properties.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.properties.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

property_id

Required *

string

Property Id

Query Parameters

include

array

Include the associated collections or targeting rules details in the response.

Response

200 - Successfully retrieved the property details.

name

string

Property name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

property_id

string

Property id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Property description

type

string

Type of the property (BOOLEAN, STRING, NUMERIC, SECRETREF). If `type` is `STRING`, then `format` attribute is required.

format

string

Format of the property (TEXT, JSON, YAML) and it is a required attribute when `type` is `STRING`. It is not required for `BOOLEAN`, `NUMERIC` or `SECRETREF` types. This attribute is populated in the response body of `POST, PUT and GET` calls if the type `STRING` is used and not populated for `BOOLEAN`, `NUMERIC` and `SECRETREF` types.

value

object

Value of the Property. The value can be Boolean, Numeric, SecretRef, String - TEXT, String - JSON, String - YAML as per the `type` and `format` attributes.

tags

string

Tags associated with the property, allowed special characters are [_. ,-:]

segment_rules

array

Specify the targeting rules that is used to set different property values for different segments.

segment_exists

boolean

Denotes if the targeting rules are specified for the property.

collections

array

List of collection id representing the collections that are associated with the specified property.

created_time

string

Creation time of the property.

updated_time

string

Last modified time of the property data.

evaluation_time

string

The last occurrence of the property value evaluation.

href

string

Property URL.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

404 - Not Found. Verify that the property id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Delete Property

DELETE /apprapp/feature/v1/instances/{guid}/environments/{environment_id}/properties/{property_id}

Delete a Property

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.properties.delete

Auditing

Calling this method generates the following auditing event.

  • apprapp.properties.delete

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

environment_id

Required *

string

Environment Id

property_id

Required *

string

Property Id

Query Parameters

Response

202 - Accepted. Workflow approval initiated for the property delete operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

204 - Successfully deleted the specified property

404 - Not Found. Verify that the property id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Property delete operation is already under workflow approval, or the delete is blocked because the property is being deleted from an environment that is not scoped for workflow, while another environment in the instance has an active workflow scope for this property.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get list of Segments

GET /apprapp/feature/v1/instances/{guid}/segments

List all the segments

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.segments.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.segments.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

expand

boolean

If set to `true`, returns expanded view of the resource details.

sort

string

Sort the segment details based on the specified attribute. By default, items are sorted by name.

tags

string

Filter the resources to be returned based on the associated tags. Specify the parameter as a list of comma separated tags. Returns resources associated with any of the specified tags.

include

array

Segment details to include the associated rules in the response.

limit

integer

The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.

offset

integer

The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.

search

string

Searches for the provided keyword and returns the appropriate row with that value. Here the search happens on the '[Name OR Tag]' of the entity

Response

200 - Successfully listed all the segments.

segments

array

Array of Segments.

limit

integer

The number of records that are retrieved in a list.

offset

integer

The number of records that are skipped in a list.

total_count

integer

The total number of records.

first

PaginatedListFirst

URL to navigate to the first page of records.

previous

PaginatedListPrevious

URL to navigate to the previous list of records.

next

PaginatedListNext

URL to navigate to the next list of records.

last

PaginatedListLast

URL to navigate to the last page of records.

401 - Unauthorized

message

string

The message describing the error.

Create Segment

POST /apprapp/feature/v1/instances/{guid}/segments

Create a segment.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.segments.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.segments.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

201 - Successfully created the segment

name

string

Segment name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

segment_id

string

Segment id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Segment description

tags

string

Tags associated with the segments, allowed special characters are [_. ,-:]

rules

array

List of rules that determine if the entity belongs to the segment during feature / property evaluation. An entity is identified by an unique identifier and the attributes that it defines. Any feature flag and property value evaluation is performed in the context of an entity when it is targeted to segments.

created_time

string

Creation time of the segment.

updated_time

string

Last modified time of the segment data.

href

string

Segment URL.

features

array

List of Features associated with the segment.

properties

array

List of properties associated with the segment.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Update Segment

PUT /apprapp/feature/v1/instances/{guid}/segments/{segment_id}

Update the segment properties

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.segments.update

Auditing

Calling this method generates the following auditing event.

  • apprapp.segments.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

segment_id

Required *

string

Segment Id

Query Parameters

Response

200 - Successfully updated the segment details.

name

string

Segment name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

segment_id

string

Segment id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Segment description

tags

string

Tags associated with the segments, allowed special characters are [_. ,-:]

rules

array

List of rules that determine if the entity belongs to the segment during feature / property evaluation. An entity is identified by an unique identifier and the attributes that it defines. Any feature flag and property value evaluation is performed in the context of an entity when it is targeted to segments.

created_time

string

Creation time of the segment.

updated_time

string

Last modified time of the segment data.

href

string

Segment URL.

features

array

List of Features associated with the segment.

properties

array

List of properties associated with the segment.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

202 - Accepted. Workflow approval initiated for the segment update operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the segment id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Segment update operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

Get Segment

GET /apprapp/feature/v1/instances/{guid}/segments/{segment_id}

Retrieve details of a segment

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.segments.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.segments.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

segment_id

Required *

string

Segment Id

Query Parameters

include

array

Include feature and property details in the response.

Response

200 - Successfully retrieved the segment details.

name

string

Segment name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

segment_id

string

Segment id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only

description

string

Segment description

tags

string

Tags associated with the segments, allowed special characters are [_. ,-:]

rules

array

List of rules that determine if the entity belongs to the segment during feature / property evaluation. An entity is identified by an unique identifier and the attributes that it defines. Any feature flag and property value evaluation is performed in the context of an entity when it is targeted to segments.

created_time

string

Creation time of the segment.

updated_time

string

Last modified time of the segment data.

href

string

Segment URL.

features

array

List of Features associated with the segment.

properties

array

List of properties associated with the segment.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

404 - Not Found. Verify that the segment id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Delete Segment

DELETE /apprapp/feature/v1/instances/{guid}/segments/{segment_id}

Delete a segment

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.segments.delete

Auditing

Calling this method generates the following auditing event.

  • apprapp.segments.delete

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

segment_id

Required *

string

Segment Id

Query Parameters

Response

202 - Accepted. Workflow approval initiated for the segment delete operation.

message

string

Message describing the workflow approval initiation. Message varies based on resource type and operation.

workflow_approval

WorkflowApprovalDetails

Details of the workflow approval.

204 - Successfully deleted the specified segment.

404 - Not Found. Verify that the segment id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. Segment delete operation is already under workflow approval.

message

string

Message describing the conflict. Format varies by resource type and operation.

workflow_approval

WorkflowApprovalInfo

Workflow approval information attached to a resource when it's under approval. This field is only present when workflow is enabled and the resource has an active change request.

Get list of Git configs

GET /apprapp/feature/v1/instances/{guid}/gitconfigs

List all the Git configs

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.gitconfigs.view

Auditing

Calling this method generates the following auditing event.

  • apprapp.snapshots.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

sort

string

Sort the git configurations details based on the specified attribute. By default, items are sorted by name.

collection_id

string

Filters the response based on the specified collection_id.

environment_id

string

Filters the response based on the specified environment_id.

limit

integer

The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.

offset

integer

The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.

search

string

Searches for the provided keyword and returns the appropriate row with that value. Here the search happens on the '[Name]' of the entity

Response

200 - Successfully listed all the git configurations.

git_config

array

Array of Git Configs.

limit

integer

The number of records that are retrieved in a list.

offset

integer

The number of records that are skipped in a list.

total_count

integer

The total number of records.

first

PaginatedListFirst

URL to navigate to the first page of records.

previous

PaginatedListPrevious

URL to navigate to the previous list of records.

next

PaginatedListNext

URL to navigate to the next list of records.

last

PaginatedListLast

URL to navigate to the last page of records.

401 - Unauthorized

message

string

The message describing the error.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Create Git config

POST /apprapp/feature/v1/instances/{guid}/gitconfigs

Create a Git config.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.gitconfigs.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.snapshots.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

201 - Successfully created the gitconfig

git_config_name

string

Git config name.

git_config_id

string

Git config Id.

collection_id

string

Collection Id.

environment_id

string

Environment Id.

git_url

string

Git url which will be used to connect to the github account.

git_branch

string

Branch name to which you need to write or update the configuration.

git_file_path

string

Git file path, this is a path where your configuration file will be written.

created_time

string

Creation time of the git config.

updated_time

string

Last modified time of the git config data.

href

string

Git config URL.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Update Git Config

PUT /apprapp/feature/v1/instances/{guid}/gitconfigs/{git_config_id}

Update the gitconfig properties

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.gitconfigs.update

Auditing

Calling this method generates the following auditing event.

  • apprapp.snapshots.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

git_config_id

Required *

string

Git Config Id

Query Parameters

Response

200 - Successfully updated the gitconfig details.

git_config_name

string

Git config name.

git_config_id

string

Git config id.

collection

GitConfigCollection

Details of the collection.

environment

GitConfigEnvironment

Details of the environment.

git_url

string

Git url which will be used to connect to the github account.

git_branch

string

Branch name to which you need to write or update the configuration.

git_file_path

string

Git file path, this is a path where your configuration file will be written.

last_sync_time

string

Latest time when the snapshot was synced to git.

created_time

string

Creation time of the git config.

updated_time

string

Last modified time of the git config data.

href

string

Git config URL.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the git config id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get Git Config

GET /apprapp/feature/v1/instances/{guid}/gitconfigs/{git_config_id}

Retrieve details of a gitconfig

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.gitconfigs.view

Auditing

Calling this method generates the following auditing event.

  • apprapp.snapshots.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

git_config_id

Required *

string

Git Config Id

Query Parameters

Response

200 - Successfully retrieved the gitconfig details.

git_config_name

string

Git config name.

git_config_id

string

Git config id.

collection

GitConfigCollection

Details of the collection.

environment

GitConfigEnvironment

Details of the environment.

git_url

string

Git url which will be used to connect to the github account.

git_branch

string

Branch name to which you need to write or update the configuration.

git_file_path

string

Git file path, this is a path where your configuration file will be written.

last_sync_time

string

Latest time when the snapshot was synced to git.

created_time

string

Creation time of the git config.

updated_time

string

Last modified time of the git config data.

href

string

Git config URL.

404 - Not Found. Verify that the gitconfig id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Delete Git Config

DELETE /apprapp/feature/v1/instances/{guid}/gitconfigs/{git_config_id}

Delete a gitconfig

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.gitconfigs.delete

Auditing

Calling this method generates the following auditing event.

  • apprapp.snapshots.delete

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

git_config_id

Required *

string

Git Config Id

Query Parameters

Response

204 - Successfully deleted the specified gitconfig.

404 - Not Found. Verify that the gitconfig id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Promote configuration

PUT /apprapp/feature/v1/instances/{guid}/gitconfigs/{git_config_id}/promote

Promote configuration, this api will write or update your chosen configuration to the GitHub based on the git url, file path and branch data. In simple words this api will create or updates the bootstrap json file

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.gitconfigs.promote

Auditing

Calling this method generates the following auditing event.

  • apprapp.snapshots.promote

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

git_config_id

Required *

string

Git Config Id

Query Parameters

Response

200 - Successfully written the configuration details.

git_commit_id

string

Git commit id will be given as part of the response upon successful git operation

git_commit_message

string

Git commit message

last_sync_time

string

Latest time when the snapshot was synced to git.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the git config id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Restore configuration

PUT /apprapp/feature/v1/instances/{guid}/gitconfigs/{git_config_id}/restore

Restore configuration, this api will write or update your chosen configuration from the GitHub to App configuration instance. The api will read the contents in the json file that was created using promote API and recreate or updates the App configuration instance with the file contents like properties, features and segments.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.gitconfigs.restore

Auditing

Calling this method generates the following auditing event.

  • apprapp.snapshots.restore

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

git_config_id

Required *

string

Git Config Id

Query Parameters

Response

200 - Successfully updated the configuration details.

environments

array

The environments array will contain the environment data and it will also contains properties array and features array that belongs to that environment.

segments

array

Segments that belongs to the features or properties

400 - Bad request. Verify that the information in the request is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the git config id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get list of integrations

GET /apprapp/feature/v1/instances/{guid}/integrations

List all the integrations.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.integrations.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.integrations.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

expand

boolean

If set to `true`, returns expanded view of the resource details.

limit

integer

The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.

offset

integer

The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.

Response

200 - Successfully listed the integrations.

integrations

array

Array of integrations.

limit

integer

The number of records that are retrieved in a list.

offset

integer

The number of records that are skipped in a list.

total_count

integer

The total number of records.

first

PaginatedListFirst

URL to navigate to the first page of records.

previous

PaginatedListPrevious

URL to navigate to the previous list of records.

next

PaginatedListNext

URL to navigate to the next list of records.

last

PaginatedListLast

URL to navigate to the last page of records.

401 - Unauthorized

message

string

The message describing the error.

Create integration

POST /apprapp/feature/v1/instances/{guid}/integrations

Create an integration with App Configuration service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.integrations.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.integrations.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

201 - Successfully created the integration

integration_id

string

Integration id.

integration_type

string

Integration type.

metadata

object

created_time

string

Creation time of the integration.

updated_time

string

Last updated time of the integration.

href

string

Integration URL

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized

message

string

The message describing the error.

403 - Forbidden

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get integration

GET /apprapp/feature/v1/instances/{guid}/integrations/{integration_id}

Retrieve the details of the integration

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.integrations.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.integrations.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

integration_id

Required *

string

Integration Id of the integration

Query Parameters

Response

200 - Successfully retrived the integration details

integration_id

string

Integration id.

integration_type

string

Integration type.

metadata

object

created_time

string

Creation time of the integration.

updated_time

string

Last updated time of the integration.

href

string

Integration URL

404 - Not Found. Verify that the integration id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Delete integration

DELETE /apprapp/feature/v1/instances/{guid}/integrations/{integration_id}

Delete an integration

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.integrations.delete

Auditing

Calling this method generates the following auditing event.

  • apprapp.integrations.delete

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

integration_id

Required *

string

Integration Id of the integration

Query Parameters

Response

204 - Successfully deleted the integration.

404 - Not Found. Verify that the integration id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get list of Origin Configs

GET /apprapp/feature/v1/instances/{guid}/originconfigs

List all the Origin Configs

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.originconfigs.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.originconfigs.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

200 - Successfully listed all the origin configuration.

allowed_origins

array

List of allowed origins. Specify the parameter as a list of comma separated origins.

created_time

string

Creation time of the origin configs.

updated_time

string

Last modified time of the origin configs.

href

string

Origin Config URL.

401 - Unauthorized

message

string

The message describing the error.

Update Origin Configs

PUT /apprapp/feature/v1/instances/{guid}/originconfigs

Update the Origin Configs

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.originconfigs.update

Auditing

Calling this method generates the following auditing event.

  • apprapp.originconfigs.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

200 - Successfully updated the origin configs details.

allowed_origins

array

List of allowed origins. Specify the parameter as a list of comma separated origins.

created_time

string

Creation time of the origin configs.

updated_time

string

Last modified time of the origin configs.

href

string

Origin Config URL.

404 - Not Found. Verify that the instance id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

List Workflow Config

GET /apprapp/feature/v1/instances/{guid}/workflow/configs

List workflow configs

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.workflow-configs.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.workflow-configs.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

sort

string

Sort the workflow config details based on the specified attribute. By default, items are sorted by name.

search

string

Searches for the provided keyword and returns the appropriate row with that value. Here the search happens on the '[Name]' of the entity

limit

integer

The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.

offset

integer

The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.

Response

200 - Successfully listed workflow configurations.

workflow_configs

array

Array of workflow configuration objects.

limit

integer

The number of records that are retrieved in a list.

offset

integer

The number of records that are skipped in a list.

total_count

integer

The total number of records.

first

PaginatedListFirst

URL to navigate to the first page of records.

previous

PaginatedListPrevious

URL to navigate to the previous list of records.

next

PaginatedListNext

URL to navigate to the next list of records.

last

PaginatedListLast

URL to navigate to the last page of records.

401 - Unauthorized

message

string

The message describing the error.

403 - Forbidden Request - Requested feature is not supported for instance type 'lite' / 'standard'

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Create Approval Workflow config

POST /apprapp/feature/v1/instances/{guid}/workflow/configs

Create a Approval Workflow.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.workflow-configs.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.workflow-configs.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

201 - Successfully created the workflow configuration

name

string

Name of the workflow configuration.

workflow_id

string

Unique identifier for the workflow configuration.

enabled

boolean

Whether the workflow is enabled.

provider

WorkflowProvider

Provider configuration for a workflow.

scope

WorkflowScope

Scope configuration for the workflow. At least one of collections, segments, or environments must be specified.

created_time

string

Timestamp when the workflow was created.

updated_time

string

Timestamp when the workflow was last updated.

href

string

URL to access this workflow configuration.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized

message

string

The message describing the error.

403 - Forbidden Request - Requested feature is not supported for instance type 'lite' / 'standard'

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

get single Approval Workflow Config

GET /apprapp/feature/v1/instances/{guid}/workflow/configs/{workflow_config_id}

get single approval workflow configs

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.workflow-configs.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.workflow-configs.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

workflow_config_id

Required *

string

id of workflow configuration

Query Parameters

Response

200 - Successfully fetched workflow configuration.

name

string

Name of the workflow configuration.

workflow_id

string

Unique identifier for the workflow configuration.

enabled

boolean

Whether the workflow is enabled.

provider

WorkflowProvider

Provider configuration for a workflow.

scope

WorkflowScope

Scope configuration for the workflow. At least one of collections, segments, or environments must be specified.

created_time

string

Timestamp when the workflow was created.

updated_time

string

Timestamp when the workflow was last updated.

href

string

URL to access this workflow configuration.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized

message

string

The message describing the error.

403 - Forbidden Request - Requested feature is not supported for instance type 'lite' / 'standard'

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the workflow_config_id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Update Approval Workflow config

PUT /apprapp/feature/v1/instances/{guid}/workflow/configs/{workflow_config_id}

Update a Approval Workflow.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.workflow-configs.update

Auditing

Calling this method generates the following auditing event.

  • apprapp.workflow-configs.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

workflow_config_id

Required *

string

id of workflow configuration

Query Parameters

Response

200 - Successfully updated the workflow configuration

name

string

Name of the workflow configuration.

workflow_id

string

Unique identifier for the workflow configuration.

enabled

boolean

Whether the workflow is enabled.

provider

WorkflowProvider

Provider configuration for a workflow.

scope

WorkflowScope

Scope configuration for the workflow. At least one of collections, segments, or environments must be specified.

created_time

string

Timestamp when the workflow was created.

updated_time

string

Timestamp when the workflow was last updated.

href

string

URL to access this workflow configuration.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

403 - Forbidden Request - Requested feature is not supported for instance type 'lite' / 'standard'

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the workflow_config_id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Forbidden Request - Requested feature is not supported for instance type 'lite' / 'standard'

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Delete Approval Workflow config

DELETE /apprapp/feature/v1/instances/{guid}/workflow/configs/{workflow_config_id}

Delete a Approval Workflow config

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.workflow-configs.delete

Auditing

Calling this method generates the following auditing event.

  • apprapp.workflow-configs.delete

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

workflow_config_id

Required *

string

id of workflow configuration

Query Parameters

Response

204 - Successfully deleted environment specific workflow config.

401 - Unauthorized

message

string

The message describing the error.

403 - Forbidden Request - Requested feature is not supported for instance type 'lite' / 'standard'

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the workflow_config_id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Toggle Approval Workflow config

PUT /apprapp/feature/v1/instances/{guid}/workflow/configs/{workflow_config_id}/toggle

Toggle a Approval Workflow.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.workflow-configs.toggle

Auditing

Calling this method generates the following auditing event.

  • apprapp.workflow-configs.toggle

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

workflow_config_id

Required *

string

id of workflow configuration

Query Parameters

Response

200 - Successfully toggled approval workflow

name

string

Name of the workflow configuration.

workflow_id

string

Unique identifier for the workflow configuration.

enabled

boolean

Whether the workflow is enabled.

provider

WorkflowProvider

Provider configuration for a workflow.

scope

WorkflowScope

Scope configuration for the workflow. At least one of collections, segments, or environments must be specified.

created_time

string

Timestamp when the workflow was created.

updated_time

string

Timestamp when the workflow was last updated.

href

string

URL to access this workflow configuration.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized

message

string

The message describing the error.

403 - Forbidden Request - Requested feature is not supported for instance type 'lite' / 'standard'

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the workflow_config_id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Test an Approval Workflow config

POST /apprapp/feature/v1/instances/{guid}/workflow/configs/{workflow_config_id}/test

Test a Workflow.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.workflow-configs.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.workflow-configs.create

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

workflow_config_id

Required *

string

id of workflow configuration

Query Parameters

Response

200 - Successfully tested workflow configuration

message

string

Descriptive message about the validation result. Contains success confirmation or detailed error information if validation failed.

success

boolean

Indicates whether the workflow provider validation was successful. Returns true if the connection to ServiceNow was established and credentials are valid, false otherwise.

401 - Unauthorized

message

string

The message describing the error.

403 - Forbidden Request - Requested feature is not supported for instance type 'lite' / 'standard'

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the workflow_config_id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Import instance configuration

POST /apprapp/feature/v1/instances/{guid}/config

Import configuration to the instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config.import

Auditing

Calling this method generates the following auditing event.

  • apprapp.config.import

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

clean

string

Full instance import requires query parameter `clean=true` to perform wiping of the existing data.

Response

202 - Import request accepted for asynchronous processing

message

string

The message describing the request status.

referenceId

string

Reference id to check status of import/export operation.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized

message

string

The message describing the error.

403 - Forbidden Request - Instance is not empty. Send clean=true query param if you want to override the current instance configuration

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Export instance configuration

GET /apprapp/feature/v1/instances/{guid}/config

Get the instance configuration.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config.export

Auditing

Calling this method generates the following auditing event.

  • apprapp.config.export

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

200 - Successfully listed configuration for the instance.

environments

array

Array will contain features and properties per environment

collections

array

Array will contain collections details

segments

array

Array will contain segments details

202 - Export request accepted for asynchronous processing

message

string

The message describing the request status.

referenceId

string

Reference id to check status of import/export operation.

401 - Unauthorized

message

string

The message describing the error.

409 - Export process already in progress for the given instance_id

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Promote or Restore snapshot configuration

PUT /apprapp/feature/v1/instances/{guid}/config

This api will either promote or restore your chosen configuration from or to the GitHub based on the git url, file path and branch data.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config.action

Auditing

Calling this method generates the following auditing event.

  • apprapp.config.action

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

git_config_id

Required *

string

Git Config Id.

action

Required *

Promote configuration to Git or Restore configuration from Git.

Response

200 - Successfully completed the operation.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. Verify that the git config id is correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

501 - Not Implemented.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get status of instance configuration import/export

GET /apprapp/feature/v1/instances/{guid}/config/status/{reference_id}

Get the status of instance configuration operation

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config.status

Auditing

Calling this method generates the following auditing event.

  • apprapp.config.status

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

reference_id

Required *

string

AppConfiguration config status reference id

Query Parameters

action

Required *

The type of config status that is to be fetched.

Response

200 - Successfully listed status of instance configuration operation.

action

string

Type of instance config operation(import/export)

errors

object

Accumulated errors during the operation

message

string

Message describing operation status

status

string

Status of the operation

last_updated

string

Latest time at which import/export status updated

triggered_time

string

Time when import/export operation triggered

401 - Unauthorized

message

string

The message describing the error.

404 - Not Found

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get list of Metrics

GET /apprapp/feature/v1/instances/{guid}/metrics

List all the metrics in the App Configuration service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.metrics.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.metrics.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

expand

boolean

If set to `true`, returns expanded view of the resource details.

include

array

Include experiments and/or guarded rollouts details in the response.

search

string

Searches for the provided keyword and returns the appropriate row with that value. Here the search happens on the '[Name]' of the entity

limit

integer

The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.

offset

integer

The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.

sort

string

Sort the metric details based on the specified attribute. By default, items are sorted by favorite & name.

Response

200 - Successfully listed the metrics.

metrics

array

Array of metrics.

limit

integer

The number of records that are retrieved in a list.

offset

integer

The number of records that are skipped in a list.

total_count

integer

The total number of records.

first

PaginatedListFirst

URL to navigate to the first page of records.

previous

PaginatedListPrevious

URL to navigate to the previous list of records.

next

PaginatedListNext

URL to navigate to the next list of records.

last

PaginatedListLast

URL to navigate to the last page of records.

401 - Unauthorized. The request could not be authorized.

message

string

The message describing the error.

Create Metric

POST /apprapp/feature/v1/instances/{guid}/metrics

Create a metric in the App Configuration service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.metrics.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.metrics.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

201 - Successfully created the metric.

metric_id

string

Metric ID.

metric_name

string

Metric name.

description

string

Metric description.

event_type

string

The type of event.

metric_type

string

The type of metric.

event_key

string

The event key used to record metric data.

direction

string

Whether a higher or lower metric value indicates improvement.

is_favorite

boolean

Whether the metric is marked as favorite.

created_time

string

Creation time of the metric.

updated_time

string

Last modified time of the metric.

href

string

The URL of the metric.

400 - Bad Request. Missing or invalid field, invalid JSON, or is_favorite supplied.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized. The request could not be authorized.

message

string

The message describing the error.

403 - Forbidden. The plan's metrics resource limit is reached.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found. The instance is not found.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

409 - Conflict. A metric with this metric_id already exists.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get Metric

GET /apprapp/feature/v1/instances/{guid}/metrics/{metric_id}

Get the details of a specific metric.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.metrics.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.metrics.read

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

metric_id

Required *

string

Metric ID

Query Parameters

include

array

Include experiments and/or guarded rollouts details in the response.

Response

200 - Successfully retrieved the metric details.

metric_id

string

Metric ID.

metric_name

string

Metric name.

description

string

Metric description.

event_type

string

The type of event.

metric_type

string

The type of metric.

event_key

string

The event key used to record metric data.

direction

string

Whether a higher or lower metric value indicates improvement.

is_favorite

boolean

Whether the metric is marked as favorite.

experiments

array

List of experiments that use this metric. Appears only when `include=experiments` is specified.

experiments_count

integer

Total count of experiments that use this metric. Appears only when `include=experiments` is specified.

guarded_rollouts

array

List of guarded rollouts that use this metric. Appears only when `include=guarded_rollouts` is specified.

guarded_rollouts_count

integer

Total count of guarded rollouts that use this metric. Appears only when `include=guarded_rollouts` is specified.

created_time

string

Creation time of the metric.

updated_time

string

Last modified time of the metric.

last_event_received_time

string

The time the most recent event was received for this metric. Appears only when an event has been recorded.

href

string

The URL of the metric.

401 - Unauthorized. The request could not be authorized.

message

string

The message describing the error.

404 - Not Found. The metric or instance is not found.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Update Metric

PUT /apprapp/feature/v1/instances/{guid}/metrics/{metric_id}

Update a metric.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.metrics.update

Auditing

Calling this method generates the following auditing event.

  • apprapp.metrics.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

metric_id

Required *

string

Metric ID

Query Parameters

Response

200 - Successfully updated the metric.

metric_id

string

Metric ID.

metric_name

string

Metric name.

description

string

Metric description.

event_type

string

The type of event.

metric_type

string

The type of metric.

event_key

string

The event key used to record metric data.

direction

string

Whether a higher or lower metric value indicates improvement.

is_favorite

boolean

Whether the metric is marked as favorite.

created_time

string

Creation time of the metric.

updated_time

string

Last modified time of the metric.

href

string

The URL of the metric.

400 - Bad Request. Missing or invalid field, or metric cannot be updated due to active experiments or guarded rollouts.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized. The request could not be authorized.

message

string

The message describing the error.

404 - Not Found. The metric or instance is not found.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Delete Metric

DELETE /apprapp/feature/v1/instances/{guid}/metrics/{metric_id}

Delete a metric from the App Configuration service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.metrics.delete

Auditing

Calling this method generates the following auditing event.

  • apprapp.metrics.delete

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

metric_id

Required *

string

Metric ID

Query Parameters

Response

204 - Successfully deleted the metric.

400 - Bad Request. The metric is currently used by a running experiment.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized. The request could not be authorized.

message

string

The message describing the error.

404 - Not Found. The metric or instance is not found.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Set Metric Favorite Status

PATCH /apprapp/feature/v1/instances/{guid}/metrics/{metric_id}/favorite

Mark or unmark a metric as favorite.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.metrics.patch

Auditing

Calling this method generates the following auditing event.

  • apprapp.metrics.patch

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

metric_id

Required *

string

Metric ID

Query Parameters

Response

200 - Successfully updated the metric favorite status.

metric_id

string

Metric ID.

metric_name

string

Metric name.

description

string

Metric description.

event_type

string

The type of event.

metric_type

string

The type of metric.

event_key

string

The event key used to record metric data.

direction

string

Whether a higher or lower metric value indicates improvement.

is_favorite

boolean

Whether the metric is marked as favorite.

created_time

string

Creation time of the metric.

updated_time

string

Last modified time of the metric.

href

string

The URL of the metric.

400 - Bad Request. Missing is_favorite field or invalid JSON.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized. The request could not be authorized.

message

string

The message describing the error.

404 - Not Found. The metric or instance is not found.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

List configurations

GET /apprapp/config_aggregator/v1/instances/{guid}/configs

Retrieve the list of resource configurations collected as part of Configuration Aggregator.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator.query

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator.query

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

config_type

string

The type of resource configuration that are to be retrieved.

service_name

string

The name of the IBM Cloud service for which resources are to be retrieved.

resource_group_id

string

The resource group id of the resources.

location

string

The location or region in which the resources are created.

resource_crn

string

The crn of the resource.

limit

integer

The number of resources to return on the page.

start

string

The starting resource for the page, obtained from a previous list request. If unspecified, the first resource will be returned.

sub_account

string

Filter the resource configurations from the specified sub-account in an enterprise hierarchy.

access_tags

string

Filter the resource configurations attached with the specified access tags.

user_tags

string

Filter the resource configurations attached with the specified user tags.

service_tags

string

Filter the resource configurations attached with the specified service tags.

Response

200 - Successfully retrieved the resource configurations.

total_count

integer

The total number of resources present.

limit

integer

The maximum number of resources retrieved per page.

first

PaginatedFirst

The reference to the first page of entries.

prev

PaginatedPrevious

The reference to the previous page of entries. If absent, this is the first page

next

PaginatedNext

The reference to the next page of entries. If absent, this is the last page

configs

Configs

Array of resource configurations.

400 - resource_collection_disabled_error

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

401 - Unauthorized

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

404 - Not Found

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

List configurations for set of crn(s)

POST /apprapp/config_aggregator/v1/instances/{guid}/configs/query

List the resource configurations (requested for set of CRNs) collected as part of Configuration Aggregator.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator.filter

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator.filter

Request

Request Body

ListConfigsQueryRequest

configs

Required *

array

The List of resources requested as part of List Configs Query API.

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

limit

integer

The number of resources to return on the page.

start

string

The starting resource for the page, obtained from a previous list request. If unspecified, the first resource will be returned.

Response

200 - Successfully retrieved the resource configurations for requested CRN(s) and reported errors for CRN(s) not found.

total_count

integer

The total number of resources present.

limit

integer

The maximum number of resources retrieved per page.

first

PaginatedFirst

The reference to the first page of entries.

prev

PaginatedPrevious

The reference to the previous page of entries. If absent, this is the first page

next

PaginatedNext

The reference to the next page of entries. If absent, this is the last page

configs

Configs

Array of resource configurations.

errors

Errors

Array of errors for not found resource configurations.

400 - resource_collection_disabled_error

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

401 - Unauthorized

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

404 - Not Found

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

Update settings

PUT /apprapp/config_aggregator/v1/instances/{guid}/settings

Update resource aggregation settings.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator-settings.update

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator-settings.update

Request

Request Body

UpdateSettings

The request payload to update settings.

resource_collection_enabled

boolean

The field denoting if the resource collection is enabled

realtime_config_enabled

boolean

The field denoting if the realtime collection is enabled

trusted_profile_id

string

The trusted profile id that provides Reader access to the App Configuration instance to collect resource metadata.

regions

array

The list of regions across which the resource collection is enabled.

additional_scope

array

The additional scope that enables resource collection for Enterprise acccounts.

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

200 - Successfully updated the Configuration Aggregator settings.

resource_collection_enabled

boolean

The field to check if the resource collection is enabled

realtime_config_enabled

boolean

The field to check if the resource collection is enabled

trusted_profile_id

string

The trusted profile ID that provides access to App Configuration instance to retrieve resource metadata.

last_updated

string

The last time the settings was last updated.

regions

array

Regions for which the resource collection is enabled.

additional_scope

array

The additional scope that enables resource collection for Enterprise acccounts.

400 - Bad Request

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

401 - Unauthorized

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

404 - Not Found

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

Get settings

GET /apprapp/config_aggregator/v1/instances/{guid}/settings

Retrieve settings for resource collection in Configuration Aggregator.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator-settings.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator-settings.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

200 - Successfully retrieved the settings of Configuration Aggregator.

resource_collection_enabled

boolean

The field to check if the resource collection is enabled

realtime_config_enabled

boolean

The field to check if the resource collection is enabled

trusted_profile_id

string

The trusted profile ID that provides access to App Configuration instance to retrieve resource metadata.

last_updated

string

The last time the settings was last updated.

regions

array

Regions for which the resource collection is enabled.

additional_scope

array

The additional scope that enables resource collection for Enterprise acccounts.

401 - Unauthorized

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

404 - Not Found

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

Get resource collection status

GET /apprapp/config_aggregator/v1/instances/{guid}/resource_collection_status

Retrieve the status of the resource collection as part of Configuration Aggregator.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator-status.list

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator-status.list

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

200 - Successfully retrieved the configuration aggregator status.

last_config_refresh_time

string

The timestamp at which the configuration was last refreshed.

latest_reconciliation_mode

string

Latest collection mode.

reconciliation_modes

object

Per reconciliation mode details. Only the modes that have run are present; the object is empty if no reconciliation has completed yet.

status

string

Status of the resource collection.

401 - Unauthorized

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

404 - Not Found

errors

array

The array with at least one error.

trace

string

The lowercase UUID uniquely that identifies the request.

status_code

integer

the status code of the response

Manual reconcile

POST /apprapp/config_aggregator/v1/instances/{guid}/reconcile

Manually trigger the recording of the Configuration items as part of Configuration Aggregator.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator.reconcile

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator.reconcile

Request

Request Body

ReconcileRequest

resource_crns

Required *

array

Specific resource CRNs to reconcile (maximum ~20). The resource CRNs should be the instance CRN of the service. Subresource CRNs (such as a Secrets Manager secret) are not supported.

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

202 - Accepted the request for triggering recording of Configuration items manually.

reconcile_id

string

Unique identifier for the reconciliation request.

href

string

URL to check the status of the reconciliation request.

401 - Unauthorized

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Not Found

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

429 - Too Many Requests

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Query configs

POST /apprapp/config_aggregator/v1/instances/{guid}/nlp_resource_query/query

Retrieve config details based on the intent from user's query and generate response using large language model.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator-nlp.query

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator-nlp.query

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

limit

integer

The number of resources to return on the page.

start

string

The starting resource for the page, obtained from a previous list request. If unspecified, the first resource will be returned.

Response

200 - Successfully retrieved the resource configurations.

resource_query

string

The natural language based resource query string.

response_summary

string

The response message generated for the resource query.

total_count

integer

The total number of resources present.

limit

integer

The maximum number of resources retrieved per page.

first

PaginatedFirst

The reference to the first page of entries.

prev

PaginatedPrevious

The reference to the previous page of entries. If absent, this is the first page

next

PaginatedNext

The reference to the next page of entries. If absent, this is the last page

configs

array

The resource details retrieved as a response to the query.

remarks

string

Any additional data related to the response.

llm_tokens_used

integer

The total number of LLM tokens used during the query.

response_score

number

A score between 0.0 and 1.0 indicating the system's confidence in the accuracy or completeness of the resource.

history_id

string

A unique identifier.

401 - Unauthorized

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

List chat history

GET /apprapp/config_aggregator/v1/instances/{guid}/nlp_resource_query/history

Retrieve the chat history for the NLP resource query.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator-nlp-history.query

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator-nlp-history.query

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

200 - Successfully retrieved the chat history.

total_count

integer

The total number of chat history entries present.

chats

array

The list of chat history entries.

401 - Unauthorized

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Create chat history

POST /apprapp/config_aggregator/v1/instances/{guid}/nlp_resource_query/history

Create a new chat history entry for the NLP resource query.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator-nlp-history.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator-nlp-history.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

201 - Successfully created the chat history.

id

string

A unique identifier.

title

string

Title for Chat

query

string

The natural language based resource query string.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Update chat history

PUT /apprapp/config_aggregator/v1/instances/{guid}/nlp_resource_query/history

Update or rename an existing chat history entry for the NLP resource query.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator-nlp-history.update

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator-nlp-history.update

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

200 - Successfully updated the chat history.

id

string

A unique identifier.

title

string

Title for Chat

query

string

The natural language based resource query string.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

List jobs

GET /apprapp/config_aggregator/v1/instances/{guid}/nlp_resource_query/jobs

Get all jobs for NLP resource query.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator-nlp-jobs.query

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator-nlp-jobs.query

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

sub_account

string

Filter jobs by the sub-account in an enterprise hierarchy.

status

string

Filter jobs by their current status.

limit

integer

The number of records to retrieve. By default, the list operation return the first 10 records. To retrieve different set of records, use `limit` with `offset` to page through the available records.

offset

integer

The number of records to skip. By specifying `offset`, you retrieve a subset of items that starts with the `offset` value. Use `offset` with `limit` to page through the available records.

Response

200 - Successfully retrieved the jobs.

total_count

integer

The total number of job entries present.

jobs

array

The list of job entries.

401 - Unauthorized

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Create job

POST /apprapp/config_aggregator/v1/instances/{guid}/nlp_resource_query/jobs

Create a new job to process NLP resource query asynchronously.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator-nlp-jobs.create

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator-nlp-jobs.create

Request

Request Body

Path Parameters

guid

Required *

string

AppConfiguration instance Id

Query Parameters

Response

201 - Successfully created the job.

job_id

string

A unique identifier.

sub_account

string

Filter the resource configurations from the specified sub-account in an enterprise hierarchy.

resource_query

string

The natural language based resource query string.

status

string

The current status of the job.

file_type

string

Contanis the file type for download e.g. json/csv

error_message

string

Any error message related to the response.

created_at

string

The timestamp when the job was created.

updated_at

string

The timestamp when the job was updated.

completed_at

string

The timestamp when the job was completed.

400 - Bad request. Verify that the information in the request body is complete and correct.

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

401 - Unauthorized

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Get job

GET /apprapp/config_aggregator/v1/instances/{guid}/nlp_resource_query/jobs/{job_id}

Retrieve the detail of a specific job by its ID.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator-nlp-job.query

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator-nlp-job.query

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

job_id

Required *

The unique identifier of the job.

Query Parameters

Response

200 - Successfully retrieved the job detail.

job_id

string

A unique identifier.

sub_account

string

Filter the resource configurations from the specified sub-account in an enterprise hierarchy.

resource_query

string

The natural language based resource query string.

status

string

The current status of the job.

file_type

string

Contanis the file type for download e.g. json/csv

error_message

string

Any error message related to the response.

created_at

string

The timestamp when the job was created.

updated_at

string

The timestamp when the job was updated.

completed_at

string

The timestamp when the job was completed.

401 - Unauthorized

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Job not found

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

Download job result

GET /apprapp/config_aggregator/v1/instances/{guid}/nlp_resource_query/jobs/{job_id}/result

Download the result file of a completed job.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • apprapp.config-aggregator-nlp-job-result.query

Auditing

Calling this method generates the following auditing event.

  • apprapp.config-aggregator-nlp-job-result.query

Request

Path Parameters

guid

Required *

string

AppConfiguration instance Id

job_id

Required *

The unique identifier of the job.

Query Parameters

Response

200 - Successfully retrieved the job result. Returns a binary file download. The content is a JSON array of resource objects for JSON jobs, or CSV-formatted data for CSV jobs

401 - Unauthorized

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.

404 - Job not found or result not available

code

string

The error code returned by the server.

message

string

The message describing the error.

trace

string

The unique transaction identifier of the request, which can be shared with IBM support for troubleshooting.