Harness v0.5.7 published on Saturday, Mar 8, 2025 by Pulumi
harness.autostopping.getGcpProxy
Explore with Pulumi AI
Data source for GCP Autostopping proxy
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.autostopping.AutostoppingFunctions;
import com.pulumi.harness.autostopping.inputs.GetGcpProxyArgs;
import java.util.List;
import java.util.ArrayList;
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 test = AutostoppingFunctions.getGcpProxy(GetGcpProxyArgs.builder()
            .identifier("identifier")
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: harness:autostopping:getGcpProxy
      arguments:
        identifier: identifier
Using getGcpProxy
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 getGcpProxy(args: GetGcpProxyArgs, opts?: InvokeOptions): Promise<GetGcpProxyResult>
function getGcpProxyOutput(args: GetGcpProxyOutputArgs, opts?: InvokeOptions): Output<GetGcpProxyResult>def get_gcp_proxy(allocate_static_ip: Optional[bool] = None,
                  api_key: Optional[str] = None,
                  certificates: Optional[GetGcpProxyCertificates] = None,
                  cloud_connector_id: Optional[str] = None,
                  delete_cloud_resources_on_destroy: Optional[bool] = None,
                  host_name: Optional[str] = None,
                  machine_type: Optional[str] = None,
                  name: Optional[str] = None,
                  region: Optional[str] = None,
                  security_groups: Optional[Sequence[str]] = None,
                  subnet_id: Optional[str] = None,
                  vpc: Optional[str] = None,
                  zone: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetGcpProxyResult
def get_gcp_proxy_output(allocate_static_ip: Optional[pulumi.Input[bool]] = None,
                  api_key: Optional[pulumi.Input[str]] = None,
                  certificates: Optional[pulumi.Input[GetGcpProxyCertificatesArgs]] = None,
                  cloud_connector_id: Optional[pulumi.Input[str]] = None,
                  delete_cloud_resources_on_destroy: Optional[pulumi.Input[bool]] = None,
                  host_name: Optional[pulumi.Input[str]] = None,
                  machine_type: Optional[pulumi.Input[str]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  region: Optional[pulumi.Input[str]] = None,
                  security_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                  subnet_id: Optional[pulumi.Input[str]] = None,
                  vpc: Optional[pulumi.Input[str]] = None,
                  zone: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetGcpProxyResult]func LookupGcpProxy(ctx *Context, args *LookupGcpProxyArgs, opts ...InvokeOption) (*LookupGcpProxyResult, error)
func LookupGcpProxyOutput(ctx *Context, args *LookupGcpProxyOutputArgs, opts ...InvokeOption) LookupGcpProxyResultOutput> Note: This function is named LookupGcpProxy in the Go SDK.
public static class GetGcpProxy 
{
    public static Task<GetGcpProxyResult> InvokeAsync(GetGcpProxyArgs args, InvokeOptions? opts = null)
    public static Output<GetGcpProxyResult> Invoke(GetGcpProxyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGcpProxyResult> getGcpProxy(GetGcpProxyArgs args, InvokeOptions options)
public static Output<GetGcpProxyResult> getGcpProxy(GetGcpProxyArgs args, InvokeOptions options)
fn::invoke:
  function: harness:autostopping/getGcpProxy:getGcpProxy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ApiKey string
- Harness NG API key
- CloudConnector stringId 
- Id of the cloud connector
- DeleteCloud boolResources On Destroy 
- HostName string
- Hostname for the proxy
- MachineType string
- Machine instance type
- Name string
- Name of the proxy
- Region string
- Region in which cloud resources are hosted
- SubnetId string
- VPC in which cloud resources are hosted
- Vpc string
- VPC in which cloud resources are hosted
- Zone string
- Zone in which cloud resources are hosted
- AllocateStatic boolIp 
- Boolean value to indicate if proxy vm needs to have static IP
- Certificates
GetGcp Proxy Certificates 
- SecurityGroups List<string>
- Security Group to define the security rules that determine the inbound and outbound traffic
- ApiKey string
- Harness NG API key
- CloudConnector stringId 
- Id of the cloud connector
- DeleteCloud boolResources On Destroy 
- HostName string
- Hostname for the proxy
- MachineType string
- Machine instance type
- Name string
- Name of the proxy
- Region string
- Region in which cloud resources are hosted
- SubnetId string
- VPC in which cloud resources are hosted
- Vpc string
- VPC in which cloud resources are hosted
- Zone string
- Zone in which cloud resources are hosted
- AllocateStatic boolIp 
- Boolean value to indicate if proxy vm needs to have static IP
- Certificates
GetGcp Proxy Certificates 
- SecurityGroups []string
- Security Group to define the security rules that determine the inbound and outbound traffic
- apiKey String
- Harness NG API key
- cloudConnector StringId 
- Id of the cloud connector
- deleteCloud BooleanResources On Destroy 
- hostName String
- Hostname for the proxy
- machineType String
- Machine instance type
- name String
- Name of the proxy
- region String
- Region in which cloud resources are hosted
- subnetId String
- VPC in which cloud resources are hosted
- vpc String
- VPC in which cloud resources are hosted
- zone String
- Zone in which cloud resources are hosted
- allocateStatic BooleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- certificates
GetGcp Proxy Certificates 
- securityGroups List<String>
- Security Group to define the security rules that determine the inbound and outbound traffic
- apiKey string
- Harness NG API key
- cloudConnector stringId 
- Id of the cloud connector
- deleteCloud booleanResources On Destroy 
- hostName string
- Hostname for the proxy
- machineType string
- Machine instance type
- name string
- Name of the proxy
- region string
- Region in which cloud resources are hosted
- subnetId string
- VPC in which cloud resources are hosted
- vpc string
- VPC in which cloud resources are hosted
- zone string
- Zone in which cloud resources are hosted
- allocateStatic booleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- certificates
GetGcp Proxy Certificates 
- securityGroups string[]
- Security Group to define the security rules that determine the inbound and outbound traffic
- api_key str
- Harness NG API key
- cloud_connector_ strid 
- Id of the cloud connector
- delete_cloud_ boolresources_ on_ destroy 
- host_name str
- Hostname for the proxy
- machine_type str
- Machine instance type
- name str
- Name of the proxy
- region str
- Region in which cloud resources are hosted
- subnet_id str
- VPC in which cloud resources are hosted
- vpc str
- VPC in which cloud resources are hosted
- zone str
- Zone in which cloud resources are hosted
- allocate_static_ boolip 
- Boolean value to indicate if proxy vm needs to have static IP
- certificates
GetGcp Proxy Certificates 
- security_groups Sequence[str]
- Security Group to define the security rules that determine the inbound and outbound traffic
- apiKey String
- Harness NG API key
- cloudConnector StringId 
- Id of the cloud connector
- deleteCloud BooleanResources On Destroy 
- hostName String
- Hostname for the proxy
- machineType String
- Machine instance type
- name String
- Name of the proxy
- region String
- Region in which cloud resources are hosted
- subnetId String
- VPC in which cloud resources are hosted
- vpc String
- VPC in which cloud resources are hosted
- zone String
- Zone in which cloud resources are hosted
- allocateStatic BooleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- certificates Property Map
- securityGroups List<String>
- Security Group to define the security rules that determine the inbound and outbound traffic
getGcpProxy Result
The following output properties are available:
- ApiKey string
- Harness NG API key
- CloudConnector stringId 
- Id of the cloud connector
- DeleteCloud boolResources On Destroy 
- HostName string
- Hostname for the proxy
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource
- MachineType string
- Machine instance type
- Name string
- Name of the proxy
- Region string
- Region in which cloud resources are hosted
- SubnetId string
- VPC in which cloud resources are hosted
- Vpc string
- VPC in which cloud resources are hosted
- Zone string
- Zone in which cloud resources are hosted
- AllocateStatic boolIp 
- Boolean value to indicate if proxy vm needs to have static IP
- Certificates
GetGcp Proxy Certificates 
- SecurityGroups List<string>
- Security Group to define the security rules that determine the inbound and outbound traffic
- ApiKey string
- Harness NG API key
- CloudConnector stringId 
- Id of the cloud connector
- DeleteCloud boolResources On Destroy 
- HostName string
- Hostname for the proxy
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource
- MachineType string
- Machine instance type
- Name string
- Name of the proxy
- Region string
- Region in which cloud resources are hosted
- SubnetId string
- VPC in which cloud resources are hosted
- Vpc string
- VPC in which cloud resources are hosted
- Zone string
- Zone in which cloud resources are hosted
- AllocateStatic boolIp 
- Boolean value to indicate if proxy vm needs to have static IP
- Certificates
GetGcp Proxy Certificates 
- SecurityGroups []string
- Security Group to define the security rules that determine the inbound and outbound traffic
- apiKey String
- Harness NG API key
- cloudConnector StringId 
- Id of the cloud connector
- deleteCloud BooleanResources On Destroy 
- hostName String
- Hostname for the proxy
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource
- machineType String
- Machine instance type
- name String
- Name of the proxy
- region String
- Region in which cloud resources are hosted
- subnetId String
- VPC in which cloud resources are hosted
- vpc String
- VPC in which cloud resources are hosted
- zone String
- Zone in which cloud resources are hosted
- allocateStatic BooleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- certificates
GetGcp Proxy Certificates 
- securityGroups List<String>
- Security Group to define the security rules that determine the inbound and outbound traffic
- apiKey string
- Harness NG API key
- cloudConnector stringId 
- Id of the cloud connector
- deleteCloud booleanResources On Destroy 
- hostName string
- Hostname for the proxy
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Unique identifier of the resource
- machineType string
- Machine instance type
- name string
- Name of the proxy
- region string
- Region in which cloud resources are hosted
- subnetId string
- VPC in which cloud resources are hosted
- vpc string
- VPC in which cloud resources are hosted
- zone string
- Zone in which cloud resources are hosted
- allocateStatic booleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- certificates
GetGcp Proxy Certificates 
- securityGroups string[]
- Security Group to define the security rules that determine the inbound and outbound traffic
- api_key str
- Harness NG API key
- cloud_connector_ strid 
- Id of the cloud connector
- delete_cloud_ boolresources_ on_ destroy 
- host_name str
- Hostname for the proxy
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Unique identifier of the resource
- machine_type str
- Machine instance type
- name str
- Name of the proxy
- region str
- Region in which cloud resources are hosted
- subnet_id str
- VPC in which cloud resources are hosted
- vpc str
- VPC in which cloud resources are hosted
- zone str
- Zone in which cloud resources are hosted
- allocate_static_ boolip 
- Boolean value to indicate if proxy vm needs to have static IP
- certificates
GetGcp Proxy Certificates 
- security_groups Sequence[str]
- Security Group to define the security rules that determine the inbound and outbound traffic
- apiKey String
- Harness NG API key
- cloudConnector StringId 
- Id of the cloud connector
- deleteCloud BooleanResources On Destroy 
- hostName String
- Hostname for the proxy
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource
- machineType String
- Machine instance type
- name String
- Name of the proxy
- region String
- Region in which cloud resources are hosted
- subnetId String
- VPC in which cloud resources are hosted
- vpc String
- VPC in which cloud resources are hosted
- zone String
- Zone in which cloud resources are hosted
- allocateStatic BooleanIp 
- Boolean value to indicate if proxy vm needs to have static IP
- certificates Property Map
- securityGroups List<String>
- Security Group to define the security rules that determine the inbound and outbound traffic
Supporting Types
GetGcpProxyCertificates   
- CertSecret stringId 
- Certificate secret ID
- KeySecret stringId 
- Private key secret ID
- CertSecret stringId 
- Certificate secret ID
- KeySecret stringId 
- Private key secret ID
- certSecret StringId 
- Certificate secret ID
- keySecret StringId 
- Private key secret ID
- certSecret stringId 
- Certificate secret ID
- keySecret stringId 
- Private key secret ID
- cert_secret_ strid 
- Certificate secret ID
- key_secret_ strid 
- Private key secret ID
- certSecret StringId 
- Certificate secret ID
- keySecret StringId 
- Private key secret ID
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
