@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.39 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get a ApprovalResource
*
* Uses Azure REST API version 2025-05-01-preview.
*
* Other available API versions: 2024-06-01-preview, 2024-12-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native mission [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getApproval(args: GetApprovalArgs, opts?: pulumi.InvokeOptions): Promise<GetApprovalResult>;
export interface GetApprovalArgs {
/**
* The name of the approvals resource.
*/
approvalName: string;
/**
* The fully qualified Azure Resource manager identifier of the resource.
*/
resourceUri: string;
}
/**
* Approval Model Resource
*/
export interface GetApprovalResult {
/**
* List of approvers for the approval request
*/
readonly approvers?: outputs.mission.ApproverResponse[];
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Approval request creation time
*/
readonly createdAt?: string;
/**
* Parameter for optimizing query results
*/
readonly grandparentResourceId?: string;
/**
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*/
readonly id: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* Parameter for optimizing query results
*/
readonly parentResourceId?: string;
/**
* Provisioning State.
*/
readonly provisioningState: string;
/**
* Request metadata for the approval request.
*/
readonly requestMetadata: outputs.mission.RequestMetadataResponse;
/**
* Approval request state change time, time at which approval request state changed from pending to approved or rejected.
*/
readonly stateChangedAt?: string;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.mission.SystemDataResponse;
/**
* Ticket ID for the approval request
*/
readonly ticketId?: string;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Get a ApprovalResource
*
* Uses Azure REST API version 2025-05-01-preview.
*
* Other available API versions: 2024-06-01-preview, 2024-12-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native mission [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getApprovalOutput(args: GetApprovalOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApprovalResult>;
export interface GetApprovalOutputArgs {
/**
* The name of the approvals resource.
*/
approvalName: pulumi.Input<string>;
/**
* The fully qualified Azure Resource manager identifier of the resource.
*/
resourceUri: pulumi.Input<string>;
}