get Date Time Variable
Use this data source to access information about an existing Automation Datetime Variable.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.automation.AutomationFunctions;
import com.pulumi.azure.automation.inputs.GetDateTimeVariableArgs;
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 example = AutomationFunctions.getDateTimeVariable(GetDateTimeVariableArgs.builder()
.name("tfex-example-var")
.resourceGroupName("tfex-example-rg")
.automationAccountName("tfex-example-account")
.build());
ctx.export("variableId", example.applyValue(getDateTimeVariableResult -> getDateTimeVariableResult.id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getDateTimeVariable.
Parameters
argument
A collection of arguments for invoking getDateTimeVariable.
suspend fun getDateTimeVariable(automationAccountName: String, name: String, resourceGroupName: String): GetDateTimeVariableResult
Return
A collection of values returned by getDateTimeVariable.
See also
Parameters
automation Account Name
The name of the automation account in which the Automation Variable exists.
name
The name of the Automation Variable.
resource Group Name
The Name of the Resource Group where the automation account exists.
suspend fun getDateTimeVariable(argument: suspend GetDateTimeVariablePlainArgsBuilder.() -> Unit): GetDateTimeVariableResult
Return
A collection of values returned by getDateTimeVariable.
See also
Parameters
argument
Builder for com.pulumi.azure.automation.kotlin.inputs.GetDateTimeVariablePlainArgs.