Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.vmmigration/v1alpha1.getTargetProject
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Gets details of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is global
.
Using getTargetProject
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 getTargetProject(args: GetTargetProjectArgs, opts?: InvokeOptions): Promise<GetTargetProjectResult>
function getTargetProjectOutput(args: GetTargetProjectOutputArgs, opts?: InvokeOptions): Output<GetTargetProjectResult>
def get_target_project(location: Optional[str] = None,
project: Optional[str] = None,
target_project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTargetProjectResult
def get_target_project_output(location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
target_project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTargetProjectResult]
func LookupTargetProject(ctx *Context, args *LookupTargetProjectArgs, opts ...InvokeOption) (*LookupTargetProjectResult, error)
func LookupTargetProjectOutput(ctx *Context, args *LookupTargetProjectOutputArgs, opts ...InvokeOption) LookupTargetProjectResultOutput
> Note: This function is named LookupTargetProject
in the Go SDK.
public static class GetTargetProject
{
public static Task<GetTargetProjectResult> InvokeAsync(GetTargetProjectArgs args, InvokeOptions? opts = null)
public static Output<GetTargetProjectResult> Invoke(GetTargetProjectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTargetProjectResult> getTargetProject(GetTargetProjectArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:vmmigration/v1alpha1:getTargetProject
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Target
Project stringId - Project string
- Location string
- Target
Project stringId - Project string
- location String
- target
Project StringId - project String
- location string
- target
Project stringId - project string
- location str
- target_
project_ strid - project str
- location String
- target
Project StringId - project String
getTargetProject Result
The following output properties are available:
- Create
Time string - The time this target project resource was created (not related to when the Compute Engine project it points to was created).
- Description string
- The target project's description.
- Name string
- The name of the target project.
- Project string
- The target project ID (number) or project name.
- Update
Time string - The last time the target project resource was updated.
- Create
Time string - The time this target project resource was created (not related to when the Compute Engine project it points to was created).
- Description string
- The target project's description.
- Name string
- The name of the target project.
- Project string
- The target project ID (number) or project name.
- Update
Time string - The last time the target project resource was updated.
- create
Time String - The time this target project resource was created (not related to when the Compute Engine project it points to was created).
- description String
- The target project's description.
- name String
- The name of the target project.
- project String
- The target project ID (number) or project name.
- update
Time String - The last time the target project resource was updated.
- create
Time string - The time this target project resource was created (not related to when the Compute Engine project it points to was created).
- description string
- The target project's description.
- name string
- The name of the target project.
- project string
- The target project ID (number) or project name.
- update
Time string - The last time the target project resource was updated.
- create_
time str - The time this target project resource was created (not related to when the Compute Engine project it points to was created).
- description str
- The target project's description.
- name str
- The name of the target project.
- project str
- The target project ID (number) or project name.
- update_
time str - The last time the target project resource was updated.
- create
Time String - The time this target project resource was created (not related to when the Compute Engine project it points to was created).
- description String
- The target project's description.
- name String
- The name of the target project.
- project String
- The target project ID (number) or project name.
- update
Time String - The last time the target project resource was updated.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.