Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.oos.getStateConfigurations
Explore with Pulumi AI
This data source provides the Oos State Configurations of the current Alibaba Cloud user.
NOTE: Available in v1.147.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const ids = alicloud.oos.getStateConfigurations({});
export const oosStateConfigurationId1 = ids.then(ids => ids.configurations?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.oos.get_state_configurations()
pulumi.export("oosStateConfigurationId1", ids.configurations[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := oos.GetStateConfigurations(ctx, &oos.GetStateConfigurationsArgs{}, nil)
if err != nil {
return err
}
ctx.Export("oosStateConfigurationId1", ids.Configurations[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Oos.GetStateConfigurations.Invoke();
return new Dictionary<string, object?>
{
["oosStateConfigurationId1"] = ids.Apply(getStateConfigurationsResult => getStateConfigurationsResult.Configurations[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.oos.OosFunctions;
import com.pulumi.alicloud.oos.inputs.GetStateConfigurationsArgs;
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 ids = OosFunctions.getStateConfigurations();
ctx.export("oosStateConfigurationId1", ids.applyValue(getStateConfigurationsResult -> getStateConfigurationsResult.configurations()[0].id()));
}
}
variables:
ids:
fn::invoke:
function: alicloud:oos:getStateConfigurations
arguments: {}
outputs:
oosStateConfigurationId1: ${ids.configurations[0].id}
Using getStateConfigurations
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 getStateConfigurations(args: GetStateConfigurationsArgs, opts?: InvokeOptions): Promise<GetStateConfigurationsResult>
function getStateConfigurationsOutput(args: GetStateConfigurationsOutputArgs, opts?: InvokeOptions): Output<GetStateConfigurationsResult>
def get_state_configurations(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetStateConfigurationsResult
def get_state_configurations_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStateConfigurationsResult]
func GetStateConfigurations(ctx *Context, args *GetStateConfigurationsArgs, opts ...InvokeOption) (*GetStateConfigurationsResult, error)
func GetStateConfigurationsOutput(ctx *Context, args *GetStateConfigurationsOutputArgs, opts ...InvokeOption) GetStateConfigurationsResultOutput
> Note: This function is named GetStateConfigurations
in the Go SDK.
public static class GetStateConfigurations
{
public static Task<GetStateConfigurationsResult> InvokeAsync(GetStateConfigurationsArgs args, InvokeOptions? opts = null)
public static Output<GetStateConfigurationsResult> Invoke(GetStateConfigurationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetStateConfigurationsResult> getStateConfigurations(GetStateConfigurationsArgs args, InvokeOptions options)
public static Output<GetStateConfigurationsResult> getStateConfigurations(GetStateConfigurationsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:oos/getStateConfigurations:getStateConfigurations
arguments:
# arguments dictionary
The following arguments are supported:
- Ids
Changes to this property will trigger replacement.
- A list of State Configuration IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group Id Changes to this property will trigger replacement.
- The ID of the resource group.
- Dictionary<string, string>
- The tag of the resource.
- Ids
Changes to this property will trigger replacement.
- A list of State Configuration IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group Id Changes to this property will trigger replacement.
- The ID of the resource group.
- map[string]string
- The tag of the resource.
- ids
Changes to this property will trigger replacement.
- A list of State Configuration IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group Id Changes to this property will trigger replacement.
- The ID of the resource group.
- Map<String,String>
- The tag of the resource.
- ids
Changes to this property will trigger replacement.
- A list of State Configuration IDs.
- output
File string - File name where to save data source results (after running
pulumi preview
). - resource
Group Id Changes to this property will trigger replacement.
- The ID of the resource group.
- {[key: string]: string}
- The tag of the resource.
- ids
Changes to this property will trigger replacement.
- A list of State Configuration IDs.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - resource_
group_ id Changes to this property will trigger replacement.
- The ID of the resource group.
- Mapping[str, str]
- The tag of the resource.
- ids
Changes to this property will trigger replacement.
- A list of State Configuration IDs.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group Id Changes to this property will trigger replacement.
- The ID of the resource group.
- Map<String>
- The tag of the resource.
getStateConfigurations Result
The following output properties are available:
- Configurations
List<Pulumi.
Ali Cloud. Oos. Outputs. Get State Configurations Configuration> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Output
File string - Resource
Group stringId - Dictionary<string, string>
- Configurations
[]Get
State Configurations Configuration - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Output
File string - Resource
Group stringId - map[string]string
- configurations
List<Get
State Configurations Configuration> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- output
File String - resource
Group StringId - Map<String,String>
- configurations
Get
State Configurations Configuration[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- output
File string - resource
Group stringId - {[key: string]: string}
- configurations
Sequence[Get
State Configurations Configuration] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- output_
file str - resource_
group_ strid - Mapping[str, str]
- configurations List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- output
File String - resource
Group StringId - Map<String>
Supporting Types
GetStateConfigurationsConfiguration
- Configure
Mode This property is required. string - The configuration mode.
- Create
Time This property is required. string - The creation time.
- Description
This property is required. string - The description.
- Id
This property is required. string - The ID of the State Configuration.
- Parameters
This property is required. string - The parameters.
- Resource
Group Id This property is required. string - The ID of the resource group.
- Schedule
Expression This property is required. string - The schedule expression.
- Schedule
Type This property is required. string - The schedule type.
- State
Configuration Id This property is required. string - The ID of the final state configuration.
This property is required. Dictionary<string, string>- The tag of the resource.
- Targets
This property is required. string - The target resource.
- Template
Id This property is required. string - The ID of the template.
- Template
Name This property is required. string - The name of the template.
- Template
Version This property is required. string - The version of the template.
- Update
Time This property is required. string - The time when the configuration is updated.
- Configure
Mode This property is required. string - The configuration mode.
- Create
Time This property is required. string - The creation time.
- Description
This property is required. string - The description.
- Id
This property is required. string - The ID of the State Configuration.
- Parameters
This property is required. string - The parameters.
- Resource
Group Id This property is required. string - The ID of the resource group.
- Schedule
Expression This property is required. string - The schedule expression.
- Schedule
Type This property is required. string - The schedule type.
- State
Configuration Id This property is required. string - The ID of the final state configuration.
This property is required. map[string]string- The tag of the resource.
- Targets
This property is required. string - The target resource.
- Template
Id This property is required. string - The ID of the template.
- Template
Name This property is required. string - The name of the template.
- Template
Version This property is required. string - The version of the template.
- Update
Time This property is required. string - The time when the configuration is updated.
- configure
Mode This property is required. String - The configuration mode.
- create
Time This property is required. String - The creation time.
- description
This property is required. String - The description.
- id
This property is required. String - The ID of the State Configuration.
- parameters
This property is required. String - The parameters.
- resource
Group Id This property is required. String - The ID of the resource group.
- schedule
Expression This property is required. String - The schedule expression.
- schedule
Type This property is required. String - The schedule type.
- state
Configuration Id This property is required. String - The ID of the final state configuration.
This property is required. Map<String,String>- The tag of the resource.
- targets
This property is required. String - The target resource.
- template
Id This property is required. String - The ID of the template.
- template
Name This property is required. String - The name of the template.
- template
Version This property is required. String - The version of the template.
- update
Time This property is required. String - The time when the configuration is updated.
- configure
Mode This property is required. string - The configuration mode.
- create
Time This property is required. string - The creation time.
- description
This property is required. string - The description.
- id
This property is required. string - The ID of the State Configuration.
- parameters
This property is required. string - The parameters.
- resource
Group Id This property is required. string - The ID of the resource group.
- schedule
Expression This property is required. string - The schedule expression.
- schedule
Type This property is required. string - The schedule type.
- state
Configuration Id This property is required. string - The ID of the final state configuration.
This property is required. {[key: string]: string}- The tag of the resource.
- targets
This property is required. string - The target resource.
- template
Id This property is required. string - The ID of the template.
- template
Name This property is required. string - The name of the template.
- template
Version This property is required. string - The version of the template.
- update
Time This property is required. string - The time when the configuration is updated.
- configure_
mode This property is required. str - The configuration mode.
- create_
time This property is required. str - The creation time.
- description
This property is required. str - The description.
- id
This property is required. str - The ID of the State Configuration.
- parameters
This property is required. str - The parameters.
- resource_
group_ id This property is required. str - The ID of the resource group.
- schedule_
expression This property is required. str - The schedule expression.
- schedule_
type This property is required. str - The schedule type.
- state_
configuration_ id This property is required. str - The ID of the final state configuration.
This property is required. Mapping[str, str]- The tag of the resource.
- targets
This property is required. str - The target resource.
- template_
id This property is required. str - The ID of the template.
- template_
name This property is required. str - The name of the template.
- template_
version This property is required. str - The version of the template.
- update_
time This property is required. str - The time when the configuration is updated.
- configure
Mode This property is required. String - The configuration mode.
- create
Time This property is required. String - The creation time.
- description
This property is required. String - The description.
- id
This property is required. String - The ID of the State Configuration.
- parameters
This property is required. String - The parameters.
- resource
Group Id This property is required. String - The ID of the resource group.
- schedule
Expression This property is required. String - The schedule expression.
- schedule
Type This property is required. String - The schedule type.
- state
Configuration Id This property is required. String - The ID of the final state configuration.
This property is required. Map<String>- The tag of the resource.
- targets
This property is required. String - The target resource.
- template
Id This property is required. String - The ID of the template.
- template
Name This property is required. String - The name of the template.
- template
Version This property is required. String - The version of the template.
- update
Time This property is required. String - The time when the configuration is updated.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.