1. Packages
  2. Google Cloud Native
  3. API Docs
  4. datamigration
  5. datamigration/v1
  6. getPrivateConnection

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.datamigration/v1.getPrivateConnection

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Gets details of a single private connection.

Using getPrivateConnection

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 getPrivateConnection(args: GetPrivateConnectionArgs, opts?: InvokeOptions): Promise<GetPrivateConnectionResult>
function getPrivateConnectionOutput(args: GetPrivateConnectionOutputArgs, opts?: InvokeOptions): Output<GetPrivateConnectionResult>
Copy
def get_private_connection(location: Optional[str] = None,
                           private_connection_id: Optional[str] = None,
                           project: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetPrivateConnectionResult
def get_private_connection_output(location: Optional[pulumi.Input[str]] = None,
                           private_connection_id: Optional[pulumi.Input[str]] = None,
                           project: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetPrivateConnectionResult]
Copy
func LookupPrivateConnection(ctx *Context, args *LookupPrivateConnectionArgs, opts ...InvokeOption) (*LookupPrivateConnectionResult, error)
func LookupPrivateConnectionOutput(ctx *Context, args *LookupPrivateConnectionOutputArgs, opts ...InvokeOption) LookupPrivateConnectionResultOutput
Copy

> Note: This function is named LookupPrivateConnection in the Go SDK.

public static class GetPrivateConnection 
{
    public static Task<GetPrivateConnectionResult> InvokeAsync(GetPrivateConnectionArgs args, InvokeOptions? opts = null)
    public static Output<GetPrivateConnectionResult> Invoke(GetPrivateConnectionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPrivateConnectionResult> getPrivateConnection(GetPrivateConnectionArgs args, InvokeOptions options)
public static Output<GetPrivateConnectionResult> getPrivateConnection(GetPrivateConnectionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:datamigration/v1:getPrivateConnection
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Location This property is required. string
PrivateConnectionId This property is required. string
Project string
Location This property is required. string
PrivateConnectionId This property is required. string
Project string
location This property is required. String
privateConnectionId This property is required. String
project String
location This property is required. string
privateConnectionId This property is required. string
project string
location This property is required. str
private_connection_id This property is required. str
project str
location This property is required. String
privateConnectionId This property is required. String
project String

getPrivateConnection Result

The following output properties are available:

CreateTime string
The create time of the resource.
DisplayName string
The private connection display name.
Error Pulumi.GoogleNative.Datamigration.V1.Outputs.StatusResponse
The error details in case of state FAILED.
Labels Dictionary<string, string>
The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Name string
The name of the resource.
State string
The state of the private connection.
UpdateTime string
The last update time of the resource.
VpcPeeringConfig Pulumi.GoogleNative.Datamigration.V1.Outputs.VpcPeeringConfigResponse
VPC peering configuration.
CreateTime string
The create time of the resource.
DisplayName string
The private connection display name.
Error StatusResponse
The error details in case of state FAILED.
Labels map[string]string
The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Name string
The name of the resource.
State string
The state of the private connection.
UpdateTime string
The last update time of the resource.
VpcPeeringConfig VpcPeeringConfigResponse
VPC peering configuration.
createTime String
The create time of the resource.
displayName String
The private connection display name.
error StatusResponse
The error details in case of state FAILED.
labels Map<String,String>
The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
name String
The name of the resource.
state String
The state of the private connection.
updateTime String
The last update time of the resource.
vpcPeeringConfig VpcPeeringConfigResponse
VPC peering configuration.
createTime string
The create time of the resource.
displayName string
The private connection display name.
error StatusResponse
The error details in case of state FAILED.
labels {[key: string]: string}
The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
name string
The name of the resource.
state string
The state of the private connection.
updateTime string
The last update time of the resource.
vpcPeeringConfig VpcPeeringConfigResponse
VPC peering configuration.
create_time str
The create time of the resource.
display_name str
The private connection display name.
error StatusResponse
The error details in case of state FAILED.
labels Mapping[str, str]
The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
name str
The name of the resource.
state str
The state of the private connection.
update_time str
The last update time of the resource.
vpc_peering_config VpcPeeringConfigResponse
VPC peering configuration.
createTime String
The create time of the resource.
displayName String
The private connection display name.
error Property Map
The error details in case of state FAILED.
labels Map<String>
The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
name String
The name of the resource.
state String
The state of the private connection.
updateTime String
The last update time of the resource.
vpcPeeringConfig Property Map
VPC peering configuration.

Supporting Types

StatusResponse

Code This property is required. int
The status code, which should be an enum value of google.rpc.Code.
Details This property is required. List<ImmutableDictionary<string, string>>
A list of messages that carry the error details. There is a common set of message types for APIs to use.
Message This property is required. string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Code This property is required. int
The status code, which should be an enum value of google.rpc.Code.
Details This property is required. []map[string]string
A list of messages that carry the error details. There is a common set of message types for APIs to use.
Message This property is required. string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
code This property is required. Integer
The status code, which should be an enum value of google.rpc.Code.
details This property is required. List<Map<String,String>>
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. String
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
code This property is required. number
The status code, which should be an enum value of google.rpc.Code.
details This property is required. {[key: string]: string}[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
code This property is required. int
The status code, which should be an enum value of google.rpc.Code.
details This property is required. Sequence[Mapping[str, str]]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. str
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
code This property is required. Number
The status code, which should be an enum value of google.rpc.Code.
details This property is required. List<Map<String>>
A list of messages that carry the error details. There is a common set of message types for APIs to use.
message This property is required. String
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

VpcPeeringConfigResponse

Subnet This property is required. string
A free subnet for peering. (CIDR of /29)
VpcName This property is required. string
Fully qualified name of the VPC that Database Migration Service will peer to.
Subnet This property is required. string
A free subnet for peering. (CIDR of /29)
VpcName This property is required. string
Fully qualified name of the VPC that Database Migration Service will peer to.
subnet This property is required. String
A free subnet for peering. (CIDR of /29)
vpcName This property is required. String
Fully qualified name of the VPC that Database Migration Service will peer to.
subnet This property is required. string
A free subnet for peering. (CIDR of /29)
vpcName This property is required. string
Fully qualified name of the VPC that Database Migration Service will peer to.
subnet This property is required. str
A free subnet for peering. (CIDR of /29)
vpc_name This property is required. str
Fully qualified name of the VPC that Database Migration Service will peer to.
subnet This property is required. String
A free subnet for peering. (CIDR of /29)
vpcName This property is required. String
Fully qualified name of the VPC that Database Migration Service will peer to.

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.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi