1. Packages
  2. Ibm Provider
  3. API Docs
  4. AppConfigSnapshot
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.AppConfigSnapshot

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a resource for snapshot. This allows snapshot to be created, updated and deleted. For more information, about App Configuration snapshots, see segments.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const appConfigSnapshot = new ibm.AppConfigSnapshot("appConfigSnapshot", {
        collectionId: "collection_id",
        environmentId: "environment_id",
        gitBranch: "git_branch",
        gitConfigId: "git_config_id",
        gitConfigName: "git_config_name",
        gitFilePath: "git_file_path",
        gitToken: "git_token",
        gitUrl: "git_url",
        guid: "guid",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    app_config_snapshot = ibm.AppConfigSnapshot("appConfigSnapshot",
        collection_id="collection_id",
        environment_id="environment_id",
        git_branch="git_branch",
        git_config_id="git_config_id",
        git_config_name="git_config_name",
        git_file_path="git_file_path",
        git_token="git_token",
        git_url="git_url",
        guid="guid")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewAppConfigSnapshot(ctx, "appConfigSnapshot", &ibm.AppConfigSnapshotArgs{
    			CollectionId:  pulumi.String("collection_id"),
    			EnvironmentId: pulumi.String("environment_id"),
    			GitBranch:     pulumi.String("git_branch"),
    			GitConfigId:   pulumi.String("git_config_id"),
    			GitConfigName: pulumi.String("git_config_name"),
    			GitFilePath:   pulumi.String("git_file_path"),
    			GitToken:      pulumi.String("git_token"),
    			GitUrl:        pulumi.String("git_url"),
    			Guid:          pulumi.String("guid"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var appConfigSnapshot = new Ibm.AppConfigSnapshot("appConfigSnapshot", new()
        {
            CollectionId = "collection_id",
            EnvironmentId = "environment_id",
            GitBranch = "git_branch",
            GitConfigId = "git_config_id",
            GitConfigName = "git_config_name",
            GitFilePath = "git_file_path",
            GitToken = "git_token",
            GitUrl = "git_url",
            Guid = "guid",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.AppConfigSnapshot;
    import com.pulumi.ibm.AppConfigSnapshotArgs;
    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) {
            var appConfigSnapshot = new AppConfigSnapshot("appConfigSnapshot", AppConfigSnapshotArgs.builder()
                .collectionId("collection_id")
                .environmentId("environment_id")
                .gitBranch("git_branch")
                .gitConfigId("git_config_id")
                .gitConfigName("git_config_name")
                .gitFilePath("git_file_path")
                .gitToken("git_token")
                .gitUrl("git_url")
                .guid("guid")
                .build());
    
        }
    }
    
    resources:
      appConfigSnapshot:
        type: ibm:AppConfigSnapshot
        properties:
          collectionId: collection_id
          environmentId: environment_id
          gitBranch: git_branch
          gitConfigId: git_config_id
          gitConfigName: git_config_name
          gitFilePath: git_file_path
          gitToken: git_token
          gitUrl: git_url
          guid: guid
    

    Create AppConfigSnapshot Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AppConfigSnapshot(name: string, args: AppConfigSnapshotArgs, opts?: CustomResourceOptions);
    @overload
    def AppConfigSnapshot(resource_name: str,
                          args: AppConfigSnapshotArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppConfigSnapshot(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          collection_id: Optional[str] = None,
                          environment_id: Optional[str] = None,
                          git_branch: Optional[str] = None,
                          git_config_id: Optional[str] = None,
                          git_config_name: Optional[str] = None,
                          git_file_path: Optional[str] = None,
                          git_token: Optional[str] = None,
                          git_url: Optional[str] = None,
                          guid: Optional[str] = None,
                          action: Optional[str] = None,
                          app_config_snapshot_id: Optional[str] = None)
    func NewAppConfigSnapshot(ctx *Context, name string, args AppConfigSnapshotArgs, opts ...ResourceOption) (*AppConfigSnapshot, error)
    public AppConfigSnapshot(string name, AppConfigSnapshotArgs args, CustomResourceOptions? opts = null)
    public AppConfigSnapshot(String name, AppConfigSnapshotArgs args)
    public AppConfigSnapshot(String name, AppConfigSnapshotArgs args, CustomResourceOptions options)
    
    type: ibm:AppConfigSnapshot
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AppConfigSnapshotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AppConfigSnapshotArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AppConfigSnapshotArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppConfigSnapshotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppConfigSnapshotArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var appConfigSnapshotResource = new Ibm.AppConfigSnapshot("appConfigSnapshotResource", new()
    {
        CollectionId = "string",
        EnvironmentId = "string",
        GitBranch = "string",
        GitConfigId = "string",
        GitConfigName = "string",
        GitFilePath = "string",
        GitToken = "string",
        GitUrl = "string",
        Guid = "string",
        Action = "string",
        AppConfigSnapshotId = "string",
    });
    
    example, err := ibm.NewAppConfigSnapshot(ctx, "appConfigSnapshotResource", &ibm.AppConfigSnapshotArgs{
    	CollectionId:        pulumi.String("string"),
    	EnvironmentId:       pulumi.String("string"),
    	GitBranch:           pulumi.String("string"),
    	GitConfigId:         pulumi.String("string"),
    	GitConfigName:       pulumi.String("string"),
    	GitFilePath:         pulumi.String("string"),
    	GitToken:            pulumi.String("string"),
    	GitUrl:              pulumi.String("string"),
    	Guid:                pulumi.String("string"),
    	Action:              pulumi.String("string"),
    	AppConfigSnapshotId: pulumi.String("string"),
    })
    
    var appConfigSnapshotResource = new AppConfigSnapshot("appConfigSnapshotResource", AppConfigSnapshotArgs.builder()
        .collectionId("string")
        .environmentId("string")
        .gitBranch("string")
        .gitConfigId("string")
        .gitConfigName("string")
        .gitFilePath("string")
        .gitToken("string")
        .gitUrl("string")
        .guid("string")
        .action("string")
        .appConfigSnapshotId("string")
        .build());
    
    app_config_snapshot_resource = ibm.AppConfigSnapshot("appConfigSnapshotResource",
        collection_id="string",
        environment_id="string",
        git_branch="string",
        git_config_id="string",
        git_config_name="string",
        git_file_path="string",
        git_token="string",
        git_url="string",
        guid="string",
        action="string",
        app_config_snapshot_id="string")
    
    const appConfigSnapshotResource = new ibm.AppConfigSnapshot("appConfigSnapshotResource", {
        collectionId: "string",
        environmentId: "string",
        gitBranch: "string",
        gitConfigId: "string",
        gitConfigName: "string",
        gitFilePath: "string",
        gitToken: "string",
        gitUrl: "string",
        guid: "string",
        action: "string",
        appConfigSnapshotId: "string",
    });
    
    type: ibm:AppConfigSnapshot
    properties:
        action: string
        appConfigSnapshotId: string
        collectionId: string
        environmentId: string
        gitBranch: string
        gitConfigId: string
        gitConfigName: string
        gitFilePath: string
        gitToken: string
        gitUrl: string
        guid: string
    

    AppConfigSnapshot Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AppConfigSnapshot resource accepts the following input properties:

    CollectionId string
    Collection ID
    EnvironmentId string
    Environment Id
    GitBranch string
    Branch name to which you need to write or update the configuration.
    GitConfigId string
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    GitConfigName string
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    GitFilePath 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.
    GitToken string
    Git token, this needs to be provided with enough permission to write and update the file.
    GitUrl 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.
    Guid string
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    Action string
    action promote
    AppConfigSnapshotId string
    CollectionId string
    Collection ID
    EnvironmentId string
    Environment Id
    GitBranch string
    Branch name to which you need to write or update the configuration.
    GitConfigId string
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    GitConfigName string
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    GitFilePath 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.
    GitToken string
    Git token, this needs to be provided with enough permission to write and update the file.
    GitUrl 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.
    Guid string
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    Action string
    action promote
    AppConfigSnapshotId string
    collectionId String
    Collection ID
    environmentId String
    Environment Id
    gitBranch String
    Branch name to which you need to write or update the configuration.
    gitConfigId String
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    gitConfigName String
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    gitFilePath 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.
    gitToken String
    Git token, this needs to be provided with enough permission to write and update the file.
    gitUrl 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.
    guid String
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    action String
    action promote
    appConfigSnapshotId String
    collectionId string
    Collection ID
    environmentId string
    Environment Id
    gitBranch string
    Branch name to which you need to write or update the configuration.
    gitConfigId string
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    gitConfigName string
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    gitFilePath 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.
    gitToken string
    Git token, this needs to be provided with enough permission to write and update the file.
    gitUrl 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.
    guid string
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    action string
    action promote
    appConfigSnapshotId string
    collection_id str
    Collection ID
    environment_id str
    Environment Id
    git_branch str
    Branch name to which you need to write or update the configuration.
    git_config_id str
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    git_config_name str
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    git_file_path str
    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_token str
    Git token, this needs to be provided with enough permission to write and update the file.
    git_url str
    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.
    guid str
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    action str
    action promote
    app_config_snapshot_id str
    collectionId String
    Collection ID
    environmentId String
    Environment Id
    gitBranch String
    Branch name to which you need to write or update the configuration.
    gitConfigId String
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    gitConfigName String
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    gitFilePath 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.
    gitToken String
    Git token, this needs to be provided with enough permission to write and update the file.
    gitUrl 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.
    guid String
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    action String
    action promote
    appConfigSnapshotId String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AppConfigSnapshot resource produces the following output properties:

    Collections List<AppConfigSnapshotCollection>
    Collection object.
    CreatedTime string
    (Timestamp) Creation time of the segment.
    Environments List<AppConfigSnapshotEnvironment>
    Environment object
    Href string
    (String) Git config URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedTime string
    (Timestamp) Last modified time of the segment data.
    Collections []AppConfigSnapshotCollection
    Collection object.
    CreatedTime string
    (Timestamp) Creation time of the segment.
    Environments []AppConfigSnapshotEnvironment
    Environment object
    Href string
    (String) Git config URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedTime string
    (Timestamp) Last modified time of the segment data.
    collections List<AppConfigSnapshotCollection>
    Collection object.
    createdTime String
    (Timestamp) Creation time of the segment.
    environments List<AppConfigSnapshotEnvironment>
    Environment object
    href String
    (String) Git config URL.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedTime String
    (Timestamp) Last modified time of the segment data.
    collections AppConfigSnapshotCollection[]
    Collection object.
    createdTime string
    (Timestamp) Creation time of the segment.
    environments AppConfigSnapshotEnvironment[]
    Environment object
    href string
    (String) Git config URL.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedTime string
    (Timestamp) Last modified time of the segment data.
    collections Sequence[AppConfigSnapshotCollection]
    Collection object.
    created_time str
    (Timestamp) Creation time of the segment.
    environments Sequence[AppConfigSnapshotEnvironment]
    Environment object
    href str
    (String) Git config URL.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_time str
    (Timestamp) Last modified time of the segment data.
    collections List<Property Map>
    Collection object.
    createdTime String
    (Timestamp) Creation time of the segment.
    environments List<Property Map>
    Environment object
    href String
    (String) Git config URL.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedTime String
    (Timestamp) Last modified time of the segment data.

    Look up Existing AppConfigSnapshot Resource

    Get an existing AppConfigSnapshot resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AppConfigSnapshotState, opts?: CustomResourceOptions): AppConfigSnapshot
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            app_config_snapshot_id: Optional[str] = None,
            collection_id: Optional[str] = None,
            collections: Optional[Sequence[AppConfigSnapshotCollectionArgs]] = None,
            created_time: Optional[str] = None,
            environment_id: Optional[str] = None,
            environments: Optional[Sequence[AppConfigSnapshotEnvironmentArgs]] = None,
            git_branch: Optional[str] = None,
            git_config_id: Optional[str] = None,
            git_config_name: Optional[str] = None,
            git_file_path: Optional[str] = None,
            git_token: Optional[str] = None,
            git_url: Optional[str] = None,
            guid: Optional[str] = None,
            href: Optional[str] = None,
            updated_time: Optional[str] = None) -> AppConfigSnapshot
    func GetAppConfigSnapshot(ctx *Context, name string, id IDInput, state *AppConfigSnapshotState, opts ...ResourceOption) (*AppConfigSnapshot, error)
    public static AppConfigSnapshot Get(string name, Input<string> id, AppConfigSnapshotState? state, CustomResourceOptions? opts = null)
    public static AppConfigSnapshot get(String name, Output<String> id, AppConfigSnapshotState state, CustomResourceOptions options)
    resources:  _:    type: ibm:AppConfigSnapshot    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Action string
    action promote
    AppConfigSnapshotId string
    CollectionId string
    Collection ID
    Collections List<AppConfigSnapshotCollection>
    Collection object.
    CreatedTime string
    (Timestamp) Creation time of the segment.
    EnvironmentId string
    Environment Id
    Environments List<AppConfigSnapshotEnvironment>
    Environment object
    GitBranch string
    Branch name to which you need to write or update the configuration.
    GitConfigId string
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    GitConfigName string
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    GitFilePath 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.
    GitToken string
    Git token, this needs to be provided with enough permission to write and update the file.
    GitUrl 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.
    Guid string
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    Href string
    (String) Git config URL.
    UpdatedTime string
    (Timestamp) Last modified time of the segment data.
    Action string
    action promote
    AppConfigSnapshotId string
    CollectionId string
    Collection ID
    Collections []AppConfigSnapshotCollectionArgs
    Collection object.
    CreatedTime string
    (Timestamp) Creation time of the segment.
    EnvironmentId string
    Environment Id
    Environments []AppConfigSnapshotEnvironmentArgs
    Environment object
    GitBranch string
    Branch name to which you need to write or update the configuration.
    GitConfigId string
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    GitConfigName string
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    GitFilePath 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.
    GitToken string
    Git token, this needs to be provided with enough permission to write and update the file.
    GitUrl 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.
    Guid string
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    Href string
    (String) Git config URL.
    UpdatedTime string
    (Timestamp) Last modified time of the segment data.
    action String
    action promote
    appConfigSnapshotId String
    collectionId String
    Collection ID
    collections List<AppConfigSnapshotCollection>
    Collection object.
    createdTime String
    (Timestamp) Creation time of the segment.
    environmentId String
    Environment Id
    environments List<AppConfigSnapshotEnvironment>
    Environment object
    gitBranch String
    Branch name to which you need to write or update the configuration.
    gitConfigId String
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    gitConfigName String
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    gitFilePath 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.
    gitToken String
    Git token, this needs to be provided with enough permission to write and update the file.
    gitUrl 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.
    guid String
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    href String
    (String) Git config URL.
    updatedTime String
    (Timestamp) Last modified time of the segment data.
    action string
    action promote
    appConfigSnapshotId string
    collectionId string
    Collection ID
    collections AppConfigSnapshotCollection[]
    Collection object.
    createdTime string
    (Timestamp) Creation time of the segment.
    environmentId string
    Environment Id
    environments AppConfigSnapshotEnvironment[]
    Environment object
    gitBranch string
    Branch name to which you need to write or update the configuration.
    gitConfigId string
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    gitConfigName string
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    gitFilePath 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.
    gitToken string
    Git token, this needs to be provided with enough permission to write and update the file.
    gitUrl 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.
    guid string
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    href string
    (String) Git config URL.
    updatedTime string
    (Timestamp) Last modified time of the segment data.
    action str
    action promote
    app_config_snapshot_id str
    collection_id str
    Collection ID
    collections Sequence[AppConfigSnapshotCollectionArgs]
    Collection object.
    created_time str
    (Timestamp) Creation time of the segment.
    environment_id str
    Environment Id
    environments Sequence[AppConfigSnapshotEnvironmentArgs]
    Environment object
    git_branch str
    Branch name to which you need to write or update the configuration.
    git_config_id str
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    git_config_name str
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    git_file_path str
    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_token str
    Git token, this needs to be provided with enough permission to write and update the file.
    git_url str
    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.
    guid str
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    href str
    (String) Git config URL.
    updated_time str
    (Timestamp) Last modified time of the segment data.
    action String
    action promote
    appConfigSnapshotId String
    collectionId String
    Collection ID
    collections List<Property Map>
    Collection object.
    createdTime String
    (Timestamp) Creation time of the segment.
    environmentId String
    Environment Id
    environments List<Property Map>
    Environment object
    gitBranch String
    Branch name to which you need to write or update the configuration.
    gitConfigId String
    Git config id. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only
    gitConfigName String
    Git config name. Allowed special characters are dot ( . ), hyphen( - ), underscore ( _ ) only.
    gitFilePath 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.
    gitToken String
    Git token, this needs to be provided with enough permission to write and update the file.
    gitUrl 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.
    guid String
    The GUID of the App Configuration service. Fetch GUID from the service instance credentials section of the dashboard.
    href String
    (String) Git config URL.
    updatedTime String
    (Timestamp) Last modified time of the segment data.

    Supporting Types

    AppConfigSnapshotCollection, AppConfigSnapshotCollectionArgs

    CollectionId string
    Collection ID
    CollectionName string
    CollectionId string
    Collection ID
    CollectionName string
    collectionId String
    Collection ID
    collectionName String
    collectionId string
    Collection ID
    collectionName string
    collection_id str
    Collection ID
    collection_name str
    collectionId String
    Collection ID
    collectionName String

    AppConfigSnapshotEnvironment, AppConfigSnapshotEnvironmentArgs

    ColorCode string
    EnvironmentId string
    Environment Id
    EnvironmentName string
    ColorCode string
    EnvironmentId string
    Environment Id
    EnvironmentName string
    colorCode String
    environmentId String
    Environment Id
    environmentName String
    colorCode string
    environmentId string
    Environment Id
    environmentName string
    colorCode String
    environmentId String
    Environment Id
    environmentName String

    Import

    The ibm_app_config_snapshot resource can be imported by using guid of the App Configuration instance and git_config_id. Get the guid from the service instance credentials section of the dashboard.

    Syntax

    $ pulumi import ibm:index/appConfigSnapshot:AppConfigSnapshot sample <guid/git_config_id>
    

    Example

    $ pulumi import ibm:index/appConfigSnapshot:AppConfigSnapshot app_config_snapshot 272111153-c118-4116-8116-b811fbc31132/sample
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud