@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.55 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets a Job Definition resource.
*
* Uses Azure REST API version 2024-07-01.
*
* Other available API versions: 2023-03-01, 2023-07-01-preview, 2023-10-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native storagemover [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getJobDefinition(args: GetJobDefinitionArgs, opts?: pulumi.InvokeOptions): Promise<GetJobDefinitionResult>;
export interface GetJobDefinitionArgs {
/**
* The name of the Job Definition resource.
*/
jobDefinitionName: string;
/**
* The name of the Project resource.
*/
projectName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* The name of the Storage Mover resource.
*/
storageMoverName: string;
}
/**
* The Job Definition resource.
*/
export interface GetJobDefinitionResult {
/**
* Name of the Agent to assign for new Job Runs of this Job Definition.
*/
readonly agentName?: string;
/**
* Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition.
*/
readonly agentResourceId: string;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Strategy to use for copy.
*/
readonly copyMode: string;
/**
* A description for the Job Definition.
*/
readonly description?: string;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* The name of the Job Run in a non-terminal state, if exists.
*/
readonly latestJobRunName: string;
/**
* The fully qualified resource ID of the Job Run in a non-terminal state, if exists.
*/
readonly latestJobRunResourceId: string;
/**
* The current status of the Job Run in a non-terminal state, if exists.
*/
readonly latestJobRunStatus: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* The provisioning state of this resource.
*/
readonly provisioningState: string;
/**
* The name of the source Endpoint.
*/
readonly sourceName: string;
/**
* Fully qualified resource ID of the source Endpoint.
*/
readonly sourceResourceId: string;
/**
* The subpath to use when reading from the source Endpoint.
*/
readonly sourceSubpath?: string;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.storagemover.SystemDataResponse;
/**
* The name of the target Endpoint.
*/
readonly targetName: string;
/**
* Fully qualified resource ID of the target Endpoint.
*/
readonly targetResourceId: string;
/**
* The subpath to use when writing to the target Endpoint.
*/
readonly targetSubpath?: string;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Gets a Job Definition resource.
*
* Uses Azure REST API version 2024-07-01.
*
* Other available API versions: 2023-03-01, 2023-07-01-preview, 2023-10-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native storagemover [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getJobDefinitionOutput(args: GetJobDefinitionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetJobDefinitionResult>;
export interface GetJobDefinitionOutputArgs {
/**
* The name of the Job Definition resource.
*/
jobDefinitionName: pulumi.Input<string>;
/**
* The name of the Project resource.
*/
projectName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the Storage Mover resource.
*/
storageMoverName: pulumi.Input<string>;
}