@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.74 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Return the logs for a script execution resource
*
* Uses Azure REST API version 2023-09-01.
*
* Other available API versions: 2022-05-01, 2023-03-01, 2024-09-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native avs [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getScriptExecutionLogs(args: GetScriptExecutionLogsArgs, opts?: pulumi.InvokeOptions): Promise<GetScriptExecutionLogsResult>;
export interface GetScriptExecutionLogsArgs {
/**
* Name of the private cloud
*/
privateCloudName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* Name of the script cmdlet.
*/
scriptExecutionName: string;
}
/**
* An instance of a script executed by a user - custom or AVS
*/
export interface GetScriptExecutionLogsResult {
/**
* Standard error output stream from the powershell execution
*/
readonly errors: string[];
/**
* Error message if the script was able to run, but if the script itself had
* errors or powershell threw an exception
*/
readonly failureReason?: string;
/**
* Time the script execution was finished
*/
readonly finishedAt: string;
/**
* Parameters that will be hidden/not visible to ARM, such as passwords and
* credentials
*/
readonly hiddenParameters?: (outputs.avs.PSCredentialExecutionParameterResponse | outputs.avs.ScriptSecureStringExecutionParameterResponse | outputs.avs.ScriptStringExecutionParameterResponse)[];
/**
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*/
readonly id: string;
/**
* Standard information out stream from the powershell execution
*/
readonly information: string[];
/**
* The name of the resource
*/
readonly name: string;
/**
* User-defined dictionary.
*/
readonly namedOutputs?: {
[key: string]: any;
};
/**
* Standard output stream from the powershell execution
*/
readonly output?: string[];
/**
* Parameters the script will accept
*/
readonly parameters?: (outputs.avs.PSCredentialExecutionParameterResponse | outputs.avs.ScriptSecureStringExecutionParameterResponse | outputs.avs.ScriptStringExecutionParameterResponse)[];
/**
* The state of the script execution resource
*/
readonly provisioningState: string;
/**
* Time to live for the resource. If not provided, will be available for 60 days
*/
readonly retention?: string;
/**
* A reference to the script cmdlet resource if user is running a AVS script
*/
readonly scriptCmdletId?: string;
/**
* Time the script execution was started
*/
readonly startedAt: string;
/**
* Time the script execution was submitted
*/
readonly submittedAt: string;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.avs.SystemDataResponse;
/**
* Time limit for execution
*/
readonly timeout: string;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
/**
* Standard warning out stream from the powershell execution
*/
readonly warnings: string[];
}
/**
* Return the logs for a script execution resource
*
* Uses Azure REST API version 2023-09-01.
*
* Other available API versions: 2022-05-01, 2023-03-01, 2024-09-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native avs [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getScriptExecutionLogsOutput(args: GetScriptExecutionLogsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScriptExecutionLogsResult>;
export interface GetScriptExecutionLogsOutputArgs {
/**
* Name of the private cloud
*/
privateCloudName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* Name of the script cmdlet.
*/
scriptExecutionName: pulumi.Input<string>;
}