Liking cljdoc? Tell your friends :D

happygapi.compute.instances

Compute Engine API: instances. Creates and runs virtual machines on Google Cloud Platform. See: https://cloud.google.com/compute/api/reference/rest/v1/instances

Compute Engine API: instances.
Creates and runs virtual machines on Google Cloud Platform. 
See: https://cloud.google.com/compute/api/reference/rest/v1/instances
raw docstring

addAccessConfig$clj

(addAccessConfig$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/addAccessConfig

Required parameters: zone, networkInterface, project, instance

Optional parameters: requestId

Body:

{:publicPtrDomainName string, :name string, :natIP string, :type string, :externalIpv6 string, :kind string, :networkTier string, :setPublicPtr boolean, :externalIpv6PrefixLength integer}

Adds an access config to an instance's network interface.

https://cloud.google.com/compute/api/reference/rest/v1/instances/addAccessConfig

Required parameters: zone, networkInterface, project, instance

Optional parameters: requestId

Body: 

{:publicPtrDomainName string,
 :name string,
 :natIP string,
 :type string,
 :externalIpv6 string,
 :kind string,
 :networkTier string,
 :setPublicPtr boolean,
 :externalIpv6PrefixLength integer}

Adds an access config to an instance's network interface.
raw docstring

addResourcePolicies$clj

(addResourcePolicies$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/addResourcePolicies

Required parameters: project, zone, instance

Optional parameters: requestId

Body:

{:resourcePolicies [string]}

Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations.

https://cloud.google.com/compute/api/reference/rest/v1/instances/addResourcePolicies

Required parameters: project, zone, instance

Optional parameters: requestId

Body: 

{:resourcePolicies [string]}

Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations.
raw docstring

aggregatedList$clj

(aggregatedList$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/aggregatedList

Required parameters: project

Optional parameters: includeAllScopes, pageToken, returnPartialSuccess, maxResults, filter, orderBy

Retrieves aggregated list of all of the instances in your project across all regions and zones.

https://cloud.google.com/compute/api/reference/rest/v1/instances/aggregatedList

Required parameters: project

Optional parameters: includeAllScopes, pageToken, returnPartialSuccess, maxResults, filter, orderBy

Retrieves aggregated list of all of the instances in your project across all regions and zones.
raw docstring

attachDisk$clj

(attachDisk$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/attachDisk

Required parameters: zone, instance, project

Optional parameters: requestId, forceAttach

Body:

{:interface string, :guestOsFeatures [{:type string}], :index integer, :deviceName string, :boot boolean, :mode string, :licenses [string], :type string, :source string, :autoDelete boolean, :kind string, :initializeParams {:description string, :labels {}, :sourceSnapshotEncryptionKey CustomerEncryptionKey, :resourcePolicies [string], :sourceImage string, :sourceImageEncryptionKey CustomerEncryptionKey, :sourceSnapshot string, :diskType string, :onUpdateAction string, :diskSizeGb string, :diskName string, :provisionedIops string}, :diskSizeGb string, :diskEncryptionKey {:kmsKeyName string, :rawKey string, :kmsKeyServiceAccount string, :sha256 string}, :shieldedInstanceInitialState {:dbs [FileContentBuffer], :pk FileContentBuffer, :dbxs [FileContentBuffer], :keks [FileContentBuffer]}}

Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/attachDisk

Required parameters: zone, instance, project

Optional parameters: requestId, forceAttach

Body: 

{:interface string,
 :guestOsFeatures [{:type string}],
 :index integer,
 :deviceName string,
 :boot boolean,
 :mode string,
 :licenses [string],
 :type string,
 :source string,
 :autoDelete boolean,
 :kind string,
 :initializeParams {:description string,
                    :labels {},
                    :sourceSnapshotEncryptionKey CustomerEncryptionKey,
                    :resourcePolicies [string],
                    :sourceImage string,
                    :sourceImageEncryptionKey CustomerEncryptionKey,
                    :sourceSnapshot string,
                    :diskType string,
                    :onUpdateAction string,
                    :diskSizeGb string,
                    :diskName string,
                    :provisionedIops string},
 :diskSizeGb string,
 :diskEncryptionKey {:kmsKeyName string,
                     :rawKey string,
                     :kmsKeyServiceAccount string,
                     :sha256 string},
 :shieldedInstanceInitialState {:dbs [FileContentBuffer],
                                :pk FileContentBuffer,
                                :dbxs [FileContentBuffer],
                                :keks [FileContentBuffer]}}

Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance.
raw docstring

bulkInsert$clj

(bulkInsert$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/bulkInsert

Required parameters: zone, project

Optional parameters: requestId

Body:

{:sourceInstanceTemplate string, :locationPolicy {:locations {}}, :instanceProperties {:description string, :tags Tags, :labels {}, :shieldedInstanceConfig ShieldedInstanceConfig, :scheduling Scheduling, :resourcePolicies [string], :privateIpv6GoogleAccess string, :canIpForward boolean, :guestAccelerators [AcceleratorConfig], :machineType string, :confidentialInstanceConfig ConfidentialInstanceConfig, :advancedMachineFeatures AdvancedMachineFeatures, :disks [AttachedDisk], :reservationAffinity ReservationAffinity, :networkInterfaces [NetworkInterface], :metadata Metadata, :serviceAccounts [ServiceAccount], :minCpuPlatform string}, :namePattern string, :count string, :perInstanceProperties {}, :minCount string}

Creates multiple instances. Count specifies the number of instances to create.

https://cloud.google.com/compute/api/reference/rest/v1/instances/bulkInsert

Required parameters: zone, project

Optional parameters: requestId

Body: 

{:sourceInstanceTemplate string,
 :locationPolicy {:locations {}},
 :instanceProperties {:description string,
                      :tags Tags,
                      :labels {},
                      :shieldedInstanceConfig ShieldedInstanceConfig,
                      :scheduling Scheduling,
                      :resourcePolicies [string],
                      :privateIpv6GoogleAccess string,
                      :canIpForward boolean,
                      :guestAccelerators [AcceleratorConfig],
                      :machineType string,
                      :confidentialInstanceConfig ConfidentialInstanceConfig,
                      :advancedMachineFeatures AdvancedMachineFeatures,
                      :disks [AttachedDisk],
                      :reservationAffinity ReservationAffinity,
                      :networkInterfaces [NetworkInterface],
                      :metadata Metadata,
                      :serviceAccounts [ServiceAccount],
                      :minCpuPlatform string},
 :namePattern string,
 :count string,
 :perInstanceProperties {},
 :minCount string}

Creates multiple instances. Count specifies the number of instances to create.
raw docstring

delete$clj

(delete$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/delete

Required parameters: instance, zone, project

Optional parameters: requestId

Deletes the specified Instance resource. For more information, see Deleting an instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/delete

Required parameters: instance, zone, project

Optional parameters: requestId

Deletes the specified Instance resource. For more information, see Deleting an instance.
raw docstring

deleteAccessConfig$clj

(deleteAccessConfig$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/deleteAccessConfig

Required parameters: networkInterface, zone, accessConfig, project, instance

Optional parameters: requestId

Deletes an access config from an instance's network interface.

https://cloud.google.com/compute/api/reference/rest/v1/instances/deleteAccessConfig

Required parameters: networkInterface, zone, accessConfig, project, instance

Optional parameters: requestId

Deletes an access config from an instance's network interface.
raw docstring

detachDisk$clj

(detachDisk$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/detachDisk

Required parameters: project, zone, instance, deviceName

Optional parameters: requestId

Detaches a disk from an instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/detachDisk

Required parameters: project, zone, instance, deviceName

Optional parameters: requestId

Detaches a disk from an instance.
raw docstring

get$clj

(get$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/get

Required parameters: instance, project, zone

Optional parameters: none

Returns the specified Instance resource. Gets a list of available instances by making a list() request.

https://cloud.google.com/compute/api/reference/rest/v1/instances/get

Required parameters: instance, project, zone

Optional parameters: none

Returns the specified Instance resource. Gets a list of available instances by making a list() request.
raw docstring

getEffectiveFirewalls$clj

(getEffectiveFirewalls$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/getEffectiveFirewalls

Required parameters: project, networkInterface, instance, zone

Optional parameters: none

Returns effective firewalls applied to an interface of the instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/getEffectiveFirewalls

Required parameters: project, networkInterface, instance, zone

Optional parameters: none

Returns effective firewalls applied to an interface of the instance.
raw docstring

getGuestAttributes$clj

(getGuestAttributes$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/getGuestAttributes

Required parameters: instance, project, zone

Optional parameters: variableKey, queryPath

Returns the specified guest attributes entry.

https://cloud.google.com/compute/api/reference/rest/v1/instances/getGuestAttributes

Required parameters: instance, project, zone

Optional parameters: variableKey, queryPath

Returns the specified guest attributes entry.
raw docstring

getIamPolicy$clj

(getIamPolicy$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/getIamPolicy

Required parameters: zone, project, resource

Optional parameters: optionsRequestedPolicyVersion

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

https://cloud.google.com/compute/api/reference/rest/v1/instances/getIamPolicy

Required parameters: zone, project, resource

Optional parameters: optionsRequestedPolicyVersion

Gets the access control policy for a resource. May be empty if no such policy or resource exists.
raw docstring

getScreenshot$clj

(getScreenshot$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/getScreenshot

Required parameters: instance, project, zone

Optional parameters: none

Returns the screenshot from the specified instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/getScreenshot

Required parameters: instance, project, zone

Optional parameters: none

Returns the screenshot from the specified instance.
raw docstring

getSerialPortOutput$clj

(getSerialPortOutput$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/getSerialPortOutput

Required parameters: zone, project, instance

Optional parameters: port, start

Returns the last 1 MB of serial port output from the specified instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/getSerialPortOutput

Required parameters: zone, project, instance

Optional parameters: port, start

Returns the last 1 MB of serial port output from the specified instance.
raw docstring

getShieldedInstanceIdentity$clj

(getShieldedInstanceIdentity$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/getShieldedInstanceIdentity

Required parameters: project, zone, instance

Optional parameters: none

Returns the Shielded Instance Identity of an instance

https://cloud.google.com/compute/api/reference/rest/v1/instances/getShieldedInstanceIdentity

Required parameters: project, zone, instance

Optional parameters: none

Returns the Shielded Instance Identity of an instance
raw docstring

insert$clj

(insert$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/insert

Required parameters: zone, project

Optional parameters: sourceInstanceTemplate, requestId

Body:

{:description string, :tags {:fingerprint string, :items [string]}, :labels {}, :startRestricted boolean, :shieldedInstanceConfig {:enableVtpm boolean, :enableIntegrityMonitoring boolean, :enableSecureBoot boolean}, :scheduling {:automaticRestart boolean, :locationHint string, :onHostMaintenance string, :preemptible boolean, :nodeAffinities [SchedulingNodeAffinity], :minNodeCpus integer}, :resourcePolicies [string], :lastSuspendedTimestamp string, :creationTimestamp string, :zone string, :privateIpv6GoogleAccess string, :name string, :canIpForward boolean, :statusMessage string, :guestAccelerators [{:acceleratorType string, :acceleratorCount integer}], :selfLink string, :hostname string, :machineType string, :displayDevice {:enableDisplay boolean}, :confidentialInstanceConfig {:enableConfidentialCompute boolean}, :satisfiesPzs boolean, :status string, :advancedMachineFeatures {:threadsPerCore integer, :enableNestedVirtualization boolean}, :id string, :lastStopTimestamp string, :kind string, :disks [{:interface string, :guestOsFeatures [GuestOsFeature], :index integer, :deviceName string, :boot boolean, :mode string, :licenses [string], :type string, :source string, :autoDelete boolean, :kind string, :initializeParams AttachedDiskInitializeParams, :diskSizeGb string, :diskEncryptionKey CustomerEncryptionKey, :shieldedInstanceInitialState InitialStateConfig}], :lastStartTimestamp string, :cpuPlatform string, :reservationAffinity {:values [string], :consumeReservationType string, :key string}, :networkInterfaces [{:ipv6AccessType string, :stackType string, :accessConfigs [AccessConfig], :name string, :aliasIpRanges [AliasIpRange], :nicType string, :ipv6Address string, :ipv6AccessConfigs [AccessConfig], :kind string, :network string, :networkIP string, :fingerprint string, :subnetwork string}], :deletionProtection boolean, :metadata {:kind string, :items [{:key string, :value string}], :fingerprint string}, :fingerprint string, :shieldedInstanceIntegrityPolicy {:updateAutoLearnPolicy boolean}, :labelFingerprint string, :serviceAccounts [{:scopes [string], :email string}], :minCpuPlatform string}

Creates an instance resource in the specified project using the data included in the request.

https://cloud.google.com/compute/api/reference/rest/v1/instances/insert

Required parameters: zone, project

Optional parameters: sourceInstanceTemplate, requestId

Body: 

{:description string,
 :tags {:fingerprint string, :items [string]},
 :labels {},
 :startRestricted boolean,
 :shieldedInstanceConfig {:enableVtpm boolean,
                          :enableIntegrityMonitoring boolean,
                          :enableSecureBoot boolean},
 :scheduling {:automaticRestart boolean,
              :locationHint string,
              :onHostMaintenance string,
              :preemptible boolean,
              :nodeAffinities [SchedulingNodeAffinity],
              :minNodeCpus integer},
 :resourcePolicies [string],
 :lastSuspendedTimestamp string,
 :creationTimestamp string,
 :zone string,
 :privateIpv6GoogleAccess string,
 :name string,
 :canIpForward boolean,
 :statusMessage string,
 :guestAccelerators [{:acceleratorType string,
                      :acceleratorCount integer}],
 :selfLink string,
 :hostname string,
 :machineType string,
 :displayDevice {:enableDisplay boolean},
 :confidentialInstanceConfig {:enableConfidentialCompute boolean},
 :satisfiesPzs boolean,
 :status string,
 :advancedMachineFeatures {:threadsPerCore integer,
                           :enableNestedVirtualization boolean},
 :id string,
 :lastStopTimestamp string,
 :kind string,
 :disks [{:interface string,
          :guestOsFeatures [GuestOsFeature],
          :index integer,
          :deviceName string,
          :boot boolean,
          :mode string,
          :licenses [string],
          :type string,
          :source string,
          :autoDelete boolean,
          :kind string,
          :initializeParams AttachedDiskInitializeParams,
          :diskSizeGb string,
          :diskEncryptionKey CustomerEncryptionKey,
          :shieldedInstanceInitialState InitialStateConfig}],
 :lastStartTimestamp string,
 :cpuPlatform string,
 :reservationAffinity {:values [string],
                       :consumeReservationType string,
                       :key string},
 :networkInterfaces [{:ipv6AccessType string,
                      :stackType string,
                      :accessConfigs [AccessConfig],
                      :name string,
                      :aliasIpRanges [AliasIpRange],
                      :nicType string,
                      :ipv6Address string,
                      :ipv6AccessConfigs [AccessConfig],
                      :kind string,
                      :network string,
                      :networkIP string,
                      :fingerprint string,
                      :subnetwork string}],
 :deletionProtection boolean,
 :metadata {:kind string,
            :items [{:key string, :value string}],
            :fingerprint string},
 :fingerprint string,
 :shieldedInstanceIntegrityPolicy {:updateAutoLearnPolicy boolean},
 :labelFingerprint string,
 :serviceAccounts [{:scopes [string], :email string}],
 :minCpuPlatform string}

Creates an instance resource in the specified project using the data included in the request.
raw docstring

list$clj

(list$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/list

Required parameters: project, zone

Optional parameters: orderBy, filter, maxResults, pageToken, returnPartialSuccess

Retrieves the list of instances contained within the specified zone.

https://cloud.google.com/compute/api/reference/rest/v1/instances/list

Required parameters: project, zone

Optional parameters: orderBy, filter, maxResults, pageToken, returnPartialSuccess

Retrieves the list of instances contained within the specified zone.
raw docstring

listReferrers$clj

(listReferrers$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/listReferrers

Required parameters: instance, zone, project

Optional parameters: maxResults, pageToken, orderBy, returnPartialSuccess, filter

Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances.

https://cloud.google.com/compute/api/reference/rest/v1/instances/listReferrers

Required parameters: instance, zone, project

Optional parameters: maxResults, pageToken, orderBy, returnPartialSuccess, filter

Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances.
raw docstring

removeResourcePolicies$clj

(removeResourcePolicies$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/removeResourcePolicies

Required parameters: zone, instance, project

Optional parameters: requestId

Body:

{:resourcePolicies [string]}

Removes resource policies from an instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/removeResourcePolicies

Required parameters: zone, instance, project

Optional parameters: requestId

Body: 

{:resourcePolicies [string]}

Removes resource policies from an instance.
raw docstring

reset$clj

(reset$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/reset

Required parameters: zone, instance, project

Optional parameters: requestId

Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown. For more information, see Resetting an instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/reset

Required parameters: zone, instance, project

Optional parameters: requestId

Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown. For more information, see Resetting an instance.
raw docstring

setDeletionProtection$clj

(setDeletionProtection$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setDeletionProtection

Required parameters: resource, project, zone

Optional parameters: requestId, deletionProtection

Sets deletion protection on the instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setDeletionProtection

Required parameters: resource, project, zone

Optional parameters: requestId, deletionProtection

Sets deletion protection on the instance.
raw docstring

setDiskAutoDelete$clj

(setDiskAutoDelete$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setDiskAutoDelete

Required parameters: zone, project, instance, autoDelete, deviceName

Optional parameters: requestId

Sets the auto-delete flag for a disk attached to an instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setDiskAutoDelete

Required parameters: zone, project, instance, autoDelete, deviceName

Optional parameters: requestId

Sets the auto-delete flag for a disk attached to an instance.
raw docstring

setIamPolicy$clj

(setIamPolicy$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setIamPolicy

Required parameters: project, zone, resource

Optional parameters: none

Body:

{:etag string, :policy {:rules [Rule], :bindings [Binding], :auditConfigs [AuditConfig], :iamOwned boolean, :version integer, :etag string}, :bindings [{:condition Expr, :members [string], :bindingId string, :role string}]}

Sets the access control policy on the specified resource. Replaces any existing policy.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setIamPolicy

Required parameters: project, zone, resource

Optional parameters: none

Body: 

{:etag string,
 :policy {:rules [Rule],
          :bindings [Binding],
          :auditConfigs [AuditConfig],
          :iamOwned boolean,
          :version integer,
          :etag string},
 :bindings [{:condition Expr,
             :members [string],
             :bindingId string,
             :role string}]}

Sets the access control policy on the specified resource. Replaces any existing policy.
raw docstring

setLabels$clj

(setLabels$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setLabels

Required parameters: zone, project, instance

Optional parameters: requestId

Body:

{:labelFingerprint string, :labels {}}

Sets labels on an instance. To learn more about labels, read the Labeling Resources documentation.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setLabels

Required parameters: zone, project, instance

Optional parameters: requestId

Body: 

{:labelFingerprint string, :labels {}}

Sets labels on an instance. To learn more about labels, read the Labeling Resources documentation.
raw docstring

setMachineResources$clj

(setMachineResources$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setMachineResources

Required parameters: project, zone, instance

Optional parameters: requestId

Body:

{:guestAccelerators [{:acceleratorType string, :acceleratorCount integer}]}

Changes the number and/or type of accelerator for a stopped instance to the values specified in the request.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setMachineResources

Required parameters: project, zone, instance

Optional parameters: requestId

Body: 

{:guestAccelerators [{:acceleratorType string,
                      :acceleratorCount integer}]}

Changes the number and/or type of accelerator for a stopped instance to the values specified in the request.
raw docstring

setMachineType$clj

(setMachineType$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setMachineType

Required parameters: instance, project, zone

Optional parameters: requestId

Body:

{:machineType string}

Changes the machine type for a stopped instance to the machine type specified in the request.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setMachineType

Required parameters: instance, project, zone

Optional parameters: requestId

Body: 

{:machineType string}

Changes the machine type for a stopped instance to the machine type specified in the request.
raw docstring

setMetadata$clj

(setMetadata$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setMetadata

Required parameters: project, zone, instance

Optional parameters: requestId

Body:

{:kind string, :items [{:key string, :value string}], :fingerprint string}

Sets metadata for the specified instance to the data included in the request.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setMetadata

Required parameters: project, zone, instance

Optional parameters: requestId

Body: 

{:kind string,
 :items [{:key string, :value string}],
 :fingerprint string}

Sets metadata for the specified instance to the data included in the request.
raw docstring

setMinCpuPlatform$clj

(setMinCpuPlatform$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setMinCpuPlatform

Required parameters: instance, zone, project

Optional parameters: requestId

Body:

{:minCpuPlatform string}

Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, read Specifying a Minimum CPU Platform.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setMinCpuPlatform

Required parameters: instance, zone, project

Optional parameters: requestId

Body: 

{:minCpuPlatform string}

Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, read Specifying a Minimum CPU Platform.
raw docstring

setScheduling$clj

(setScheduling$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setScheduling

Required parameters: zone, instance, project

Optional parameters: requestId

Body:

{:automaticRestart boolean, :locationHint string, :onHostMaintenance string, :preemptible boolean, :nodeAffinities [{:values [string], :operator string, :key string}], :minNodeCpus integer}

Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a TERMINATED state. See Instance Life Cycle for more information on the possible instance states.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setScheduling

Required parameters: zone, instance, project

Optional parameters: requestId

Body: 

{:automaticRestart boolean,
 :locationHint string,
 :onHostMaintenance string,
 :preemptible boolean,
 :nodeAffinities [{:values [string], :operator string, :key string}],
 :minNodeCpus integer}

Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
raw docstring

setServiceAccount$clj

(setServiceAccount$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setServiceAccount

Required parameters: instance, zone, project

Optional parameters: requestId

Body:

{:email string, :scopes [string]}

Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setServiceAccount

Required parameters: instance, zone, project

Optional parameters: requestId

Body: 

{:email string, :scopes [string]}

Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.
raw docstring

setShieldedInstanceIntegrityPolicy$clj

(setShieldedInstanceIntegrityPolicy$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setShieldedInstanceIntegrityPolicy

Required parameters: zone, project, instance

Optional parameters: requestId

Body:

{:updateAutoLearnPolicy boolean}

Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setShieldedInstanceIntegrityPolicy

Required parameters: zone, project, instance

Optional parameters: requestId

Body: 

{:updateAutoLearnPolicy boolean}

Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
raw docstring

setTags$clj

(setTags$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/setTags

Required parameters: instance, project, zone

Optional parameters: requestId

Body:

{:fingerprint string, :items [string]}

Sets network tags for the specified instance to the data included in the request.

https://cloud.google.com/compute/api/reference/rest/v1/instances/setTags

Required parameters: instance, project, zone

Optional parameters: requestId

Body: 

{:fingerprint string, :items [string]}

Sets network tags for the specified instance to the data included in the request.
raw docstring

simulateMaintenanceEvent$clj

(simulateMaintenanceEvent$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/simulateMaintenanceEvent

Required parameters: project, instance, zone

Optional parameters: none

Simulates a maintenance event on the instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/simulateMaintenanceEvent

Required parameters: project, instance, zone

Optional parameters: none

Simulates a maintenance event on the instance.
raw docstring

start$clj

(start$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/start

Required parameters: instance, zone, project

Optional parameters: requestId

Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/start

Required parameters: instance, zone, project

Optional parameters: requestId

Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.
raw docstring

startWithEncryptionKey$clj

(startWithEncryptionKey$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/startWithEncryptionKey

Required parameters: project, zone, instance

Optional parameters: requestId

Body:

{:disks [{:source string, :diskEncryptionKey CustomerEncryptionKey}]}

Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/startWithEncryptionKey

Required parameters: project, zone, instance

Optional parameters: requestId

Body: 

{:disks [{:source string, :diskEncryptionKey CustomerEncryptionKey}]}

Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.
raw docstring

stop$clj

(stop$ auth parameters)

https://cloud.google.com/compute/api/reference/rest/v1/instances/stop

Required parameters: instance, zone, project

Optional parameters: requestId

Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.

https://cloud.google.com/compute/api/reference/rest/v1/instances/stop

Required parameters: instance, zone, project

Optional parameters: requestId

Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.
raw docstring

testIamPermissions$clj

(testIamPermissions$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/testIamPermissions

Required parameters: resource, zone, project

Optional parameters: none

Body:

{:permissions [string]}

Returns permissions that a caller has on the specified resource.

https://cloud.google.com/compute/api/reference/rest/v1/instances/testIamPermissions

Required parameters: resource, zone, project

Optional parameters: none

Body: 

{:permissions [string]}

Returns permissions that a caller has on the specified resource.
raw docstring

update$clj

(update$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/update

Required parameters: zone, project, instance

Optional parameters: requestId, minimalAction, mostDisruptiveAllowedAction

Body:

{:description string, :tags {:fingerprint string, :items [string]}, :labels {}, :startRestricted boolean, :shieldedInstanceConfig {:enableVtpm boolean, :enableIntegrityMonitoring boolean, :enableSecureBoot boolean}, :scheduling {:automaticRestart boolean, :locationHint string, :onHostMaintenance string, :preemptible boolean, :nodeAffinities [SchedulingNodeAffinity], :minNodeCpus integer}, :resourcePolicies [string], :lastSuspendedTimestamp string, :creationTimestamp string, :zone string, :privateIpv6GoogleAccess string, :name string, :canIpForward boolean, :statusMessage string, :guestAccelerators [{:acceleratorType string, :acceleratorCount integer}], :selfLink string, :hostname string, :machineType string, :displayDevice {:enableDisplay boolean}, :confidentialInstanceConfig {:enableConfidentialCompute boolean}, :satisfiesPzs boolean, :status string, :advancedMachineFeatures {:threadsPerCore integer, :enableNestedVirtualization boolean}, :id string, :lastStopTimestamp string, :kind string, :disks [{:interface string, :guestOsFeatures [GuestOsFeature], :index integer, :deviceName string, :boot boolean, :mode string, :licenses [string], :type string, :source string, :autoDelete boolean, :kind string, :initializeParams AttachedDiskInitializeParams, :diskSizeGb string, :diskEncryptionKey CustomerEncryptionKey, :shieldedInstanceInitialState InitialStateConfig}], :lastStartTimestamp string, :cpuPlatform string, :reservationAffinity {:values [string], :consumeReservationType string, :key string}, :networkInterfaces [{:ipv6AccessType string, :stackType string, :accessConfigs [AccessConfig], :name string, :aliasIpRanges [AliasIpRange], :nicType string, :ipv6Address string, :ipv6AccessConfigs [AccessConfig], :kind string, :network string, :networkIP string, :fingerprint string, :subnetwork string}], :deletionProtection boolean, :metadata {:kind string, :items [{:key string, :value string}], :fingerprint string}, :fingerprint string, :shieldedInstanceIntegrityPolicy {:updateAutoLearnPolicy boolean}, :labelFingerprint string, :serviceAccounts [{:scopes [string], :email string}], :minCpuPlatform string}

Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.

https://cloud.google.com/compute/api/reference/rest/v1/instances/update

Required parameters: zone, project, instance

Optional parameters: requestId, minimalAction, mostDisruptiveAllowedAction

Body: 

{:description string,
 :tags {:fingerprint string, :items [string]},
 :labels {},
 :startRestricted boolean,
 :shieldedInstanceConfig {:enableVtpm boolean,
                          :enableIntegrityMonitoring boolean,
                          :enableSecureBoot boolean},
 :scheduling {:automaticRestart boolean,
              :locationHint string,
              :onHostMaintenance string,
              :preemptible boolean,
              :nodeAffinities [SchedulingNodeAffinity],
              :minNodeCpus integer},
 :resourcePolicies [string],
 :lastSuspendedTimestamp string,
 :creationTimestamp string,
 :zone string,
 :privateIpv6GoogleAccess string,
 :name string,
 :canIpForward boolean,
 :statusMessage string,
 :guestAccelerators [{:acceleratorType string,
                      :acceleratorCount integer}],
 :selfLink string,
 :hostname string,
 :machineType string,
 :displayDevice {:enableDisplay boolean},
 :confidentialInstanceConfig {:enableConfidentialCompute boolean},
 :satisfiesPzs boolean,
 :status string,
 :advancedMachineFeatures {:threadsPerCore integer,
                           :enableNestedVirtualization boolean},
 :id string,
 :lastStopTimestamp string,
 :kind string,
 :disks [{:interface string,
          :guestOsFeatures [GuestOsFeature],
          :index integer,
          :deviceName string,
          :boot boolean,
          :mode string,
          :licenses [string],
          :type string,
          :source string,
          :autoDelete boolean,
          :kind string,
          :initializeParams AttachedDiskInitializeParams,
          :diskSizeGb string,
          :diskEncryptionKey CustomerEncryptionKey,
          :shieldedInstanceInitialState InitialStateConfig}],
 :lastStartTimestamp string,
 :cpuPlatform string,
 :reservationAffinity {:values [string],
                       :consumeReservationType string,
                       :key string},
 :networkInterfaces [{:ipv6AccessType string,
                      :stackType string,
                      :accessConfigs [AccessConfig],
                      :name string,
                      :aliasIpRanges [AliasIpRange],
                      :nicType string,
                      :ipv6Address string,
                      :ipv6AccessConfigs [AccessConfig],
                      :kind string,
                      :network string,
                      :networkIP string,
                      :fingerprint string,
                      :subnetwork string}],
 :deletionProtection boolean,
 :metadata {:kind string,
            :items [{:key string, :value string}],
            :fingerprint string},
 :fingerprint string,
 :shieldedInstanceIntegrityPolicy {:updateAutoLearnPolicy boolean},
 :labelFingerprint string,
 :serviceAccounts [{:scopes [string], :email string}],
 :minCpuPlatform string}

Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.
raw docstring

updateAccessConfig$clj

(updateAccessConfig$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/updateAccessConfig

Required parameters: networkInterface, zone, instance, project

Optional parameters: requestId

Body:

{:publicPtrDomainName string, :name string, :natIP string, :type string, :externalIpv6 string, :kind string, :networkTier string, :setPublicPtr boolean, :externalIpv6PrefixLength integer}

Updates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

https://cloud.google.com/compute/api/reference/rest/v1/instances/updateAccessConfig

Required parameters: networkInterface, zone, instance, project

Optional parameters: requestId

Body: 

{:publicPtrDomainName string,
 :name string,
 :natIP string,
 :type string,
 :externalIpv6 string,
 :kind string,
 :networkTier string,
 :setPublicPtr boolean,
 :externalIpv6PrefixLength integer}

Updates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
raw docstring

updateDisplayDevice$clj

(updateDisplayDevice$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/updateDisplayDevice

Required parameters: zone, instance, project

Optional parameters: requestId

Body:

{:enableDisplay boolean}

Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

https://cloud.google.com/compute/api/reference/rest/v1/instances/updateDisplayDevice

Required parameters: zone, instance, project

Optional parameters: requestId

Body: 

{:enableDisplay boolean}

Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
raw docstring

updateNetworkInterface$clj

(updateNetworkInterface$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/updateNetworkInterface

Required parameters: zone, instance, networkInterface, project

Optional parameters: requestId

Body:

{:ipv6AccessType string, :stackType string, :accessConfigs [{:publicPtrDomainName string, :name string, :natIP string, :type string, :externalIpv6 string, :kind string, :networkTier string, :setPublicPtr boolean, :externalIpv6PrefixLength integer}], :name string, :aliasIpRanges [{:subnetworkRangeName string, :ipCidrRange string}], :nicType string, :ipv6Address string, :ipv6AccessConfigs [{:publicPtrDomainName string, :name string, :natIP string, :type string, :externalIpv6 string, :kind string, :networkTier string, :setPublicPtr boolean, :externalIpv6PrefixLength integer}], :kind string, :network string, :networkIP string, :fingerprint string, :subnetwork string}

Updates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics.

https://cloud.google.com/compute/api/reference/rest/v1/instances/updateNetworkInterface

Required parameters: zone, instance, networkInterface, project

Optional parameters: requestId

Body: 

{:ipv6AccessType string,
 :stackType string,
 :accessConfigs [{:publicPtrDomainName string,
                  :name string,
                  :natIP string,
                  :type string,
                  :externalIpv6 string,
                  :kind string,
                  :networkTier string,
                  :setPublicPtr boolean,
                  :externalIpv6PrefixLength integer}],
 :name string,
 :aliasIpRanges [{:subnetworkRangeName string, :ipCidrRange string}],
 :nicType string,
 :ipv6Address string,
 :ipv6AccessConfigs [{:publicPtrDomainName string,
                      :name string,
                      :natIP string,
                      :type string,
                      :externalIpv6 string,
                      :kind string,
                      :networkTier string,
                      :setPublicPtr boolean,
                      :externalIpv6PrefixLength integer}],
 :kind string,
 :network string,
 :networkIP string,
 :fingerprint string,
 :subnetwork string}

Updates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics.
raw docstring

updateShieldedInstanceConfig$clj

(updateShieldedInstanceConfig$ auth parameters body)

https://cloud.google.com/compute/api/reference/rest/v1/instances/updateShieldedInstanceConfig

Required parameters: project, zone, instance

Optional parameters: requestId

Body:

{:enableVtpm boolean, :enableIntegrityMonitoring boolean, :enableSecureBoot boolean}

Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

https://cloud.google.com/compute/api/reference/rest/v1/instances/updateShieldedInstanceConfig

Required parameters: project, zone, instance

Optional parameters: requestId

Body: 

{:enableVtpm boolean,
 :enableIntegrityMonitoring boolean,
 :enableSecureBoot boolean}

Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close