Skip to content

Commit

Permalink
updated cdn and app config resource
Browse files Browse the repository at this point in the history
  • Loading branch information
geethasathyamurthy authored and hkantare committed Sep 3, 2021
1 parent 3ad9ea7 commit 665fbca
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 43 deletions.
32 changes: 16 additions & 16 deletions website/docs/r/app_config_environment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ description: |-

# ibm_app_config_environment

Provides a resource for `environment`. This allows environment to be created, updated and deleted.
Create, update, or delete an environment by using IBM Cloud™ App Configuration. For more information, about App Configuration, see [getting started with App Configuration](https://cloud.ibm.com/docs/app-configuration?topic=app-configuration-getting-started).

## Example Usage
## Example usage

```hcl
```terraform
resource "ibm_app_config_environment" "app_config_environment" {
guid = "guid"
environment_id = "environment_id"
Expand All @@ -23,25 +23,25 @@ resource "ibm_app_config_environment" "app_config_environment" {
}
```

## Argument Reference
## Argument reference

The following arguments are supported:
Review the argument reference that you can specify for your resource.

- `guid` - (Required, string) guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- `name` - (Required, string) Environment name.
- `environment_id` - (Required, string) Environment id.
- `description` - (Optional, string) Environment description.
- `tags` - (Optional, string) Tags associated with the environment.
- `color_code` - (Optional, string) Color code to distinguish the environment. The Hex code for the color. For example `#FF0000` for `red`.
- `guid` - (Required, String) The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- `name` - (Required, String) The environment name.
- `environment_id` - (Required, String) The environment ID.
- `description` - (Optional, String) The environment description.
- `tags` - (Optional, String) The tags associated with an environment.
- `color_code` - (Optional, String) The color code to distinguish an environment in the Hexademical code format. For example, `#FF0000` for `red`.

## Attribute Reference
## Attribute reference

In addition to all argument references list, you can access the following attribute references after your resource is created.

- `id` - The unique identifier of the environment resource.
- `created_time` - Creation time of the environment.
- `updated_time` - Last modified time of the environment data.
- `href` - Environment URL.
- `id` - (String) The unique identifier of an environment resource.
- `created_time` - (Timestamp) the creation time of an environment.
- `updated_time` - (Timestamp) the last modified time of an environment data.
- `href` - (String) the environment URL.

## Import

Expand Down
52 changes: 26 additions & 26 deletions website/docs/r/app_config_feature.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ description: |-

# ibm_app_config_feature

Provides a resource for `feature flag`. This allows Feature flag to be created, updated and deleted.
Create, update, or delete an environment by using IBM Cloud™ App Configuration feature flag. For more information, about App Configuration feature flag, see [Feature flags](https://cloud.ibm.com/docs/app-configuration?topic=app-configuration-ac-feature-flags).

## Example Usage
## Example usage

```hcl
```terraform
resource "ibm_app_config_feature" "app_config_feature" {
guid = "guid"
name = "name"
Expand All @@ -25,37 +25,37 @@ resource "ibm_app_config_feature" "app_config_feature" {
}
```

## Argument Reference
## Argument reference

The following arguments are supported:
Review the argument reference that you can specify for your resource.

- `guid` - (Required, string) guid of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- `environment_id` - (Required, string) Environment Id.
- `name` - (Required, string) Feature name.
- `feature_id` - (Required, string) Feature id.
- `type` - (Required, string) Type of the feature (BOOLEAN, STRING, NUMERIC).
- `enabled_value` - (Required, string) Value of the feature when it is enabled. The value can be Boolean, String or a Numeric value as per the `type` attribute.
- `disabled_value` - (Required, string) Value of the feature when it is disabled. The value can be Boolean, String or a Numeric value as per the `type` attribute.
- `description` - (Optional, string) Feature description.
- `tags` - (Optional, string) Tags associated with the feature.
- `guid` - (Required, String) The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
- `environment_id` - (Required, String) The environment ID.
- `name` - (Required, String) The feature name.
- `feature_id` - (Required, String) The feature ID.
- `type` - (Required, String) The feature type. Supported values are **BOOLEAN**, **STRING**, or **NUMERIC**.
- `enabled_value` - (Required, String) The value of the feature when it is enabled. The value can be **BOOLEAN**, **STRING**, or **NUMERIC** value as per the `type` attribute.
- `disabled_value` - (Required, String) The value of the feature when it is disabled. The value can be **BOOLEAN**, **STRING**, or **NUMERIC** value as per the `type` attribute.
- `description` - (Optional, String) The feature description.
- `tags` - (Optional, String) Tags associated with the feature.
- `segment_rules` - (Optional, List) Specify the targeting rules that is used to set different feature flag values for different segments.
- `rules` - (Required, []interface{}) Rules array.
- `segments` - (Required, Array of Strings)List of segment ids that are used for targeting using the rule.
- `value` - (Required, string) Value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the `type` attribute.
- `order` - (Required, int) 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.
- `collections` - (Optional, List) List of collection id representing the collections that are associated with the specified feature flag.
- `collection_id` - (Required, string) Collection id.
- `rules` - (Required, []interface{}) The rules array.
- `segments` - (Required, Array of Strings) The list of segment IDs that are used for targeting using the rule.
- `value` - (Required, String) The value to be used for evaluation for this rule. The value can be Boolean, String or a Numeric value as per the `type` attribute.
- `order` - (Required, int) The 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.
- `collections` - (Optional, List) The list of collection ID representing the collections that are associated with the specified feature flag.
- `collection_id` - (Required, String) Collection ID.

## Attribute Reference

In addition to all argument references list, you can access the following attribute references after your resource is created.

- `id` - The unique identifier of the Feature flag resource.
- `enabled` - The state of the feature flag.
- `segment_exists` - Denotes if the targeting rules are specified for the feature flag.
- `created_time` - Creation time of the feature flag.
- `updated_time` - Last modified time of the feature flag data.
- `href` - Feature flag URL.
- `id` - (String) The unique identifier of the Feature flag resource.
- `enabled` - (String) The state of the feature flag.
- `segment_exists` - (String) Denotes if the targeting rules are specified for the feature flag.
- `created_time` - (Timestamp) The creation time of the feature flag.
- `updated_time` - (Timestamp) The last modified time of the feature flag data.
- `href` - (String) The feature flag URL.

## Import

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/cdn.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Review the argument references that you can specify for your resource.
- `host_name` - (Required, Forces new resource, String) The host name that is associated with the CDN domain mapping.
- `http_port` - (Optional, Integer) The port to be opened up. Default value is 80. This option can be set only if you use `HTTP` or `HTTPS` as the `protocol`.
- `https_port` - (Optional, Integer) The HTTPS port. Default value is 0. This option can be set only if you use `HTTP` or `HTTPS` as the `protocol`.
- `origin_address` - (Required, String) The IP address for the domain mapping.
- `origin_address` - (Required, String) The IP address or hostname for the domain mapping. If **origin_type=HOST_SERVER** provide the hostname or IP address. If **origin_type=OBJECT_STORAGE** provide your [COS endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints).
- `origin_type` - (Required, Forces new resource, String) The type of storage to use. Valid values are `HOST_SERVER` or `OBJECT_STORAGE`.
- `path` - (Optional, Forces new resource, String) The path for the CDN.
- `performance_configuration` - (Optional, String) The performance configuration. Default is `General web delivery`.
Expand Down

0 comments on commit 665fbca

Please sign in to comment.