Viewing docs for Google Cloud v9.29.0
published on Wednesday, Jun 24, 2026 by Pulumi
published on Wednesday, Jun 24, 2026 by Pulumi
Viewing docs for Google Cloud v9.29.0
published on Wednesday, Jun 24, 2026 by Pulumi
published on Wednesday, Jun 24, 2026 by Pulumi
Get information about a Google Apigee Instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myInstance = gcp.apigee.getInstance({
name: "my-instance-name",
orgId: "organizations/my-org-id",
});
import pulumi
import pulumi_gcp as gcp
my_instance = gcp.apigee.get_instance(name="my-instance-name",
org_id="organizations/my-org-id")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/apigee"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apigee.LookupInstance(ctx, &apigee.LookupInstanceArgs{
Name: "my-instance-name",
OrgId: "organizations/my-org-id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var myInstance = Gcp.Apigee.GetInstance.Invoke(new()
{
Name = "my-instance-name",
OrgId = "organizations/my-org-id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.apigee.ApigeeFunctions;
import com.pulumi.gcp.apigee.inputs.GetInstanceArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var myInstance = ApigeeFunctions.getInstance(GetInstanceArgs.builder()
.name("my-instance-name")
.orgId("organizations/my-org-id")
.build());
}
}
variables:
myInstance:
fn::invoke:
function: gcp:apigee:getInstance
arguments:
name: my-instance-name
orgId: organizations/my-org-id
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
data "gcp_apigee_getinstance" "myInstance" {
name = "my-instance-name"
org_id = "organizations/my-org-id"
}
Using getInstance
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 getInstance(args: GetInstanceArgs, opts?: InvokeOptions): Promise<GetInstanceResult>
function getInstanceOutput(args: GetInstanceOutputArgs, opts?: InvokeOptions): Output<GetInstanceResult>def get_instance(name: Optional[str] = None,
org_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceResult
def get_instance_output(name: pulumi.Input[Optional[str]] = None,
org_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceResult]func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)
func LookupInstanceOutput(ctx *Context, args *LookupInstanceOutputArgs, opts ...InvokeOption) LookupInstanceResultOutput> Note: This function is named LookupInstance in the Go SDK.
public static class GetInstance
{
public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceResult> Invoke(GetInstanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
public static Output<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
fn::invoke:
function: gcp:apigee/getInstance:getInstance
arguments:
# arguments dictionarydata "gcp_apigee_getinstance" "name" {
# arguments
}The following arguments are supported:
getInstance Result
The following output properties are available:
- Access
Logging List<GetConfigs Instance Access Logging Config> - Consumer
Accept List<string>Lists - Deletion
Policy string - Description string
- Disk
Encryption stringKey Name - Display
Name string - Host string
- The hostname or IP address of the exposed Apigee endpoint. [3]
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Range string - The IP range used by the instance. [3]
- Location string
- The GCP region where the instance resides. [3]
- Name string
- Org
Id string - Peering
Cidr stringRange - Port string
- The port number of the exposed Apigee endpoint. [3]
- Service
Attachment string - The PSC service attachment for the instance. [3]
- Access
Logging []GetConfigs Instance Access Logging Config - Consumer
Accept []stringLists - Deletion
Policy string - Description string
- Disk
Encryption stringKey Name - Display
Name string - Host string
- The hostname or IP address of the exposed Apigee endpoint. [3]
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Range string - The IP range used by the instance. [3]
- Location string
- The GCP region where the instance resides. [3]
- Name string
- Org
Id string - Peering
Cidr stringRange - Port string
- The port number of the exposed Apigee endpoint. [3]
- Service
Attachment string - The PSC service attachment for the instance. [3]
- access_
logging_ list(object)configs - consumer_
accept_ list(string)lists - deletion_
policy string - description string
- disk_
encryption_ stringkey_ name - display_
name string - host string
- The hostname or IP address of the exposed Apigee endpoint. [3]
- id string
- The provider-assigned unique ID for this managed resource.
- ip_
range string - The IP range used by the instance. [3]
- location string
- The GCP region where the instance resides. [3]
- name string
- org_
id string - peering_
cidr_ stringrange - port string
- The port number of the exposed Apigee endpoint. [3]
- service_
attachment string - The PSC service attachment for the instance. [3]
- access
Logging List<GetConfigs Instance Access Logging Config> - consumer
Accept List<String>Lists - deletion
Policy String - description String
- disk
Encryption StringKey Name - display
Name String - host String
- The hostname or IP address of the exposed Apigee endpoint. [3]
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Range String - The IP range used by the instance. [3]
- location String
- The GCP region where the instance resides. [3]
- name String
- org
Id String - peering
Cidr StringRange - port String
- The port number of the exposed Apigee endpoint. [3]
- service
Attachment String - The PSC service attachment for the instance. [3]
- access
Logging GetConfigs Instance Access Logging Config[] - consumer
Accept string[]Lists - deletion
Policy string - description string
- disk
Encryption stringKey Name - display
Name string - host string
- The hostname or IP address of the exposed Apigee endpoint. [3]
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Range string - The IP range used by the instance. [3]
- location string
- The GCP region where the instance resides. [3]
- name string
- org
Id string - peering
Cidr stringRange - port string
- The port number of the exposed Apigee endpoint. [3]
- service
Attachment string - The PSC service attachment for the instance. [3]
- access_
logging_ Sequence[Getconfigs Instance Access Logging Config] - consumer_
accept_ Sequence[str]lists - deletion_
policy str - description str
- disk_
encryption_ strkey_ name - display_
name str - host str
- The hostname or IP address of the exposed Apigee endpoint. [3]
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
range str - The IP range used by the instance. [3]
- location str
- The GCP region where the instance resides. [3]
- name str
- org_
id str - peering_
cidr_ strrange - port str
- The port number of the exposed Apigee endpoint. [3]
- service_
attachment str - The PSC service attachment for the instance. [3]
- access
Logging List<Property Map>Configs - consumer
Accept List<String>Lists - deletion
Policy String - description String
- disk
Encryption StringKey Name - display
Name String - host String
- The hostname or IP address of the exposed Apigee endpoint. [3]
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Range String - The IP range used by the instance. [3]
- location String
- The GCP region where the instance resides. [3]
- name String
- org
Id String - peering
Cidr StringRange - port String
- The port number of the exposed Apigee endpoint. [3]
- service
Attachment String - The PSC service attachment for the instance. [3]
Supporting Types
GetInstanceAccessLoggingConfig
- Enabled bool
- Boolean flag that specifies whether the customer access log feature is enabled.
- Filter string
- Ship the access log entries that match the statusCode defined in the filter. The statusCode is the only expected/supported filter field. (Ex: statusCode) The filter will parse it to the Common Expression Language semantics for expression evaluation to build the filter condition. (Ex: "filter": statusCode >= 200 && statusCode < 300 )
- Enabled bool
- Boolean flag that specifies whether the customer access log feature is enabled.
- Filter string
- Ship the access log entries that match the statusCode defined in the filter. The statusCode is the only expected/supported filter field. (Ex: statusCode) The filter will parse it to the Common Expression Language semantics for expression evaluation to build the filter condition. (Ex: "filter": statusCode >= 200 && statusCode < 300 )
- enabled bool
- Boolean flag that specifies whether the customer access log feature is enabled.
- filter string
- Ship the access log entries that match the statusCode defined in the filter. The statusCode is the only expected/supported filter field. (Ex: statusCode) The filter will parse it to the Common Expression Language semantics for expression evaluation to build the filter condition. (Ex: "filter": statusCode >= 200 && statusCode < 300 )
- enabled Boolean
- Boolean flag that specifies whether the customer access log feature is enabled.
- filter String
- Ship the access log entries that match the statusCode defined in the filter. The statusCode is the only expected/supported filter field. (Ex: statusCode) The filter will parse it to the Common Expression Language semantics for expression evaluation to build the filter condition. (Ex: "filter": statusCode >= 200 && statusCode < 300 )
- enabled boolean
- Boolean flag that specifies whether the customer access log feature is enabled.
- filter string
- Ship the access log entries that match the statusCode defined in the filter. The statusCode is the only expected/supported filter field. (Ex: statusCode) The filter will parse it to the Common Expression Language semantics for expression evaluation to build the filter condition. (Ex: "filter": statusCode >= 200 && statusCode < 300 )
- enabled bool
- Boolean flag that specifies whether the customer access log feature is enabled.
- filter str
- Ship the access log entries that match the statusCode defined in the filter. The statusCode is the only expected/supported filter field. (Ex: statusCode) The filter will parse it to the Common Expression Language semantics for expression evaluation to build the filter condition. (Ex: "filter": statusCode >= 200 && statusCode < 300 )
- enabled Boolean
- Boolean flag that specifies whether the customer access log feature is enabled.
- filter String
- Ship the access log entries that match the statusCode defined in the filter. The statusCode is the only expected/supported filter field. (Ex: statusCode) The filter will parse it to the Common Expression Language semantics for expression evaluation to build the filter condition. (Ex: "filter": statusCode >= 200 && statusCode < 300 )
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
Viewing docs for Google Cloud v9.29.0
published on Wednesday, Jun 24, 2026 by Pulumi
published on Wednesday, Jun 24, 2026 by Pulumi