ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getAppConfigSnapshots
Explore with Pulumi AI
Retrieve information about an existing IBM Cloud App Configuration snapshots. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. For more information, about App Configuration snapshot, see App Configuration concepts.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetAppConfigSnapshotsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var appConfigSnapshots = IbmFunctions.getAppConfigSnapshots(GetAppConfigSnapshotsArgs.builder()
.collectionId("collection_id")
.environmentId("environment_id")
.guid("guid")
.limit("limit")
.offset("offset")
.sort("sort")
.build());
}
}
variables:
appConfigSnapshots:
fn::invoke:
function: ibm:getAppConfigSnapshots
arguments:
collectionId: collection_id
environmentId: environment_id
guid: guid
limit: limit
offset: offset
sort: sort
Using getAppConfigSnapshots
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAppConfigSnapshots(args: GetAppConfigSnapshotsArgs, opts?: InvokeOptions): Promise<GetAppConfigSnapshotsResult>
function getAppConfigSnapshotsOutput(args: GetAppConfigSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetAppConfigSnapshotsResult>
def get_app_config_snapshots(collection_id: Optional[str] = None,
environment_id: Optional[str] = None,
guid: Optional[str] = None,
id: Optional[str] = None,
limit: Optional[float] = None,
offset: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetAppConfigSnapshotsResult
def get_app_config_snapshots_output(collection_id: Optional[pulumi.Input[str]] = None,
environment_id: Optional[pulumi.Input[str]] = None,
guid: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[float]] = None,
offset: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppConfigSnapshotsResult]
func GetAppConfigSnapshots(ctx *Context, args *GetAppConfigSnapshotsArgs, opts ...InvokeOption) (*GetAppConfigSnapshotsResult, error)
func GetAppConfigSnapshotsOutput(ctx *Context, args *GetAppConfigSnapshotsOutputArgs, opts ...InvokeOption) GetAppConfigSnapshotsResultOutput
> Note: This function is named GetAppConfigSnapshots
in the Go SDK.
public static class GetAppConfigSnapshots
{
public static Task<GetAppConfigSnapshotsResult> InvokeAsync(GetAppConfigSnapshotsArgs args, InvokeOptions? opts = null)
public static Output<GetAppConfigSnapshotsResult> Invoke(GetAppConfigSnapshotsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppConfigSnapshotsResult> getAppConfigSnapshots(GetAppConfigSnapshotsArgs args, InvokeOptions options)
public static Output<GetAppConfigSnapshotsResult> getAppConfigSnapshots(GetAppConfigSnapshotsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getAppConfigSnapshots:getAppConfigSnapshots
arguments:
# arguments dictionary
The following arguments are supported:
- Guid string
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- Collection
Id string - Filters the response based on the specified collection_id.
- Environment
Id string - Filters the response based on the specified environment_id.
- Id string
- Limit double
- The number of records to retrieve. By default, the list operation return the first 10 records.
- Offset double
- The number of records to skip. By specifying
offset
, you retrieve a subset of items that starts with theoffset
value.
- Guid string
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- Collection
Id string - Filters the response based on the specified collection_id.
- Environment
Id string - Filters the response based on the specified environment_id.
- Id string
- Limit float64
- The number of records to retrieve. By default, the list operation return the first 10 records.
- Offset float64
- The number of records to skip. By specifying
offset
, you retrieve a subset of items that starts with theoffset
value.
- guid String
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- collection
Id String - Filters the response based on the specified collection_id.
- environment
Id String - Filters the response based on the specified environment_id.
- id String
- limit Double
- The number of records to retrieve. By default, the list operation return the first 10 records.
- offset Double
- The number of records to skip. By specifying
offset
, you retrieve a subset of items that starts with theoffset
value.
- guid string
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- collection
Id string - Filters the response based on the specified collection_id.
- environment
Id string - Filters the response based on the specified environment_id.
- id string
- limit number
- The number of records to retrieve. By default, the list operation return the first 10 records.
- offset number
- The number of records to skip. By specifying
offset
, you retrieve a subset of items that starts with theoffset
value.
- guid str
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- collection_
id str - Filters the response based on the specified collection_id.
- environment_
id str - Filters the response based on the specified environment_id.
- id str
- limit float
- The number of records to retrieve. By default, the list operation return the first 10 records.
- offset float
- The number of records to skip. By specifying
offset
, you retrieve a subset of items that starts with theoffset
value.
- guid String
- The GUID of the App Configuration service. Get it from the service instance credentials section of the dashboard.
- collection
Id String - Filters the response based on the specified collection_id.
- environment
Id String - Filters the response based on the specified environment_id.
- id String
- limit Number
- The number of records to retrieve. By default, the list operation return the first 10 records.
- offset Number
- The number of records to skip. By specifying
offset
, you retrieve a subset of items that starts with theoffset
value.
getAppConfigSnapshots Result
The following output properties are available:
- Git
Configs List<GetApp Config Snapshots Git Config> - Array of git_configs.
- Guid string
- Id string
- Total
Count double - (Integer) Total number of records
- Collection
Id string - (String) Collection id.
- Environment
Id string - (String) Environment Id.
- Limit double
- (Integer) Number of records returned.
- Offset double
- (Integer) Skipped number of records.
- Git
Configs []GetApp Config Snapshots Git Config - Array of git_configs.
- Guid string
- Id string
- Total
Count float64 - (Integer) Total number of records
- Collection
Id string - (String) Collection id.
- Environment
Id string - (String) Environment Id.
- Limit float64
- (Integer) Number of records returned.
- Offset float64
- (Integer) Skipped number of records.
- git
Configs List<GetApp Config Snapshots Git Config> - Array of git_configs.
- guid String
- id String
- total
Count Double - (Integer) Total number of records
- collection
Id String - (String) Collection id.
- environment
Id String - (String) Environment Id.
- limit Double
- (Integer) Number of records returned.
- offset Double
- (Integer) Skipped number of records.
- git
Configs GetApp Config Snapshots Git Config[] - Array of git_configs.
- guid string
- id string
- total
Count number - (Integer) Total number of records
- collection
Id string - (String) Collection id.
- environment
Id string - (String) Environment Id.
- limit number
- (Integer) Number of records returned.
- offset number
- (Integer) Skipped number of records.
- git_
configs Sequence[GetApp Config Snapshots Git Config] - Array of git_configs.
- guid str
- id str
- total_
count float - (Integer) Total number of records
- collection_
id str - (String) Collection id.
- environment_
id str - (String) Environment Id.
- limit float
- (Integer) Number of records returned.
- offset float
- (Integer) Skipped number of records.
- git
Configs List<Property Map> - Array of git_configs.
- guid String
- id String
- total
Count Number - (Integer) Total number of records
- collection
Id String - (String) Collection id.
- environment
Id String - (String) Environment Id.
- limit Number
- (Integer) Number of records returned.
- offset Number
- (Integer) Skipped number of records.
Supporting Types
GetAppConfigSnapshotsGitConfig
- Collections
List<Get
App Config Snapshots Git Config Collection> - (Object) Collection object will be returned containing attributes collection_id, collection_name.
- Created
Time string - (Timestamp) Creation time of the git config.
- Environments
List<Get
App Config Snapshots Git Config Environment> - (Object) Environment object will be returned containing attributes environment_id, environment_name, color_code.
- Git
Branch string - (String) Branch name to which you need to write or update the configuration.
- Git
Config stringId - (String) Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
- Git
Config stringName - (String) Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
- Git
File stringPath - (String) Git file path, this is a path where your configuration file will be written. The path must contain the file name with
json
extension. - Git
Url string - (String) Git url which will be used to connect to the github account. The url must be formed in this format, https://api.github.com/repos/{owner}/{repo_name} for the personal git account.
- Href string
- (String) Git config URL.
- Last
Sync stringTime - (Timestamp) Latest time when the snapshot was synced to git.
- Updated
Time string - (Timestamp) Last modified time of the git config data.
- Collections
[]Get
App Config Snapshots Git Config Collection - (Object) Collection object will be returned containing attributes collection_id, collection_name.
- Created
Time string - (Timestamp) Creation time of the git config.
- Environments
[]Get
App Config Snapshots Git Config Environment - (Object) Environment object will be returned containing attributes environment_id, environment_name, color_code.
- Git
Branch string - (String) Branch name to which you need to write or update the configuration.
- Git
Config stringId - (String) Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
- Git
Config stringName - (String) Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
- Git
File stringPath - (String) Git file path, this is a path where your configuration file will be written. The path must contain the file name with
json
extension. - Git
Url string - (String) Git url which will be used to connect to the github account. The url must be formed in this format, https://api.github.com/repos/{owner}/{repo_name} for the personal git account.
- Href string
- (String) Git config URL.
- Last
Sync stringTime - (Timestamp) Latest time when the snapshot was synced to git.
- Updated
Time string - (Timestamp) Last modified time of the git config data.
- collections
List<Get
App Config Snapshots Git Config Collection> - (Object) Collection object will be returned containing attributes collection_id, collection_name.
- created
Time String - (Timestamp) Creation time of the git config.
- environments
List<Get
App Config Snapshots Git Config Environment> - (Object) Environment object will be returned containing attributes environment_id, environment_name, color_code.
- git
Branch String - (String) Branch name to which you need to write or update the configuration.
- git
Config StringId - (String) Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
- git
Config StringName - (String) Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
- git
File StringPath - (String) Git file path, this is a path where your configuration file will be written. The path must contain the file name with
json
extension. - git
Url String - (String) Git url which will be used to connect to the github account. The url must be formed in this format, https://api.github.com/repos/{owner}/{repo_name} for the personal git account.
- href String
- (String) Git config URL.
- last
Sync StringTime - (Timestamp) Latest time when the snapshot was synced to git.
- updated
Time String - (Timestamp) Last modified time of the git config data.
- collections
Get
App Config Snapshots Git Config Collection[] - (Object) Collection object will be returned containing attributes collection_id, collection_name.
- created
Time string - (Timestamp) Creation time of the git config.
- environments
Get
App Config Snapshots Git Config Environment[] - (Object) Environment object will be returned containing attributes environment_id, environment_name, color_code.
- git
Branch string - (String) Branch name to which you need to write or update the configuration.
- git
Config stringId - (String) Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
- git
Config stringName - (String) Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
- git
File stringPath - (String) Git file path, this is a path where your configuration file will be written. The path must contain the file name with
json
extension. - git
Url string - (String) Git url which will be used to connect to the github account. The url must be formed in this format, https://api.github.com/repos/{owner}/{repo_name} for the personal git account.
- href string
- (String) Git config URL.
- last
Sync stringTime - (Timestamp) Latest time when the snapshot was synced to git.
- updated
Time string - (Timestamp) Last modified time of the git config data.
- collections
Sequence[Get
App Config Snapshots Git Config Collection] - (Object) Collection object will be returned containing attributes collection_id, collection_name.
- created_
time str - (Timestamp) Creation time of the git config.
- environments
Sequence[Get
App Config Snapshots Git Config Environment] - (Object) Environment object will be returned containing attributes environment_id, environment_name, color_code.
- git_
branch str - (String) Branch name to which you need to write or update the configuration.
- git_
config_ strid - (String) Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
- git_
config_ strname - (String) Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
- git_
file_ strpath - (String) Git file path, this is a path where your configuration file will be written. The path must contain the file name with
json
extension. - git_
url str - (String) Git url which will be used to connect to the github account. The url must be formed in this format, https://api.github.com/repos/{owner}/{repo_name} for the personal git account.
- href str
- (String) Git config URL.
- last_
sync_ strtime - (Timestamp) Latest time when the snapshot was synced to git.
- updated_
time str - (Timestamp) Last modified time of the git config data.
- collections List<Property Map>
- (Object) Collection object will be returned containing attributes collection_id, collection_name.
- created
Time String - (Timestamp) Creation time of the git config.
- environments List<Property Map>
- (Object) Environment object will be returned containing attributes environment_id, environment_name, color_code.
- git
Branch String - (String) Branch name to which you need to write or update the configuration.
- git
Config StringId - (String) Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
- git
Config StringName - (String) Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
- git
File StringPath - (String) Git file path, this is a path where your configuration file will be written. The path must contain the file name with
json
extension. - git
Url String - (String) Git url which will be used to connect to the github account. The url must be formed in this format, https://api.github.com/repos/{owner}/{repo_name} for the personal git account.
- href String
- (String) Git config URL.
- last
Sync StringTime - (Timestamp) Latest time when the snapshot was synced to git.
- updated
Time String - (Timestamp) Last modified time of the git config data.
GetAppConfigSnapshotsGitConfigCollection
- Collection
Id string - Filters the response based on the specified collection_id.
- Collection
Name string
- Collection
Id string - Filters the response based on the specified collection_id.
- Collection
Name string
- collection
Id String - Filters the response based on the specified collection_id.
- collection
Name String
- collection
Id string - Filters the response based on the specified collection_id.
- collection
Name string
- collection_
id str - Filters the response based on the specified collection_id.
- collection_
name str
- collection
Id String - Filters the response based on the specified collection_id.
- collection
Name String
GetAppConfigSnapshotsGitConfigEnvironment
- Color
Code string - (String) Color code to distinguish the environment.
- Environment
Id string - Filters the response based on the specified environment_id.
- Environment
Name string - (String) Environment name.
- Color
Code string - (String) Color code to distinguish the environment.
- Environment
Id string - Filters the response based on the specified environment_id.
- Environment
Name string - (String) Environment name.
- color
Code String - (String) Color code to distinguish the environment.
- environment
Id String - Filters the response based on the specified environment_id.
- environment
Name String - (String) Environment name.
- color
Code string - (String) Color code to distinguish the environment.
- environment
Id string - Filters the response based on the specified environment_id.
- environment
Name string - (String) Environment name.
- color_
code str - (String) Color code to distinguish the environment.
- environment_
id str - Filters the response based on the specified environment_id.
- environment_
name str - (String) Environment name.
- color
Code String - (String) Color code to distinguish the environment.
- environment
Id String - Filters the response based on the specified environment_id.
- environment
Name String - (String) Environment name.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.