1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. oos
  5. getStateConfigurations
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);
Copy
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.oos.get_state_configurations()
pulumi.export("oosStateConfigurationId1", ids.configurations[0].id)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
variables:
  ids:
    fn::invoke:
      function: alicloud:oos:getStateConfigurations
      arguments: {}
outputs:
  oosStateConfigurationId1: ${ids.configurations[0].id}
Copy

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>
Copy
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]
Copy
func GetStateConfigurations(ctx *Context, args *GetStateConfigurationsArgs, opts ...InvokeOption) (*GetStateConfigurationsResult, error)
func GetStateConfigurationsOutput(ctx *Context, args *GetStateConfigurationsOutputArgs, opts ...InvokeOption) GetStateConfigurationsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetStateConfigurationsResult> getStateConfigurations(GetStateConfigurationsArgs args, InvokeOptions options)
public static Output<GetStateConfigurationsResult> getStateConfigurations(GetStateConfigurationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:oos/getStateConfigurations:getStateConfigurations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
A list of State Configuration IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
ResourceGroupId Changes to this property will trigger replacement. string
The ID of the resource group.
Tags Dictionary<string, string>
The tag of the resource.
Ids Changes to this property will trigger replacement. []string
A list of State Configuration IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
ResourceGroupId Changes to this property will trigger replacement. string
The ID of the resource group.
Tags map[string]string
The tag of the resource.
ids Changes to this property will trigger replacement. List<String>
A list of State Configuration IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
resourceGroupId Changes to this property will trigger replacement. String
The ID of the resource group.
tags Map<String,String>
The tag of the resource.
ids Changes to this property will trigger replacement. string[]
A list of State Configuration IDs.
outputFile string
File name where to save data source results (after running pulumi preview).
resourceGroupId Changes to this property will trigger replacement. string
The ID of the resource group.
tags {[key: string]: string}
The tag of the resource.
ids Changes to this property will trigger replacement. Sequence[str]
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. str
The ID of the resource group.
tags Mapping[str, str]
The tag of the resource.
ids Changes to this property will trigger replacement. List<String>
A list of State Configuration IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
resourceGroupId Changes to this property will trigger replacement. String
The ID of the resource group.
tags Map<String>
The tag of the resource.

getStateConfigurations Result

The following output properties are available:

Configurations List<Pulumi.AliCloud.Oos.Outputs.GetStateConfigurationsConfiguration>
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
OutputFile string
ResourceGroupId string
Tags Dictionary<string, string>
Configurations []GetStateConfigurationsConfiguration
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
OutputFile string
ResourceGroupId string
Tags map[string]string
configurations List<GetStateConfigurationsConfiguration>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
outputFile String
resourceGroupId String
tags Map<String,String>
configurations GetStateConfigurationsConfiguration[]
id string
The provider-assigned unique ID for this managed resource.
ids string[]
outputFile string
resourceGroupId string
tags {[key: string]: string}
configurations Sequence[GetStateConfigurationsConfiguration]
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
output_file str
resource_group_id str
tags Mapping[str, str]
configurations List<Property Map>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
outputFile String
resourceGroupId String
tags Map<String>

Supporting Types

GetStateConfigurationsConfiguration

ConfigureMode This property is required. string
The configuration mode.
CreateTime 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.
ResourceGroupId This property is required. string
The ID of the resource group.
ScheduleExpression This property is required. string
The schedule expression.
ScheduleType This property is required. string
The schedule type.
StateConfigurationId This property is required. string
The ID of the final state configuration.
Tags This property is required. Dictionary<string, string>
The tag of the resource.
Targets This property is required. string
The target resource.
TemplateId This property is required. string
The ID of the template.
TemplateName This property is required. string
The name of the template.
TemplateVersion This property is required. string
The version of the template.
UpdateTime This property is required. string
The time when the configuration is updated.
ConfigureMode This property is required. string
The configuration mode.
CreateTime 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.
ResourceGroupId This property is required. string
The ID of the resource group.
ScheduleExpression This property is required. string
The schedule expression.
ScheduleType This property is required. string
The schedule type.
StateConfigurationId This property is required. string
The ID of the final state configuration.
Tags This property is required. map[string]string
The tag of the resource.
Targets This property is required. string
The target resource.
TemplateId This property is required. string
The ID of the template.
TemplateName This property is required. string
The name of the template.
TemplateVersion This property is required. string
The version of the template.
UpdateTime This property is required. string
The time when the configuration is updated.
configureMode This property is required. String
The configuration mode.
createTime 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.
resourceGroupId This property is required. String
The ID of the resource group.
scheduleExpression This property is required. String
The schedule expression.
scheduleType This property is required. String
The schedule type.
stateConfigurationId This property is required. String
The ID of the final state configuration.
tags This property is required. Map<String,String>
The tag of the resource.
targets This property is required. String
The target resource.
templateId This property is required. String
The ID of the template.
templateName This property is required. String
The name of the template.
templateVersion This property is required. String
The version of the template.
updateTime This property is required. String
The time when the configuration is updated.
configureMode This property is required. string
The configuration mode.
createTime 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.
resourceGroupId This property is required. string
The ID of the resource group.
scheduleExpression This property is required. string
The schedule expression.
scheduleType This property is required. string
The schedule type.
stateConfigurationId This property is required. string
The ID of the final state configuration.
tags This property is required. {[key: string]: string}
The tag of the resource.
targets This property is required. string
The target resource.
templateId This property is required. string
The ID of the template.
templateName This property is required. string
The name of the template.
templateVersion This property is required. string
The version of the template.
updateTime 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.
tags 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.
configureMode This property is required. String
The configuration mode.
createTime 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.
resourceGroupId This property is required. String
The ID of the resource group.
scheduleExpression This property is required. String
The schedule expression.
scheduleType This property is required. String
The schedule type.
stateConfigurationId This property is required. String
The ID of the final state configuration.
tags This property is required. Map<String>
The tag of the resource.
targets This property is required. String
The target resource.
templateId This property is required. String
The ID of the template.
templateName This property is required. String
The name of the template.
templateVersion This property is required. String
The version of the template.
updateTime 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.