Show / Hide Table of Contents

Class TargetInstancesResource

The "targetInstances" collection of methods.

Inheritance
object
TargetInstancesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class TargetInstancesResource

Constructors

TargetInstancesResource(IClientService)

Constructs a new resource.

Declaration
public TargetInstancesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

AggregatedList(string)

Retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Declaration
public virtual TargetInstancesResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type Name Description
string project

Project ID for this request.

Returns
Type Description
TargetInstancesResource.AggregatedListRequest

Delete(string, string, string)

Deletes the specified TargetInstance resource.

Declaration
public virtual TargetInstancesResource.DeleteRequest Delete(string project, string zone, string targetInstance)
Parameters
Type Name Description
string project

Project ID for this request.

string zone

Name of the zone scoping this request.

string targetInstance

Name of the TargetInstance resource to delete.

Returns
Type Description
TargetInstancesResource.DeleteRequest

Get(string, string, string)

Returns the specified TargetInstance resource.

Declaration
public virtual TargetInstancesResource.GetRequest Get(string project, string zone, string targetInstance)
Parameters
Type Name Description
string project

Project ID for this request.

string zone

Name of the zone scoping this request.

string targetInstance

Name of the TargetInstance resource to return.

Returns
Type Description
TargetInstancesResource.GetRequest

Insert(TargetInstance, string, string)

Creates a TargetInstance resource in the specified project and zone using the data included in the request.

Declaration
public virtual TargetInstancesResource.InsertRequest Insert(TargetInstance body, string project, string zone)
Parameters
Type Name Description
TargetInstance body

The body of the request.

string project

Project ID for this request.

string zone

Name of the zone scoping this request.

Returns
Type Description
TargetInstancesResource.InsertRequest

List(string, string)

Retrieves a list of TargetInstance resources available to the specified project and zone.

Declaration
public virtual TargetInstancesResource.ListRequest List(string project, string zone)
Parameters
Type Name Description
string project

Project ID for this request.

string zone

Name of the zone scoping this request.

Returns
Type Description
TargetInstancesResource.ListRequest

SetSecurityPolicy(SecurityPolicyReference, string, string, string)

Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview

Declaration
public virtual TargetInstancesResource.SetSecurityPolicyRequest SetSecurityPolicy(SecurityPolicyReference body, string project, string zone, string targetInstance)
Parameters
Type Name Description
SecurityPolicyReference body

The body of the request.

string project

Project ID for this request.

string zone

Name of the zone scoping this request.

string targetInstance

Name of the TargetInstance resource to which the security policy should be set. The name should conform to RFC1035.

Returns
Type Description
TargetInstancesResource.SetSecurityPolicyRequest

TestIamPermissions(TestPermissionsRequest, string, string, string)

Returns permissions that a caller has on the specified resource.

Declaration
public virtual TargetInstancesResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string zone, string resource)
Parameters
Type Name Description
TestPermissionsRequest body

The body of the request.

string project

Project ID for this request.

string zone

The name of the zone for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
TargetInstancesResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX