Introduction
With the IBM Cloud® Virtual Private Cloud (VPC) API, you can programmatically provision and manage resources that are part of the IBM VPC Infrastructure as a Service (IaaS) across compute, storage, and networking. For more information on the IBM Cloud® Virtual Private Cloud and VPC resources, see Getting started with Virtual Private Cloud (VPC).
SDKs
SDKs for Java, Node, Python, and Go are available for this API. The client libraries that are provided by the SDKs implement best practices for using the API and reduce the amount of code that you need to write. The tab for each language includes code examples that demonstrate how to use the client libraries.
To learn about using IBM Cloud® Virtual Private Cloud, see:
This documentation describes the Go SDK version
0.64.1. This SDK uses Semantic Versioning, and as such, there may
be backward-incompatible changes for any new 0.y.z
version. For information about the latest Go
SDK, see Releases. For instructions and
examples on using IBM Cloud services in an IBM Cloud SDK client library, see Using the
SDK.
This documentation describes the Java SDK version
0.23.0. This SDK uses Semantic Versioning, and as such, there may
be backward-incompatible changes for any new 0.y.z
version. For information about the latest Java
SDK, see Releases. For instructions and
examples on using IBM Cloud services in an IBM Cloud SDK client library, see Using the
SDK.
This documentation describes the Node SDK version
0.24.0. This SDK uses Semantic Versioning, and as such, there may
be backward-incompatible changes for any new 0.y.z
version. For information about the latest Node
SDK, see Releases. For instructions and
examples on using IBM Cloud services in an IBM Cloud SDK client library, see Using the
SDK.
This documentation describes the Python SDK
version 0.26.3. This SDK uses Semantic Versioning, and as such,
there may be backward-incompatible changes for any new 0.y.z
version. For information about the
latest Python SDK, see Releases. For
instructions and examples on using IBM Cloud services in an IBM Cloud SDK client library, see Using
the SDK.
The code examples on this tab use the client library that is provided for Go.
Installation:
go get github.com/IBM/vpc-go-sdk@v0.64.1
For more information, view the project on GitHub: https://github.com/IBM/vpc-go-sdk/. See also Using the SDK.
The code examples on this tab use the client library that is provided for Java.
Maven example:
<dependency>
<groupId>com.ibm.cloud</groupId>
<artifactId>vpc</artifactId>
<version>0.23.0</version>
</dependency>
Gradle example:
compile 'com.ibm.cloud:vpc:0.23.0'
For more information, view the project on GitHub: https://github.com/IBM/vpc-java-sdk/. See also Using the SDK.
The code examples on this tab use the client library that is provided for Node.
Installation:
npm install ibm-vpc
For more information, view the project on GitHub: https://github.com/IBM/vpc-node-sdk/. See also Using the SDK.
The code examples on this tab use the client library that is provided for Python.
Installation:
pip install --upgrade "ibm-vpc>=0.26.3"
For more information, view the project on GitHub: https://github.com/IBM/vpc-python-sdk/. See also the Python client library for IBM Cloud VPC Services https://pypi.org/project/ibm-vpc/ and Using the SDK.
Endpoint URLs
The IBM Cloud VPC API is available in the following IBM Cloud® regions:
Location | Region | Endpoint (service URL) |
---|---|---|
Washington DC | us-east | https://us-east.iaas.cloud.ibm.com/v1 |
Dallas | us-south | https://us-south.iaas.cloud.ibm.com/v1 |
Toronto | ca-tor | https://ca-tor.iaas.cloud.ibm.com/v1 |
São Paulo | br-sao | https://br-sao.iaas.cloud.ibm.com/v1 |
Frankfurt | eu-de | https://eu-de.iaas.cloud.ibm.com/v1 |
Madrid | eu-es | https://eu-es.iaas.cloud.ibm.com/v1 |
London | eu-gb | https://eu-gb.iaas.cloud.ibm.com/v1 |
Sydney | au-syd | https://au-syd.iaas.cloud.ibm.com/v1 |
Osaka | jp-osa | https://jp-osa.iaas.cloud.ibm.com/v1 |
Tokyo | jp-tok | https://jp-tok.iaas.cloud.ibm.com/v1 |
To call the API, select the service URL that corresponds to the region of your choice and add a
method path to form the complete request URL. For example, to list all images available in the
us-south
region, make a GET
request to https://us-south.iaas.cloud.ibm.com/v1/images
.
To change the SDK service URL, reinstantiate the service instance with a different region-specific URL. For more information, see Using the SDK.
Example request to call the us-south
service URL:
curl -H "Authorization: Bearer {token}" -X {http_method} "https://us-south.iaas.cloud.ibm.com/v1{path}"
Replace {token}
, {http_method}
, and {path}
in this example with the values for your particular
request.
Default service URL:
https://us-south.iaas.cloud.ibm.com/v1
Example to change the service URL to the United Kingdom region:
authenticator := &core.IamAuthenticator{
ApiKey: "{api_key}",
}
options := &vpcv1.VpcV1Options{
Authenticator: authenticator,
URL: "https://eu-gb.iaas.cloud.ibm.com/v1",
}
For more information, see Using the SDK.
Default service URL:
https://us-south.iaas.cloud.ibm.com/v1
Example to change the service URL to the United Kingdom region:
Authenticator authenticator = new IamAuthenticator("{api_key}");
Vpc service = new Vpc("{version}", Vpc.DEFAULT_SERVICE_NAME, authenticator);
setServiceUrl("https://eu-gb.iaas.cloud.ibm.com/v1");
For more information, see Using the SDK.
Default service URL:
https://us-south.iaas.cloud.ibm.com/v1
Example to change the service URL to the United Kingdom region:
const service = {
authenticator: new IamAuthenticator({
apikey: '{api_key}'
}),
serviceUrl: 'https://eu-gb.iaas.cloud.ibm.com/v1'
};
const vpcService = new VpcV1(service);
For more information, see Using the SDK.
Default service URL:
https://us-south.iaas.cloud.ibm.com/v1
Example to change the service URL to the United Kingdom region:
from ibm_vpc import VpcV1
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
authenticator = IAMAuthenticator('apikey')
service = VpcV1(authenticator=authenticator)
service.set_service_url('https://eu-gb.iaas.cloud.ibm.com/v1')
For more information, see Using the SDK.
Authentication
The IBM Cloud VPC API uses Identity and Access Management (IAM) to authenticate requests. To call each API method, you must be assigned a role that includes the required IAM actions. Each method has an Authorization section that lists the required actions and, if applicable, the conditions under which each action is required. Check your access on the IBM Cloud console by navigating to Users > User > Access.
For more information about IAM actions and how they map to roles, see Assigning access to account management services and Managing IAM access for VPC Infrastructure Services.
Learn about obtaining an IAM token for an authenticated user or service ID in the IAM Identity Services API. If you first create an API key, you can use it to generate an IAM token.
To use the API, add a valid IAM token to the HTTP Authorization
request header. For example, -H 'Authorization: Bearer {token}'
.
When you use the SDK, configure an IAM authenticator with the IAM API key. The authenticator automatically obtains the IAM access token for the API key and includes it with each request. You can construct an authenticator in either of two ways:
- Programmatically, by constructing an IAM authenticator instance and supplying your IAM API key.
- Externally, in configuration options that are then used by the SDK to construct an IAM authenticator at run time.
Provide external configuration options by either:
- Storing the configuration options in environment variables. When you initialize the service client, the SDK constructs the authenticator by reading the configuration properties directly from the environment variables.
- Saving the configuration options in a file. When you initialize the service client, the SDK
constructs the authenticator by reading the configuration properties from the file specified by
the
IBM_CREDENTIALS_FILE
environment variable.
In this example of using external configuration properties, an IAM authenticator instance is created with the configured API key, and then the service client is constructed with this authenticator instance and the configured service URL.
For more information, see the Authentication section in the IBM Cloud SDK Common documentation.
Outside of development and testing, never hard-code secrets (such as IAM API keys) into a client application.
To retrieve your access token:
curl -X POST "https://iam.cloud.ibm.com/identity/token" --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' --data-urlencode 'grant_type=urn:ibm:params:oauth:grant-type:apikey' --data-urlencode 'apikey={api_key}'
To use the API, replace {token}
with the token obtained above from IAM, replace {http_method}
with an HTTP method such as POST
, and replace {url}
with a request URL such as
https://us-south.iaas.cloud.ibm.com/v1/keys
:
curl -H "Authorization: Bearer {token}" -X {http_method} "{url}"
Setting client options programmatically
Construct the service client programmatically, where {api_key}
is your hardcoded IAM API
key:
import {
"github.com/IBM/go-sdk-core/v5/core"
"github.com/IBM/vpc-go-sdk/vpcv1"
}
// Create an IAM authenticator.
authenticator := &core.IamAuthenticator{
ApiKey: "{api_key}",
}
// Construct an "options" struct for creating the service client.
options := &vpcv1.VpcV1Options{
Authenticator: authenticator, // required
URL: "https://us-east.iaas.cloud.ibm.com/v1", // optional
}
// Construct the service client.
vpcService, err := vpcv1.NewVpcV1(options)
if err != nil {
panic(err)
}
Service operations can now be invoked using the vpcService
variable.
Setting client options through environment variables
Export environment variables to implement service client options, where {service_url}
is an
endpoint URL for the service and {api_key}
is an IAM API
key.
export VPC_URL={service_url}
export VPC_AUTH_TYPE=iam
export VPC_APIKEY={api_key}
Construct the service client using external configuration. vpcv1.NewVpcV1UsingExternalConfig()
initializes the client with the environment variables, using them for subsequent authentication.
vpcService, err := vpcv1.NewVpcV1UsingExternalConfig()
Setting client options through a credentials file
Store credentials in a file such as my-credentials.env
, where {service_url}
is an endpoint URL
for the service and {api_key}
is an IAM API
key.
VPC_URL={service_url}
VPC_AUTH_TYPE=iam
VPC_APIKEY={api_key}
Export the name of the file with an environment variable, where {credential_file_path}
is the
absolute path to your credentials file, such as "$HOME/secrets/vpc-credentials.env"
.
export IBM_CREDENTIALS_FILE={credential_file_path}
Construct the service client using external configuration. vpcv1.NewVpcV1UsingExternalConfig()
initializes with the defined credential file, using it for subsequent authentication.
vpcService, err := vpcv1.NewVpcV1UsingExternalConfig()
Setting client options programmatically
Construct the service client programmatically, where {api_key}
is your hardcoded IAM API key.
import com.ibm.cloud.is.vpc.v1.Vpc;
import com.ibm.cloud.sdk.core.security.Authenticator;
import com.ibm.cloud.sdk.core.security.IamAuthenticator;
// Create an IAM authenticator.
Authenticator authenticator = new IamAuthenticator.Builder()
.apikey("{api_key}")
.build();
// Construct the service client.
Vpc service = new Vpc(Vpc.DEFAULT_SERVICE_NAME, authenticator);
// Set our custom service URL (optional).
service.setServiceUrl("https://us-east.iaas.cloud.ibm.com/v1");
Setting client options through environment variables
Export environment variables to implement service client options, where {service_url}
is an
endpoint URL for the service and {api_key}
is an IAM API
key.
export VPC_URL={service_url}
export VPC_AUTH_TYPE=iam
export VPC_APIKEY={api_key}
Construct the service client using external configuration. Vpc.newInstance()
initializes the
client with the environment variables, using them for subsequent authentication.
import com.ibm.cloud.is.vpc.v1.Vpc;
Vpc service = Vpc.newInstance();
Setting client options through a credentials file
Store credentials in a file such as my-credentials.env
, where {service_url}
is an endpoint URL
for the service and {api_key}
is an IAM API
key.
VPC_URL={service_url}
VPC_AUTH_TYPE=iam
VPC_APIKEY={api_key}
Export the name of the file with an environment variable, where {credential_file_path}
is the
absolute path to your credentials file, such as "$HOME/secrets/vpc-credentials.env"
.
export IBM_CREDENTIALS_FILE={credential_file_path}
Construct the service client using external configuration. Vpc.newInstance()
initializes with the
defined credential file, using it for subsequent authentication.
import com.ibm.cloud.is.vpc.v1.Vpc;
Vpc service = Vpc.newInstance();
Setting client options programmatically
Construct the service client programmatically, where {api_key}
is your hardcoded IAM API key.
const VpcV1 = require('vpc-node-sdk/vpc/v1');
const { IamAuthenticator } = require('vpc-node-sdk/auth');
// Create an IAM authenticator.
const authenticator = new IamAuthenticator({
apikey: '{api_key}',
});
// Construct the service client.
const vpcService = new VpcV1({
authenticator, // required
serviceUrl: 'https://us-east.iaas.cloud.ibm.com/v1', // optional
});
Setting client options through environment variables
Export environment variables to implement service client options, where {service_url}
is an
endpoint URL for the service and {api_key}
is an IAM API
key.
export VPC_URL={service_url}
export VPC_AUTH_TYPE=iam
export VPC_APIKEY={api_key}
Construct the service client using external configuration. VpcV1.newInstance()
initializes the
client with the environment variables, using them for subsequent authentication.
const VpcV1 = require('vpc-node-sdk/vpc/v1');
const vpcService = VpcV1.newInstance();
Setting client options through a credentials file
Store credentials in a file such as my-credentials.env
, where {service_url}
is an endpoint URL
for the service and {api_key}
is an IAM API
key.
VPC_URL={service_url}
VPC_AUTH_TYPE=iam
VPC_APIKEY={api_key}
Export the name of the file with an environment variable, where {credential_file_path}
is the
absolute path to your credentials file, such as "$HOME/secrets/vpc-credentials.env"
.
export IBM_CREDENTIALS_FILE={credential_file_path}
Construct the service client using external configuration. VpcV1.newInstance()
initializes with
the defined credential file, using it for subsequent authentication.
const VpcV1 = require('vpc-node-sdk/vpc/v1');
const vpcService = VpcV1.newInstance();
Setting client options programmatically
Construct the service client, where {api_key}
is your hardcoded IAM API key
from ibm_vpc import VpcV1
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
# Create an IAM authenticator.
authenticator = IAMAuthenticator('{api_key}')
# Construct the service client.
service = VpcV1(authenticator=authenticator)
# Set custom service URL (optional)
service.set_service_url('https://us-east.iaas.cloud.ibm.com/v1')
Setting client options through environment variables
Export environment variables to implement service client options, where {service_url}
is an
endpoint URL for the service and {api_key}
is an IAM API
key.
export VPC_URL={service_url}
export VPC_AUTH_TYPE=iam
export VPC_APIKEY={api_key}
Construct the service client using external configuration. VpcV1.new_instance()
initializes the
client with the environment variables, using them for subsequent authentication.
from ibm_vpc import VpcV1
service = VpcV1.new_instance()
Setting client options through a credentials file
Store credentials in a file such as my-credentials.env
, where {service_url}
is an endpoint URL
for the service and {api_key}
is an IAM API
key.
VPC_URL={service_url}
VPC_AUTH_TYPE=iam
VPC_APIKEY={api_key}
Export the name of the file with an environment variable, where {credential_file_path}
is the
absolute path to your credentials file, such as "$HOME/secrets/vpc-credentials.env"
.
export IBM_CREDENTIALS_FILE={credential_file_path}
Construct the service client using external configuration. VpcV1.new_instance()
initializes with
the defined credential file, using it for subsequent authentication.
from ibm_vpc import VpcV1
service = VpcV1.new_instance()
Authorization
Access to VPC infrastructure resources is managed through IAM. IAM provides the ability to manage resources through resource groups and access management tags. For more information, see Managing IAM access for VPC Infrastructure Services.
Auditing
Monitor API activity within your account by using the IBM Cloud Activity Tracker service. Each time you make an API call, one or more events are generated that you can track and audit from within Activity Tracker. Specific auditing event types are listed for each individual method. For more information about how to track VPC activity, see Activity Tracker events.
Error handling
This API uses standard HTTP response codes to indicate the outcome of a request. A 4xx
-series
response indicates a failure that the client must resolve. A 5xx
-series response indicates a
service failure.
HTTP Error Code | Description | Recovery |
---|---|---|
400 |
Bad Request | The input parameters in the request body are either incomplete, malformed, or too large. Be sure to include all required parameters in your request. |
401 |
Unauthorized | You are not authorized to make this request. Log in to IBM Cloud and try submitting the request again. If this error persists, contact the account owner to check your permissions. |
403 |
Forbidden | The supplied authentication is not authorized to perform the requested operation. Either you do not have valid access through IAM access policies or your request is denied due to the context-based restriction policy. If this error persists, contact the account owner to check your permissions. |
404 |
Not Found | The requested resource could not be found but may be available in the future. |
405 |
Method Not Allowed | The requested resource does not support the request method. |
406 |
Not Acceptable | The resource the client requested is not available in a format allowed by the Accept header supplied by the client. |
408 |
Request Timeout | The connection to the server timed out. Wait a few minutes, and try submitting the request again. |
409 |
Conflict | The request cannot be completed because of a conflict between the request and the current state of the resource. |
412 |
Precondition Failed | The client specified one or more preconditions in its headers, and the server cannot meet those preconditions. |
426 |
Upgrade Required | The server refuses to perform the request using the current protocol but might perform the request after the client upgrades to a different protocol. |
500 |
Internal Server Error | The request cannot be processed because the client encountered an unexpected condition on the server. Wait a few minutes and try submitting the request again. If this error persists, contact IBM Support. |
501 |
Not Implemented | The server either does not recognize the request method, or it lacks the ability to fulfill the request. |
502 |
Bad Gateway | The server was acting as a gateway or proxy and received an invalid response from the upstream server. |
503 |
Service Unavailable | The server cannot process the request. Generally, this condition is temporary, such as when a server is overloaded or down for scheduled maintenance. This condition could also be due to an unplanned outage of a service that is needed to process the request. Wait a few minutes and try submitting the request again. If this error persists, contact IBM Support. |
504 |
Gateway Timeout | The server was acting as a gateway or proxy and did not receive a timely response from the upstream server. |
505 |
HTTP Version Not Supported | The server does not support the HTTP protocol version that is used in the request. |
Error handling example:
import "github.com/IBM/vpc-go-sdk/vpcv1"
// Instantiate a service
vpcService, vpcServiceErr := vpcv1.NewVpcV1(options)
// Check for errors
if vpcServiceErr != nil {
panic(vpcServiceErr)
}
// Call a method
listVpcsOptions := &vpcv1.ListVpcsOptions{}
vpcs, _, err := vpcService.ListVpcs(listVpcsOptions)
// Check for errors
if err != nil {
panic(err)
}
Error handling example:
try {
// Invoke an operation
Response<Resource> response = service.getResource(options).execute();
// Process response...
} catch (BadRequestException e) {
// Handle Bad Request (400) exception
} catch (UnauthorizedException e) {
// Handle Unauthorized (401) exception
} catch (NotFoundException e) {
// Handle Not Found (404) exception
} catch (RequestTooLargeException e) {
// Handle Request Too Large (413) exception
} catch (ServiceResponseException e) {
// Base class for all exceptions caused by error responses from the service
System.out.println("Service returned status code "
+ e.getStatusCode() + ": " + e.getMessage());
System.out.println("Detailed error info:\n" + e.getDebuggingInfo().toString());
}
Error handling example:
try {
const response = await vpcService.getResource();
// ...handle successful response...
} catch (err) {
// ...handle error response...
console.log("Error status code: " + err.status + " (" + err.statusText + ")");
console.log("Error message: " + err.message);
}
Example of error handling:
from ibm_cloud_sdk_core import ApiException
try:
vpcs = service.list_vpcs().get_result()['vpcs']
except ApiException as e:
print("List VPC failed with status code " + str(e.code) + ": " + e.message)
Versioning
This reference documents API behavior for any date value in the version
parameter between
2025-03-11
and today's date. To view the reference for an older version of the API, select it
from the Version list.
Requests to the VPC API require a major version as the first segment of the request path (/v1/
)
and a date-based version as a query parameter in the format version=YYYY-MM-DD
.
The VPC API supports a continuous series of version dates from 2019-01-01
to today's date (in
UTC).
Most changes to the VPC API are designed to be compatible with existing clients and are made available to clients that specify any supported version date. For example, support for new paths, new optional parameters, and additional properties in responses are considered backward compatible and, when possible, are made available without respect to the version date specified by a client.
By design, backward-incompatible changes, such as the removal or restructuring of existing properties or parameters, are made available only for clients that specify version dates on or after the feature became available.
To maximize the compatibility of your client with future API changes, follow the best practices for client development.
When you develop a new client, specify the current date (as of the time of development) as a fixed
value for the version
parameter, and keep that same fixed version date value when you test and
ship your client. Do not specify a value for the version
parameter that is dynamically
computed based on the date your code is compiled or executed.
Features that require clients to specify a later version date are specifically noted in the change log, along with guidance on how to migrate your client to work with newer versions.
As a best practice, review the change log on a periodic basis. To use the latest features and
maintain ongoing compatibility, update and test your client with a newer version date. As with new
clients, specify the current date (as of the time you update your client code) as a fixed value for
the version
parameter.
Deprecation
A method, path, parameter, property or other feature will be marked as deprecated when usage is no longer recommended, such as when it's been rendered obsolete by new features. After a feature is deprecated, support for that feature may be removed for clients that specify new version dates.
Features that are no longer supported in new API versions are specifically noted in the change log, along with guidance on how to migrate your client to work with newer versions.
The oldest supported version date (currently 2019-01-01
) may be moved forward in the future,
necessitating clients to specify a newer version date and make any updates needed to work with that
newer version.
Each SDK version uses a corresponding version of the API that it was developed and tested to be compatible with.
Example request to list regions in the 2025-03-11
version of the v1
API:
curl -X GET "$vpc_api_endpoint/v1/regions?version=2025-03-11&generation=2" -H "Authorization: Bearer $iam_token"
Property value expansion
Unless explicitly stated otherwise, relaxing constraints for a property's values is considered a backward-compatible change that is expected to occur to accommodate new features or products. Backward-compatible property value expansion supports the following:
- For numeric properties: increasing maximum values or decreasing minimum values
- For array properties: increasing maximum item counts or decreasing minimum item counts
- For string properties: increasing maximum lengths or decreasing minimum lengths
- For cron specification properties: increasing the scheduling frequency
- For enumerations: expanding the set of enumerated values
- For
One of
: adding choices to an existingOne of
selection
For example, the maximum
value for the Share iops
property in the specification reflects the
current maximum IOPS that can be supported by the IBM Cloud VPC File Storage
service. However, the value in the specification may be subsequently increased, even for existing
API versions. Likewise, the values for enumerations, such as the Share access_control_mode
,
encryption
, and replication_status
properties may be subsequently expanded, even for existing
API versions. Additionally, a set of One of
choices, such as adding another choice for security
group targets
, may be expanded in the future for
existing API versions.
To maximize the compatibility of your client with future API changes, follow the best practices for client development.
Concurrent update protection
To prevent multiple clients from unknowingly overwriting each other's updates, select API methods support entity-tags and conditional requests as specified in RFC 7232.
To make a conditional request, first issue a GET
request on the resource to retrieve its
up-to-date representation. The response will include an ETag
header, whose value is a fingerprint
of the resource's current client-configurable state. Next, verify that the method you want to
perform (typically an update or a delete) is appropriate given the current state of the resource.
For example, you may want to only delete a VPN server if its port
property has a specific value.
Finally, if the resource is still in the appropriate state, issue the API request, as usual, but
make the request conditional by including an If-Match
header with its value set to the ETag
value from the earlier GET
request.
Because the If-Match
header was provided, the server will check that the resource's current ETag
value (which reflects the client-configurable state) matches the value you provided in the
If-Match
header. If the two values match, the server can be certain the resource has not been
updated in the interim, and request processing continues as usual. Otherwise, the resource was
updated (by another client) between the time you issued the GET
and the time you issued the
conditional request, and the request will fail with 412 Precondition Failed
. Because a resource
may be updated by another client at any time, clients issuing conditional requests must be written
to check for a 412
failure, and if encountered, restart the sequence by reissuing the original
GET
request.
Because 412
indicates that the resource has been updated, before reissuing the conditional
request, the client must both retrieve the latest ETag
value using GET
and verify that the
representation of the resource is still appropriate for the conditional request.
For additional safety, the VPC API requires that any PATCH
request that includes an array property
must also provide an If-Match
header. For example, a PATCH /volumes/{id}
request that includes
the user_tags
array property will fail with 400 Bad Request
if the If-Match
header is not
provided. In contrast, a PATCH /volumes/{id}
request to modify just the name
string property
need not provide an If-Match
header (since no array is present). However, if the If-Match
header
is provided, the server will check its value and will return 412 Precondition Failed
if the value
is not current.
The ETag
and If-Match
headers must be used only on methods that have explicit documentation that
those headers are supported. Other related headers described in RFC 7232, such as If-None-Match
and If-Modified-Since
, are not supported at this time.
Maturity query parameter
API requests accept a maturity
query parameter. This parameter lets you decide on the level of
stability to use before features become generally available.
For the API behavior documented in this reference, omit the maturity
query parameter. For
information on making beta
requests, see the Beta VPC API
reference.
Pagination
Some API requests can return many results. To improve performance, results are returned one page at a time, with a limited number of results on each page. The default page size is typically 50 items, with a maximum size of 100.
The default and maximum limits might vary by operation. To specify a different page size, use the
limit
query parameter.
For a request that uses pagination, the response includes additional properties:
- The
first.href
property links to the first page of resources - The
next.href
property links to the next page of resources (included for all pages except for the last page)
Use query parameters to page through your available resources and retrieve a subset of objects. To
retrieve the first page of results, make the request without specifying a start
query parameter.
If the results cannot fit on the first page, the response will include a next
property, whose
value can then be specified as the start
parameter when making the next page request. Each page of
results is based on the resources that exist at the time of each paginated request, and therefore
may include resources that did not exist when the first request was made. The last page of results
will not include a next
property.
When you're retrieving a subset of objects:
- You must add the
version
andgeneration
query parameters to thehref
value before you make the request - You may use the value of
first.href
to retrieve the first page of resources in the requested sort order and with the requested filters - You may use the value of
next.href
to retrieve the next page of resources in the requested sort order and with the requested filters - You may not change the requested filters across page retrievals
- You may not add a
sort
query parameter to thehref
value (sort order is set by the first paginated list request) - You may modify the
limit
in thehref
value to limit the number of resources to return, per page, in a paginated list operation - You may not change the path segments of the request (that is, anything before the
?
in thehref
value)
List the first five keys: .../keys?limit=5
List the first five keys on the next page: .../keys?limit=5&start=9d5a91a3e2cbd233b5a5b33436855ed1
The next
value comes from the previous response's start
value, which is a link. Here's the href
from the response of the first page:
"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?limit=1&start=r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217"
Use the start
value r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217
in your next call to fetch page 2:
next := "r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217"
listVpcsOptions := &vpcv1.ListVpcsOptions{
Limit: core.Int64Ptr(1),
Start: &next,
}
vpcs, _, err := vpcService.ListVpcs(listVpcsOptions)
The next
value comes from the previous response's start
value, which is a link. Here's the href
from the response of the first page:
"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?limit=1&start=r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217"
Use the start value r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217 in your next call to fetch page 2:
ListVpcsOptions listVpcsOptions = new ListVpcsOptions.Builder()
.start("r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217")
.limit(Long.valueOf("10"))
.build();
Response<VPCCollection> response = service.listVpcs(listVpcsOptions).execute();
VPCCollection vpcCollectionResult = response.getResult();
The next
value comes from the previous response's start
value, which is a link. Here's the
href
from the response of the first page:
"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?limit=1&start=r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217"
Copy the start
value r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217
to the clipboard, and use that
value in your next call to fetch page 2:
const listVpcsResult = vpcService.listVpcs({
start: 'r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217',
limit: 10,
});
The next
value comes from the previous response's start
value, which is a link. Here's the href
from the response of the first page:
"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?limit=1&start=r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217"
Use the start value r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217 in your next call to fetch page 2:
next = response.get_result()['next']
try:
response = service.list_vpcs(start="r134-fe06d70f-ec6c-4451-b0a2-37b6ec91a217", limit=1).get_result()['vpcs']
except ApiException as e:
print("List VPC failed with status code " + str(e.code) + ": " + e.message)
Variables
Consider storing frequently used values (such as the API service URL, authorization token, API version, and other resource identifiers) in variables.
The following topics contain information on setting variables:
Example of storing the us-south
service URL in a variable:
vpc_api_endpoint=https://us-south.iaas.cloud.ibm.com
Resources
The VPC API is structured around resources of various types, such as block storage volumes (called "volumes" in the API), and virtual server instances (called "instances" in the API). Each resource consists of a set of properties and supports a set of operations, such as updating some of its property values, or deleting the resource. Certain complex resources also have child resources. For example, the instance resource has one or more volume attachment child resources, with each volume attachment associating the instance with a volume it uses. As with other resources, child resources also have a set of properties and a set of operations, which can be performed on the child resource. Child resources can also have their own child resources.
There is a hierarchical relationship between a resource and its child resources, which is reflected
in VPC's API path hierarchy. For example, the API path to retrieve a volume attachment is GET /instances/{instance_id}/volume_attachments/{id}
, reflecting that every volume attachment has an
instance as its parent resource. This hierarchy is also evident in their lifecycles: deleting an
instance will delete all of its child resources, including all of its volume attachments.
Resources that appear in the first segment of the API path hierarchy, such as /instances
in the
previous example, are sometimes referred to as top-level resources. By convention, top-level
resources in the VPC API have crn
properties that provide the resource's global Cloud Resource
Name (CRN). These CRNs enable top-level resources to be integrated with other IBM Cloud services,
such as IAM, billing, and global tagging. For example, because volume attachments are a child
resource and do not have their own CRNs, it is not possible to create an IAM policy for a specific
volume attachment. Instead, the IAM policies for the parent instance's CRN control access to its
volume attachments.
In many situations, the distinction between a top-level resource and a child resource is not important, and the term "resource" is often used to refer to either type of resource.
Resource modeling
Each resource type in the VPC API is represented by a handful of data models, which tailor the resource's properties to the operation being performed:
- Prototype model
- Used in the request body when creating a resource with
POST
. - Base model
- Returned in the response body when retrieving a resource with
GET
. This model is also returned in the response body from many other operations, such as when creating a resource. - Patch model
- Used in the request body when updating a resource with
PATCH
. - Identity model
- Used when identifying a resource in a request body.
- Reference model
- Used when identifying a resource in a response body.
Models go hand in hand with objects. An object is an instantiation of a model. For example, POST /instances
requires a request body that adheres to the InstancePrototype
model, and that request
body is an instance prototype object. The response body from POST /instances
adheres to the
Instance
model, and that response body is an instance object. Likewise, the PATCH /instances/{id}
request body is an InstancePatch
object, and the response body is an Instance
object.
In the VPC API, resources are often associated with other resources. When creating an association
with a resource, that resource's identity model is used. For example, POST /instances/{id}/volume_attachments
, which creates a new volume attachment, expects a
VolumeAttachmentPrototype
object. That object includes a volume
property (VolumeIdentity
model) that identifies the volume to attach. As a convenience, some resources have multiple
ways to identify them, such as volume.crn
, volume.id
or volume.href
in this scenario.
For an association to succeed, the caller's IAM policies must permit the caller to operate on the identified resource. Additionally, the identified resource must be in the caller's account unless a specific property documents an exception.
To ensure predictable behavior, mutable properties, such as a resource's mutable name, are never included in identity models.
When a resource is retrieved, its association with another resource is shown using that resource's
reference model. Continuing the previous example, GET /instances/{instance_id}/volume_attachments/{id}
returns a VolumeAttachment
object, which
includes a volume
property (VolumeReference
model). In addition to including the identifiers
that were present in the VolumeIdentity
model (volume.crn
, volume.id
, and volume.href
), it
also includes its volume.name
, and an optional volume.deleted
property, which indicates that
the resource no longer exists.
Many reference models also include a resource_type
property, which is essential in polymorphic
contexts. For example, the floating IP resource (FloatingIP
model) includes a target
property,
which is a oneOf
that can refer to a NetworkInterfaceReference
or a PublicGatewayReference
depending on the way the floating IP resource was created. Further, new types of floating IP targets
might be introduced in the future. A client that calls GET /floating_ips/{id}
can check the value
of target.resource_type
to determine if target
refers to a network interface resource, a public
gateway resource, or another resource type that was introduced after the client was developed.
The properties in a resource's identity and reference models are not subject to that resource's IAM
policies. For example, although the volume
property included in the response from GET /instances/{instance_id}/volume_attachments/{id}
included identifying information about the volume,
such as its name
and id
, the caller did not need an IAM policy to read the volume. This design
facilitates adhering to least privilege, because the caller can understand the associations a
resource has with other resources without having to be granted access to see the specifics of the
associated resources. However, because of this design, it's important to never place sensitive
information in a resource's name.
Resource names
VPC resource names adhere to a common regular expression that:
- Forbids uppercase characters
- Forbids trailing dashes
- Reserves leading dashes for system use
- Has a name length of 1 - 63 characters
- Allows leading digits for system-owned resources (and, eventually, for all resources)
-
On a request, the permitted regex is
^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$
.Resources that do not yet allow leading digits use
^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$
. -
On a response, the possible regex is
^-?([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$
.
-
Resource namespaces are per resource type and per account. For example, a volume and a server in the
same availability zone (AZ) and account can both be named b
, and two accounts can both contain a
volume that is named b
in the same AZ.
For a resource type within an account:
- If the resource is scoped within a parent resource, names must be unique within that parent resource.
- If the resource is scoped within a VPC, names must be unique within that VPC.
- If the resource is regional (or smaller), names must be regionally unique.
If a resource's namespace can contain both customer-created and IBM-created resources, all
IBM-created resources (such as IBM-provided images) begin with ibm-
. Customers are unable to
create resources with the prefix ibm-
.
Resource names that begin with a hyphen (-
) are reserved for system use and are sometimes used in
place of user-defined names. For example, names included with references to deleted
resources are prefixed with -deleted-
.
If you don't name a resource during resource creation, the system automatically generates a resource name.
Deleted resources
In some responses, embedded resource references may refer to resources that have been deleted. This possibility is noted in contexts where it's expected. Rarely, references to deleted resources may also appear when the system cannot resolve a conflict between concurrent requests.
The presence of a deleted
property can be used to determine that a reference is to a deleted
resource. The deleted
property contains an object with a more_info
link to relevant
documentation.
As shown in the example, references to deleted resources will have a name
prefixed with
-deleted-
and suffixed with a value to ensure the resource remains unique within its namespace,
even if its user-defined name has been reused. This name
should not be parsed for information and
may not contain any part of the original user-defined name
.
Deleted resource reference example:
{
"name": "-deleted-e1b7144d1645",
"href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/b6b9395e-6a4d-4291-b824-e1b7144d1645",
"crn": "crn:[...]",
"deleted": {
"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"
}
}
Remote resources
In some responses, embedded resource references may refer to resources that are in another region,
in another account, or in both another region and another account. If a given reference can be
remote, the specification will include a remote
property, which can contain account
and region
child properties, which identify the remote account and remote region for the resource,
respectively.
The remote reference shown in the example shows a source image that is both in a different account,
and in a region (us-south
) that is different from the region being called (us-east
). Because the
resource has no representation in the region being called, the href
for the resource refers to its
native region (us-south.iaas.cloud.ibm.com
). In contrast, because the remote.region
has a
representation in the region being called, the remote.region.href
refers to the called region
(us-east.iaas.cloud.ibm.com
).
When authoring clients that operate on remote references, bear the following in mind:
- The resource may have the same name as another local resource, which it may have no relationship to.
- Mutable information, such as its name and whether it has been deleted, may not be current.
- The resource cannot be directly accessed and may not be accessible at all. For example, attempting
to retrieve the example resource above using
GET /v1/images/72b27b5c-f4b0-48bb-b954-5becc7c1dcb8
results in404
because the resource is in another account. However, if the resource had been in the same account, but still in a different region, theGET
method would result in a301 Moved Permanently
, allowing clients that support redirects to retrieve the resource from its native region.
As discussed in Resources, reference models are not subject to the resource's IAM
policies. Therefore, even if the IAM policy that allowed the remote reference to be established is
revoked, any remote references that were previously established may continue to have their name
updated. Because of this design, it's important to never place sensitive information in a resource's
name.
Remote resource reference example:
{
"crn": "crn:v1:bluemix:public:is:us-south:a/02828f9c8fd74b73859d371a406af2a1::image:72b27b5c-f4b0-48bb-b954-5becc7c1dcb8",
"id": "72b27b5c-f4b0-48bb-b954-5becc7c1dcb8",
"href": "https://us-south.iaas.cloud.ibm.com/v1/images/72b27b5c-f4b0-48bb-b954-5becc7c1dcb8",
"name": "my-image",
"remote": {
"account": {
"id": "02828f9c8fd74b73859d371a406af2a1",
"resource_type": "account"
},
"region": {
"href": "https://us-east.iaas.cloud.ibm.com/v1/regions/us-south",
"name": "us-south",
"resource_type": "region"
}
}
}
Resource suspension
Individual resources that violate IBM Cloud® terms of service will be suspended. Potential resources that can be suspended include virtual server instances, VPN gateways and VPN servers.
While a resource is suspended, it cannot be used, modified, or deleted. For example, suspended virtual server instances are powered off, and their configuration may not be changed. Connections to VPN gateways and servers are disabled.
Resources that have been suspended will have a lifecycle_state
of suspended
and a
lifecycle_reasons[].code
of resource_suspended_by_provider
. For information about restoring a
suspended resource, see Resource suspension in VPC
Getting Started.
API best practices
To minimize bugs caused by changes, follow these best practices when making an API requests:
- When processing values for properties that have been expanded, such as for numeric, array, string, and enumeration values, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
- Catch and log any
4xx
or5xx
HTTP status code along with the includedtrace
property - Follow HTTP redirect rules for any
3xx
HTTP status code. - Use only the resources and properties that are needed for your client to function.
- Do not send any extraneous input in a request.
- Specify a fixed value for the API
version
parameter - Avoid depending on any behavior that is not explicitly documented.
Change log
Important changes to the API, such as additions, updates, and deprecations, are documented in the change log.
Features that require clients to specify a later version date are specifically noted in the change log, along with guidance on how to migrate your client to work with newer versions. See Versioning for more information.
SDK changes are based on API changes. When a new API version is available, the SDK reflects changes in the API.
Methods
List VPCs
This request lists VPCs in the region. A VPC is a virtual network that belongs to an account and provides logical isolation from other networks. A VPC is made up of resources in one or more zones. VPCs are regional, and each VPC can contain resources in multiple zones in a region.
This request lists VPCs in the region. A VPC is a virtual network that belongs to an account and provides logical isolation from other networks. A VPC is made up of resources in one or more zones. VPCs are regional, and each VPC can contain resources in multiple zones in a region.
This request lists VPCs in the region. A VPC is a virtual network that belongs to an account and provides logical isolation from other networks. A VPC is made up of resources in one or more zones. VPCs are regional, and each VPC can contain resources in multiple zones in a region.
This request lists VPCs in the region. A VPC is a virtual network that belongs to an account and provides logical isolation from other networks. A VPC is made up of resources in one or more zones. VPCs are regional, and each VPC can contain resources in multiple zones in a region.
This request lists VPCs in the region. A VPC is a virtual network that belongs to an account and provides logical isolation from other networks. A VPC is made up of resources in one or more zones. VPCs are regional, and each VPC can contain resources in multiple zones in a region.
GET /vpcs
(vpc *VpcV1) ListVpcs(listVpcsOptions *ListVpcsOptions) (result *VPCCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListVpcsWithContext(ctx context.Context, listVpcsOptions *ListVpcsOptions) (result *VPCCollection, response *core.DetailedResponse, err error)
list_vpcs(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
resource_group_id: Optional[str] = None,
classic_access: Optional[bool] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<VPCCollection> listVpcs(ListVpcsOptions listVpcsOptions)
listVpcs(params)
Create a VPC
This request creates a new VPC from a VPC prototype object. The prototype object is structured in the same way as a retrieved VPC, and contains the information necessary to create the new VPC.
This request creates a new VPC from a VPC prototype object. The prototype object is structured in the same way as a retrieved VPC, and contains the information necessary to create the new VPC.
This request creates a new VPC from a VPC prototype object. The prototype object is structured in the same way as a retrieved VPC, and contains the information necessary to create the new VPC.
This request creates a new VPC from a VPC prototype object. The prototype object is structured in the same way as a retrieved VPC, and contains the information necessary to create the new VPC.
This request creates a new VPC from a VPC prototype object. The prototype object is structured in the same way as a retrieved VPC, and contains the information necessary to create the new VPC.
POST /vpcs
(vpc *VpcV1) CreateVPC(createVPCOptions *CreateVPCOptions) (result *VPC, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateVPCWithContext(ctx context.Context, createVPCOptions *CreateVPCOptions) (result *VPC, response *core.DetailedResponse, err error)
create_vpc(
self,
*,
address_prefix_management: Optional[str] = None,
classic_access: Optional[bool] = None,
dns: Optional['VPCDNSPrototype'] = None,
name: Optional[str] = None,
resource_group: Optional['ResourceGroupIdentity'] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<VPC> createVpc(CreateVpcOptions createVpcOptions)
createVpc(params)
Delete a VPC
This request deletes a VPC. This operation cannot be reversed.
For this request to succeed:
- Instances, subnets, public gateways, endpoint gateways, and private path service gateways must not reside in this VPC
- The VPC must not be providing DNS resolution for any other VPCs
- If
dns.enable_hub
istrue
,dns.resolution_binding_count
must be zero
All security groups and network ACLs associated with the VPC are automatically deleted.
All flow log collectors with auto_delete
set to true
targeting the VPC or any
resource in the VPC are automatically deleted.
This request deletes a VPC. This operation cannot be reversed.
For this request to succeed:
- Instances, subnets, public gateways, endpoint gateways, and private path service gateways must not reside in this VPC
- The VPC must not be providing DNS resolution for any other VPCs
- If
dns.enable_hub
istrue
,dns.resolution_binding_count
must be zero
All security groups and network ACLs associated with the VPC are automatically deleted. All flow log collectors with auto_delete
set to true
targeting the VPC or any resource in the VPC are automatically deleted.
This request deletes a VPC. This operation cannot be reversed.
For this request to succeed:
- Instances, subnets, public gateways, endpoint gateways, and private path service gateways must not reside in this VPC
- The VPC must not be providing DNS resolution for any other VPCs
- If
dns.enable_hub
istrue
,dns.resolution_binding_count
must be zero
All security groups and network ACLs associated with the VPC are automatically deleted. All flow log collectors with auto_delete
set to true
targeting the VPC or any resource in the VPC are automatically deleted.
This request deletes a VPC. This operation cannot be reversed.
For this request to succeed:
- Instances, subnets, public gateways, endpoint gateways, and private path service gateways must not reside in this VPC
- The VPC must not be providing DNS resolution for any other VPCs
- If
dns.enable_hub
istrue
,dns.resolution_binding_count
must be zero
All security groups and network ACLs associated with the VPC are automatically deleted. All flow log collectors with auto_delete
set to true
targeting the VPC or any resource in the VPC are automatically deleted.
This request deletes a VPC. This operation cannot be reversed.
For this request to succeed:
- Instances, subnets, public gateways, endpoint gateways, and private path service gateways must not reside in this VPC
- The VPC must not be providing DNS resolution for any other VPCs
- If
dns.enable_hub
istrue
,dns.resolution_binding_count
must be zero
All security groups and network ACLs associated with the VPC are automatically deleted. All flow log collectors with auto_delete
set to true
targeting the VPC or any resource in the VPC are automatically deleted.
DELETE /vpcs/{id}
(vpc *VpcV1) DeleteVPC(deleteVPCOptions *DeleteVPCOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteVPCWithContext(ctx context.Context, deleteVPCOptions *DeleteVPCOptions) (response *core.DetailedResponse, err error)
delete_vpc(
self,
id: str,
*,
if_match: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteVpc(DeleteVpcOptions deleteVpcOptions)
deleteVpc(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.vpc.vpc.delete
is.flow-log-collector.flow-log-collector.delete
Generated when a flow log collector that had
auto_delete
set totrue
was attached to the VPCis.flow-log-collector.flow-log-collector.detach
Generated when a flow log collector was attached to the VPC
is.vpc.vpc.detach
Generated when the VPC had a flow log collector attached to it
Retrieve a VPC
This request retrieves a single VPC specified by the identifier in the URL.
This request retrieves a single VPC specified by the identifier in the URL.
This request retrieves a single VPC specified by the identifier in the URL.
This request retrieves a single VPC specified by the identifier in the URL.
This request retrieves a single VPC specified by the identifier in the URL.
GET /vpcs/{id}
(vpc *VpcV1) GetVPC(getVPCOptions *GetVPCOptions) (result *VPC, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetVPCWithContext(ctx context.Context, getVPCOptions *GetVPCOptions) (result *VPC, response *core.DetailedResponse, err error)
get_vpc(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<VPC> getVpc(GetVpcOptions getVpcOptions)
getVpc(params)
Update a VPC
This request updates a VPC with the information provided in a VPC patch object. The patch object is structured in the same way as a retrieved VPC and needs to contain only the information to be updated.
This request updates a VPC with the information provided in a VPC patch object. The patch object is structured in the same way as a retrieved VPC and needs to contain only the information to be updated.
This request updates a VPC with the information provided in a VPC patch object. The patch object is structured in the same way as a retrieved VPC and needs to contain only the information to be updated.
This request updates a VPC with the information provided in a VPC patch object. The patch object is structured in the same way as a retrieved VPC and needs to contain only the information to be updated.
This request updates a VPC with the information provided in a VPC patch object. The patch object is structured in the same way as a retrieved VPC and needs to contain only the information to be updated.
PATCH /vpcs/{id}
(vpc *VpcV1) UpdateVPC(updateVPCOptions *UpdateVPCOptions) (result *VPC, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateVPCWithContext(ctx context.Context, updateVPCOptions *UpdateVPCOptions) (result *VPC, response *core.DetailedResponse, err error)
update_vpc(
self,
id: str,
vpc_patch: 'VPCPatch',
*,
if_match: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<VPC> updateVpc(UpdateVpcOptions updateVpcOptions)
updateVpc(params)
Retrieve a VPC's default network ACL
This request retrieves the default network ACL for the VPC specified by the identifier in the URL. The default network ACL is applied to any new subnets in the VPC which do not specify a network ACL.
This request retrieves the default network ACL for the VPC specified by the identifier in the URL. The default network ACL is applied to any new subnets in the VPC which do not specify a network ACL.
This request retrieves the default network ACL for the VPC specified by the identifier in the URL. The default network ACL is applied to any new subnets in the VPC which do not specify a network ACL.
This request retrieves the default network ACL for the VPC specified by the identifier in the URL. The default network ACL is applied to any new subnets in the VPC which do not specify a network ACL.
This request retrieves the default network ACL for the VPC specified by the identifier in the URL. The default network ACL is applied to any new subnets in the VPC which do not specify a network ACL.
GET /vpcs/{id}/default_network_acl
(vpc *VpcV1) GetVPCDefaultNetworkACL(getVPCDefaultNetworkACLOptions *GetVPCDefaultNetworkACLOptions) (result *DefaultNetworkACL, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetVPCDefaultNetworkACLWithContext(ctx context.Context, getVPCDefaultNetworkACLOptions *GetVPCDefaultNetworkACLOptions) (result *DefaultNetworkACL, response *core.DetailedResponse, err error)
get_vpc_default_network_acl(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<DefaultNetworkACL> getVpcDefaultNetworkAcl(GetVpcDefaultNetworkAclOptions getVpcDefaultNetworkAclOptions)
getVpcDefaultNetworkAcl(params)
Retrieve a VPC's default routing table
This request retrieves the default routing table for the VPC specified by the identifier in the URL. The default routing table is associated with any subnets in the VPC which have not been explicitly associated with another routing table.
This request retrieves the default routing table for the VPC specified by the identifier in the URL. The default routing table is associated with any subnets in the VPC which have not been explicitly associated with another routing table.
This request retrieves the default routing table for the VPC specified by the identifier in the URL. The default routing table is associated with any subnets in the VPC which have not been explicitly associated with another routing table.
This request retrieves the default routing table for the VPC specified by the identifier in the URL. The default routing table is associated with any subnets in the VPC which have not been explicitly associated with another routing table.
This request retrieves the default routing table for the VPC specified by the identifier in the URL. The default routing table is associated with any subnets in the VPC which have not been explicitly associated with another routing table.
GET /vpcs/{id}/default_routing_table
(vpc *VpcV1) GetVPCDefaultRoutingTable(getVPCDefaultRoutingTableOptions *GetVPCDefaultRoutingTableOptions) (result *DefaultRoutingTable, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetVPCDefaultRoutingTableWithContext(ctx context.Context, getVPCDefaultRoutingTableOptions *GetVPCDefaultRoutingTableOptions) (result *DefaultRoutingTable, response *core.DetailedResponse, err error)
get_vpc_default_routing_table(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<DefaultRoutingTable> getVpcDefaultRoutingTable(GetVpcDefaultRoutingTableOptions getVpcDefaultRoutingTableOptions)
getVpcDefaultRoutingTable(params)
Retrieve a VPC's default security group
This request retrieves the default security group for the VPC specified by the identifier in the URL. Resources created in this VPC that allow a security group to be optionally specified will use this security group by default.
This request retrieves the default security group for the VPC specified by the identifier in the URL. Resources created in this VPC that allow a security group to be optionally specified will use this security group by default.
This request retrieves the default security group for the VPC specified by the identifier in the URL. Resources created in this VPC that allow a security group to be optionally specified will use this security group by default.
This request retrieves the default security group for the VPC specified by the identifier in the URL. Resources created in this VPC that allow a security group to be optionally specified will use this security group by default.
This request retrieves the default security group for the VPC specified by the identifier in the URL. Resources created in this VPC that allow a security group to be optionally specified will use this security group by default.
GET /vpcs/{id}/default_security_group
(vpc *VpcV1) GetVPCDefaultSecurityGroup(getVPCDefaultSecurityGroupOptions *GetVPCDefaultSecurityGroupOptions) (result *DefaultSecurityGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetVPCDefaultSecurityGroupWithContext(ctx context.Context, getVPCDefaultSecurityGroupOptions *GetVPCDefaultSecurityGroupOptions) (result *DefaultSecurityGroup, response *core.DetailedResponse, err error)
get_vpc_default_security_group(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<DefaultSecurityGroup> getVpcDefaultSecurityGroup(GetVpcDefaultSecurityGroupOptions getVpcDefaultSecurityGroupOptions)
getVpcDefaultSecurityGroup(params)
List address prefixes for a VPC
This request lists address pool prefixes for a VPC.
This request lists address pool prefixes for a VPC.
This request lists address pool prefixes for a VPC.
This request lists address pool prefixes for a VPC.
This request lists address pool prefixes for a VPC.
GET /vpcs/{vpc_id}/address_prefixes
(vpc *VpcV1) ListVPCAddressPrefixes(listVPCAddressPrefixesOptions *ListVPCAddressPrefixesOptions) (result *AddressPrefixCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListVPCAddressPrefixesWithContext(ctx context.Context, listVPCAddressPrefixesOptions *ListVPCAddressPrefixesOptions) (result *AddressPrefixCollection, response *core.DetailedResponse, err error)
list_vpc_address_prefixes(
self,
vpc_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<AddressPrefixCollection> listVpcAddressPrefixes(ListVpcAddressPrefixesOptions listVpcAddressPrefixesOptions)
listVpcAddressPrefixes(params)
Create an address prefix for a VPC
This request creates a new prefix from a prefix prototype object. The prototype object is structured in the same way as a retrieved prefix, and contains the information necessary to create the new prefix.
This request creates a new prefix from a prefix prototype object. The prototype object is structured in the same way as a retrieved prefix, and contains the information necessary to create the new prefix.
This request creates a new prefix from a prefix prototype object. The prototype object is structured in the same way as a retrieved prefix, and contains the information necessary to create the new prefix.
This request creates a new prefix from a prefix prototype object. The prototype object is structured in the same way as a retrieved prefix, and contains the information necessary to create the new prefix.
This request creates a new prefix from a prefix prototype object. The prototype object is structured in the same way as a retrieved prefix, and contains the information necessary to create the new prefix.
POST /vpcs/{vpc_id}/address_prefixes
(vpc *VpcV1) CreateVPCAddressPrefix(createVPCAddressPrefixOptions *CreateVPCAddressPrefixOptions) (result *AddressPrefix, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateVPCAddressPrefixWithContext(ctx context.Context, createVPCAddressPrefixOptions *CreateVPCAddressPrefixOptions) (result *AddressPrefix, response *core.DetailedResponse, err error)
create_vpc_address_prefix(
self,
vpc_id: str,
cidr: str,
zone: 'ZoneIdentity',
*,
is_default: Optional[bool] = None,
name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<AddressPrefix> createVpcAddressPrefix(CreateVpcAddressPrefixOptions createVpcAddressPrefixOptions)
createVpcAddressPrefix(params)
Delete an address prefix
This request deletes a prefix. This operation cannot be reversed. The request will fail if any subnets use addresses from this prefix.
This request deletes a prefix. This operation cannot be reversed. The request will fail if any subnets use addresses from this prefix.
This request deletes a prefix. This operation cannot be reversed. The request will fail if any subnets use addresses from this prefix.
This request deletes a prefix. This operation cannot be reversed. The request will fail if any subnets use addresses from this prefix.
This request deletes a prefix. This operation cannot be reversed. The request will fail if any subnets use addresses from this prefix.
DELETE /vpcs/{vpc_id}/address_prefixes/{id}
(vpc *VpcV1) DeleteVPCAddressPrefix(deleteVPCAddressPrefixOptions *DeleteVPCAddressPrefixOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteVPCAddressPrefixWithContext(ctx context.Context, deleteVPCAddressPrefixOptions *DeleteVPCAddressPrefixOptions) (response *core.DetailedResponse, err error)
delete_vpc_address_prefix(
self,
vpc_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteVpcAddressPrefix(DeleteVpcAddressPrefixOptions deleteVpcAddressPrefixOptions)
deleteVpcAddressPrefix(params)
Retrieve an address prefix
This request retrieves a single prefix specified by the identifier in the URL.
This request retrieves a single prefix specified by the identifier in the URL.
This request retrieves a single prefix specified by the identifier in the URL.
This request retrieves a single prefix specified by the identifier in the URL.
This request retrieves a single prefix specified by the identifier in the URL.
GET /vpcs/{vpc_id}/address_prefixes/{id}
(vpc *VpcV1) GetVPCAddressPrefix(getVPCAddressPrefixOptions *GetVPCAddressPrefixOptions) (result *AddressPrefix, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetVPCAddressPrefixWithContext(ctx context.Context, getVPCAddressPrefixOptions *GetVPCAddressPrefixOptions) (result *AddressPrefix, response *core.DetailedResponse, err error)
get_vpc_address_prefix(
self,
vpc_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<AddressPrefix> getVpcAddressPrefix(GetVpcAddressPrefixOptions getVpcAddressPrefixOptions)
getVpcAddressPrefix(params)
Update an address prefix
This request updates a prefix with the information in a provided prefix patch. The prefix patch object is structured in the same way as a retrieved prefix and contains only the information to be updated.
This request updates a prefix with the information in a provided prefix patch. The prefix patch object is structured in the same way as a retrieved prefix and contains only the information to be updated.
This request updates a prefix with the information in a provided prefix patch. The prefix patch object is structured in the same way as a retrieved prefix and contains only the information to be updated.
This request updates a prefix with the information in a provided prefix patch. The prefix patch object is structured in the same way as a retrieved prefix and contains only the information to be updated.
This request updates a prefix with the information in a provided prefix patch. The prefix patch object is structured in the same way as a retrieved prefix and contains only the information to be updated.
PATCH /vpcs/{vpc_id}/address_prefixes/{id}
(vpc *VpcV1) UpdateVPCAddressPrefix(updateVPCAddressPrefixOptions *UpdateVPCAddressPrefixOptions) (result *AddressPrefix, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateVPCAddressPrefixWithContext(ctx context.Context, updateVPCAddressPrefixOptions *UpdateVPCAddressPrefixOptions) (result *AddressPrefix, response *core.DetailedResponse, err error)
update_vpc_address_prefix(
self,
vpc_id: str,
id: str,
address_prefix_patch: 'AddressPrefixPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<AddressPrefix> updateVpcAddressPrefix(UpdateVpcAddressPrefixOptions updateVpcAddressPrefixOptions)
updateVpcAddressPrefix(params)
List DNS resolution bindings for a VPC
This request lists DNS resolution bindings for a VPC. A DNS resolution binding represents an association with another VPC for centralizing DNS name resolution.
If the VPC specified by the identifier in the URL is a DNS hub VPC (has dns.enable_hub
set to true
) then there is one binding for each VPC bound to the hub VPC. The endpoint
gateways in the bound VPCs can allow (using allow_dns_resolution_binding
) the hub
VPC to centralize resolution of their DNS names.
If the VPC specified by the identifier in the URL is not a DNS hub VPC, then there is at
most one binding (to a hub VPC). The endpoint gateways in the VPC specified by the
identifier in the URL can allow (using allow_dns_resolution_binding
) its hub VPC to
centralize resolution of their DNS names.
To make use of centralized DNS resolution, a VPC bound to a DNS hub VPC must
delegate DNS resolution to its hub VPC by setting dns.resolver.type
to delegate
.
The bindings will be sorted by their created_at
property values, with newest bindings
first. Bindings with identical created_at
property values will in turn be sorted by
ascending name
property values.
This request lists DNS resolution bindings for a VPC. A DNS resolution binding represents an association with another VPC for centralizing DNS name resolution.
If the VPC specified by the identifier in the URL is a DNS hub VPC (has dns.enable_hub
set to true
) then there is one binding for each VPC bound to the hub VPC. The endpoint gateways in the bound VPCs can allow (using allow_dns_resolution_binding
) the hub VPC to centralize resolution of their DNS names.
If the VPC specified by the identifier in the URL is not a DNS hub VPC, then there is at most one binding (to a hub VPC). The endpoint gateways in the VPC specified by the identifier in the URL can allow (using allow_dns_resolution_binding
) its hub VPC to centralize resolution of their DNS names.
To make use of centralized DNS resolution, a VPC bound to a DNS hub VPC must delegate DNS resolution to its hub VPC by setting dns.resolver.type
to delegate
.
The bindings will be sorted by their created_at
property values, with newest bindings first. Bindings with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists DNS resolution bindings for a VPC. A DNS resolution binding represents an association with another VPC for centralizing DNS name resolution.
If the VPC specified by the identifier in the URL is a DNS hub VPC (has dns.enable_hub
set to true
) then there is one binding for each VPC bound to the hub VPC. The endpoint gateways in the bound VPCs can allow (using allow_dns_resolution_binding
) the hub VPC to centralize resolution of their DNS names.
If the VPC specified by the identifier in the URL is not a DNS hub VPC, then there is at most one binding (to a hub VPC). The endpoint gateways in the VPC specified by the identifier in the URL can allow (using allow_dns_resolution_binding
) its hub VPC to centralize resolution of their DNS names.
To make use of centralized DNS resolution, a VPC bound to a DNS hub VPC must delegate DNS resolution to its hub VPC by setting dns.resolver.type
to delegate
.
The bindings will be sorted by their created_at
property values, with newest bindings first. Bindings with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists DNS resolution bindings for a VPC. A DNS resolution binding represents an association with another VPC for centralizing DNS name resolution.
If the VPC specified by the identifier in the URL is a DNS hub VPC (has dns.enable_hub
set to true
) then there is one binding for each VPC bound to the hub VPC. The endpoint gateways in the bound VPCs can allow (using allow_dns_resolution_binding
) the hub VPC to centralize resolution of their DNS names.
If the VPC specified by the identifier in the URL is not a DNS hub VPC, then there is at most one binding (to a hub VPC). The endpoint gateways in the VPC specified by the identifier in the URL can allow (using allow_dns_resolution_binding
) its hub VPC to centralize resolution of their DNS names.
To make use of centralized DNS resolution, a VPC bound to a DNS hub VPC must delegate DNS resolution to its hub VPC by setting dns.resolver.type
to delegate
.
The bindings will be sorted by their created_at
property values, with newest bindings first. Bindings with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists DNS resolution bindings for a VPC. A DNS resolution binding represents an association with another VPC for centralizing DNS name resolution.
If the VPC specified by the identifier in the URL is a DNS hub VPC (has dns.enable_hub
set to true
) then there is one binding for each VPC bound to the hub VPC. The endpoint gateways in the bound VPCs can allow (using allow_dns_resolution_binding
) the hub VPC to centralize resolution of their DNS names.
If the VPC specified by the identifier in the URL is not a DNS hub VPC, then there is at most one binding (to a hub VPC). The endpoint gateways in the VPC specified by the identifier in the URL can allow (using allow_dns_resolution_binding
) its hub VPC to centralize resolution of their DNS names.
To make use of centralized DNS resolution, a VPC bound to a DNS hub VPC must delegate DNS resolution to its hub VPC by setting dns.resolver.type
to delegate
.
The bindings will be sorted by their created_at
property values, with newest bindings first. Bindings with identical created_at
property values will in turn be sorted by ascending name
property values.
GET /vpcs/{vpc_id}/dns_resolution_bindings
(vpc *VpcV1) ListVPCDnsResolutionBindings(listVPCDnsResolutionBindingsOptions *ListVPCDnsResolutionBindingsOptions) (result *VpcdnsResolutionBindingCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListVPCDnsResolutionBindingsWithContext(ctx context.Context, listVPCDnsResolutionBindingsOptions *ListVPCDnsResolutionBindingsOptions) (result *VpcdnsResolutionBindingCollection, response *core.DetailedResponse, err error)
list_vpc_dns_resolution_bindings(
self,
vpc_id: str,
*,
sort: Optional[str] = None,
start: Optional[str] = None,
limit: Optional[int] = None,
name: Optional[str] = None,
vpc_crn: Optional[str] = None,
vpc_name: Optional[str] = None,
account_id: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<VPCDNSResolutionBindingCollection> listVpcDnsResolutionBindings(ListVpcDnsResolutionBindingsOptions listVpcDnsResolutionBindingsOptions)
listVpcDnsResolutionBindings(params)
Create a DNS resolution binding
This request creates a new DNS resolution binding from a DNS resolution binding prototype object. The prototype object is structured in the same way as a retrieved DNS resolution binding, and contains the information necessary to create the new DNS resolution binding.
For this request to succeed, dns.enable_hub
must be false
for the VPC specified by
the identifier in the URL, and the VPC must not already have a DNS resolution binding.
See About DNS sharing for VPE gateways for more information.
This request creates a new DNS resolution binding from a DNS resolution binding prototype object. The prototype object is structured in the same way as a retrieved DNS resolution binding, and contains the information necessary to create the new DNS resolution binding.
For this request to succeed, dns.enable_hub
must be false
for the VPC specified by the identifier in the URL, and the VPC must not already have a DNS resolution binding.
See About DNS sharing for VPE gateways for more information.
This request creates a new DNS resolution binding from a DNS resolution binding prototype object. The prototype object is structured in the same way as a retrieved DNS resolution binding, and contains the information necessary to create the new DNS resolution binding.
For this request to succeed, dns.enable_hub
must be false
for the VPC specified by the identifier in the URL, and the VPC must not already have a DNS resolution binding.
See About DNS sharing for VPE gateways for more information.
This request creates a new DNS resolution binding from a DNS resolution binding prototype object. The prototype object is structured in the same way as a retrieved DNS resolution binding, and contains the information necessary to create the new DNS resolution binding.
For this request to succeed, dns.enable_hub
must be false
for the VPC specified by the identifier in the URL, and the VPC must not already have a DNS resolution binding.
See About DNS sharing for VPE gateways for more information.
This request creates a new DNS resolution binding from a DNS resolution binding prototype object. The prototype object is structured in the same way as a retrieved DNS resolution binding, and contains the information necessary to create the new DNS resolution binding.
For this request to succeed, dns.enable_hub
must be false
for the VPC specified by the identifier in the URL, and the VPC must not already have a DNS resolution binding.
See About DNS sharing for VPE gateways for more information.
POST /vpcs/{vpc_id}/dns_resolution_bindings
(vpc *VpcV1) CreateVPCDnsResolutionBinding(createVPCDnsResolutionBindingOptions *CreateVPCDnsResolutionBindingOptions) (result *VpcdnsResolutionBinding, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateVPCDnsResolutionBindingWithContext(ctx context.Context, createVPCDnsResolutionBindingOptions *CreateVPCDnsResolutionBindingOptions) (result *VpcdnsResolutionBinding, response *core.DetailedResponse, err error)
create_vpc_dns_resolution_binding(
self,
vpc_id: str,
vpc: 'VPCIdentity',
*,
name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<VPCDNSResolutionBinding> createVpcDnsResolutionBinding(CreateVpcDnsResolutionBindingOptions createVpcDnsResolutionBindingOptions)
createVpcDnsResolutionBinding(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.vpc.vpc.update
Generated for the VPC specified by the identifier in the URL and for the VPC specified in the DNS resolution binding.
is.vpc.dns-resolution-binding.create
Generated for the VPC specified by the identifier in the URL.
is.vpc.dns-resolution-binding.connect
Generated for the VPC specified in the DNS resolution binding.
Delete a DNS resolution binding
This request deletes a DNS resolution binding. This operation cannot be reversed.
For this request to succeed, the VPC specified by the identifier in the URL must not have
dns.resolver.type
set to delegated
.
This request deletes a DNS resolution binding. This operation cannot be reversed.
For this request to succeed, the VPC specified by the identifier in the URL must not have
dns.resolver.type
set to delegated
.
This request deletes a DNS resolution binding. This operation cannot be reversed.
For this request to succeed, the VPC specified by the identifier in the URL must not have
dns.resolver.type
set to delegated
.
This request deletes a DNS resolution binding. This operation cannot be reversed.
For this request to succeed, the VPC specified by the identifier in the URL must not have
dns.resolver.type
set to delegated
.
This request deletes a DNS resolution binding. This operation cannot be reversed.
For this request to succeed, the VPC specified by the identifier in the URL must not have
dns.resolver.type
set to delegated
.
DELETE /vpcs/{vpc_id}/dns_resolution_bindings/{id}
(vpc *VpcV1) DeleteVPCDnsResolutionBinding(deleteVPCDnsResolutionBindingOptions *DeleteVPCDnsResolutionBindingOptions) (result *VpcdnsResolutionBinding, response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteVPCDnsResolutionBindingWithContext(ctx context.Context, deleteVPCDnsResolutionBindingOptions *DeleteVPCDnsResolutionBindingOptions) (result *VpcdnsResolutionBinding, response *core.DetailedResponse, err error)
delete_vpc_dns_resolution_binding(
self,
vpc_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<VPCDNSResolutionBinding> deleteVpcDnsResolutionBinding(DeleteVpcDnsResolutionBindingOptions deleteVpcDnsResolutionBindingOptions)
deleteVpcDnsResolutionBinding(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.vpc.vpc.update
Generated for the VPC specified by the identifier in the URL.
is.vpc.dns-resolution-binding.delete
Generated for the VPC specified by the identifier in the URL.
is.vpc.dns-resolution-binding.disconnect
Generated for the VPC specified by the identifier in the URL if
dns.enable_hub
istrue
, otherwise generated for the VPC specified in the DNS resolution binding.
Retrieve a DNS resolution binding
This request retrieves a single DNS resolution binding specified by the identifier in the URL.
This request retrieves a single DNS resolution binding specified by the identifier in the URL.
This request retrieves a single DNS resolution binding specified by the identifier in the URL.
This request retrieves a single DNS resolution binding specified by the identifier in the URL.
This request retrieves a single DNS resolution binding specified by the identifier in the URL.
GET /vpcs/{vpc_id}/dns_resolution_bindings/{id}
(vpc *VpcV1) GetVPCDnsResolutionBinding(getVPCDnsResolutionBindingOptions *GetVPCDnsResolutionBindingOptions) (result *VpcdnsResolutionBinding, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetVPCDnsResolutionBindingWithContext(ctx context.Context, getVPCDnsResolutionBindingOptions *GetVPCDnsResolutionBindingOptions) (result *VpcdnsResolutionBinding, response *core.DetailedResponse, err error)
get_vpc_dns_resolution_binding(
self,
vpc_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<VPCDNSResolutionBinding> getVpcDnsResolutionBinding(GetVpcDnsResolutionBindingOptions getVpcDnsResolutionBindingOptions)
getVpcDnsResolutionBinding(params)
Update a DNS resolution binding
This request updates a DNS resolution binding with the information in a provided DNS resolution binding patch. The DNS resolution binding patch object is structured in the same way as a retrieved DNS resolution binding and contains only the information to be updated.
This request updates a DNS resolution binding with the information in a provided DNS resolution binding patch. The DNS resolution binding patch object is structured in the same way as a retrieved DNS resolution binding and contains only the information to be updated.
This request updates a DNS resolution binding with the information in a provided DNS resolution binding patch. The DNS resolution binding patch object is structured in the same way as a retrieved DNS resolution binding and contains only the information to be updated.
This request updates a DNS resolution binding with the information in a provided DNS resolution binding patch. The DNS resolution binding patch object is structured in the same way as a retrieved DNS resolution binding and contains only the information to be updated.
This request updates a DNS resolution binding with the information in a provided DNS resolution binding patch. The DNS resolution binding patch object is structured in the same way as a retrieved DNS resolution binding and contains only the information to be updated.
PATCH /vpcs/{vpc_id}/dns_resolution_bindings/{id}
(vpc *VpcV1) UpdateVPCDnsResolutionBinding(updateVPCDnsResolutionBindingOptions *UpdateVPCDnsResolutionBindingOptions) (result *VpcdnsResolutionBinding, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateVPCDnsResolutionBindingWithContext(ctx context.Context, updateVPCDnsResolutionBindingOptions *UpdateVPCDnsResolutionBindingOptions) (result *VpcdnsResolutionBinding, response *core.DetailedResponse, err error)
update_vpc_dns_resolution_binding(
self,
vpc_id: str,
id: str,
vpcdns_resolution_binding_patch: 'VPCDNSResolutionBindingPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<VPCDNSResolutionBinding> updateVpcDnsResolutionBinding(UpdateVpcDnsResolutionBindingOptions updateVpcDnsResolutionBindingOptions)
updateVpcDnsResolutionBinding(params)
List routes in a VPC's default routing table
This request lists routes in the VPC's default routing table. Each route is
zone-specific and directs any packets matching its destination CIDR block to a next_hop
IP address. The most specific route matching a packet's destination will be used. If
multiple equally-specific routes exist, traffic will be distributed across them.
This request lists routes in the VPC's default routing table. Each route is zone-specific and directs any packets matching its destination CIDR block to a next_hop
IP address. The most specific route matching a packet's destination will be used. If multiple equally-specific routes exist, traffic will be distributed across them.
This request lists routes in the VPC's default routing table. Each route is zone-specific and directs any packets matching its destination CIDR block to a next_hop
IP address. The most specific route matching a packet's destination will be used. If multiple equally-specific routes exist, traffic will be distributed across them.
This request lists routes in the VPC's default routing table. Each route is zone-specific and directs any packets matching its destination CIDR block to a next_hop
IP address. The most specific route matching a packet's destination will be used. If multiple equally-specific routes exist, traffic will be distributed across them.
This request lists routes in the VPC's default routing table. Each route is zone-specific and directs any packets matching its destination CIDR block to a next_hop
IP address. The most specific route matching a packet's destination will be used. If multiple equally-specific routes exist, traffic will be distributed across them.
GET /vpcs/{vpc_id}/routes
(vpc *VpcV1) ListVPCRoutes(listVPCRoutesOptions *ListVPCRoutesOptions) (result *RouteCollectionVPCContext, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListVPCRoutesWithContext(ctx context.Context, listVPCRoutesOptions *ListVPCRoutesOptions) (result *RouteCollectionVPCContext, response *core.DetailedResponse, err error)
list_vpc_routes(
self,
vpc_id: str,
*,
zone_name: Optional[str] = None,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<RouteCollectionVPCContext> listVpcRoutes(ListVpcRoutesOptions listVpcRoutesOptions)
listVpcRoutes(params)
Create a route in a VPC's default routing table
This request creates a new route in the VPC's default routing table. The route prototype object is structured in the same way as a retrieved route, and contains the information necessary to create the new route. The request will fail if the new route will cause a loop.
This request creates a new route in the VPC's default routing table. The route prototype object is structured in the same way as a retrieved route, and contains the information necessary to create the new route. The request will fail if the new route will cause a loop.
This request creates a new route in the VPC's default routing table. The route prototype object is structured in the same way as a retrieved route, and contains the information necessary to create the new route. The request will fail if the new route will cause a loop.
This request creates a new route in the VPC's default routing table. The route prototype object is structured in the same way as a retrieved route, and contains the information necessary to create the new route. The request will fail if the new route will cause a loop.
This request creates a new route in the VPC's default routing table. The route prototype object is structured in the same way as a retrieved route, and contains the information necessary to create the new route. The request will fail if the new route will cause a loop.
POST /vpcs/{vpc_id}/routes
(vpc *VpcV1) CreateVPCRoute(createVPCRouteOptions *CreateVPCRouteOptions) (result *CreateVPCRouteResponse, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateVPCRouteWithContext(ctx context.Context, createVPCRouteOptions *CreateVPCRouteOptions) (result *CreateVPCRouteResponse, response *core.DetailedResponse, err error)
create_vpc_route(
self,
vpc_id: str,
destination: str,
zone: 'ZoneIdentity',
*,
action: Optional[str] = None,
advertise: Optional[bool] = None,
name: Optional[str] = None,
next_hop: Optional['RouteNextHopPrototype'] = None,
priority: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<CreateVpcRouteResponse> createVpcRoute(CreateVpcRouteOptions createVpcRouteOptions)
createVpcRoute(params)
Delete a VPC route
This request deletes a route. This operation cannot be reversed.
This request deletes a route. This operation cannot be reversed.
This request deletes a route. This operation cannot be reversed.
This request deletes a route. This operation cannot be reversed.
This request deletes a route. This operation cannot be reversed.
DELETE /vpcs/{vpc_id}/routes/{id}
(vpc *VpcV1) DeleteVPCRoute(deleteVPCRouteOptions *DeleteVPCRouteOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteVPCRouteWithContext(ctx context.Context, deleteVPCRouteOptions *DeleteVPCRouteOptions) (response *core.DetailedResponse, err error)
delete_vpc_route(
self,
vpc_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteVpcRoute(DeleteVpcRouteOptions deleteVpcRouteOptions)
deleteVpcRoute(params)
Retrieve a VPC route
This request retrieves a single route specified by the identifier in the URL.
This request retrieves a single route specified by the identifier in the URL.
This request retrieves a single route specified by the identifier in the URL.
This request retrieves a single route specified by the identifier in the URL.
This request retrieves a single route specified by the identifier in the URL.
GET /vpcs/{vpc_id}/routes/{id}
(vpc *VpcV1) GetVPCRoute(getVPCRouteOptions *GetVPCRouteOptions) (result *GetVPCRouteResponse, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetVPCRouteWithContext(ctx context.Context, getVPCRouteOptions *GetVPCRouteOptions) (result *GetVPCRouteResponse, response *core.DetailedResponse, err error)
get_vpc_route(
self,
vpc_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<GetVpcRouteResponse> getVpcRoute(GetVpcRouteOptions getVpcRouteOptions)
getVpcRoute(params)
Update a VPC route
This request updates a route with the information in a provided route patch. The route patch object is structured in the same way as a retrieved route and contains only the information to be updated.
This request updates a route with the information in a provided route patch. The route patch object is structured in the same way as a retrieved route and contains only the information to be updated.
This request updates a route with the information in a provided route patch. The route patch object is structured in the same way as a retrieved route and contains only the information to be updated.
This request updates a route with the information in a provided route patch. The route patch object is structured in the same way as a retrieved route and contains only the information to be updated.
This request updates a route with the information in a provided route patch. The route patch object is structured in the same way as a retrieved route and contains only the information to be updated.
PATCH /vpcs/{vpc_id}/routes/{id}
(vpc *VpcV1) UpdateVPCRoute(updateVPCRouteOptions *UpdateVPCRouteOptions) (result *UpdateVPCRouteResponse, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateVPCRouteWithContext(ctx context.Context, updateVPCRouteOptions *UpdateVPCRouteOptions) (result *UpdateVPCRouteResponse, response *core.DetailedResponse, err error)
update_vpc_route(
self,
vpc_id: str,
id: str,
route_patch: 'RoutePatch',
**kwargs,
) -> DetailedResponse
ServiceCall<UpdateVpcRouteResponse> updateVpcRoute(UpdateVpcRouteOptions updateVpcRouteOptions)
updateVpcRoute(params)
List routing tables for a VPC
This request lists routing tables for a VPC. Each subnet in a VPC is associated with a routing table, which controls delivery of packets sent on that subnet according to the action of the most specific matching route in the table. If multiple equally-specific routes exist, traffic will be distributed across them. If no routes match, delivery will be controlled by the system's built-in routes.
This request lists routing tables for a VPC. Each subnet in a VPC is associated with a routing table, which controls delivery of packets sent on that subnet according to the action of the most specific matching route in the table. If multiple equally-specific routes exist, traffic will be distributed across them. If no routes match, delivery will be controlled by the system's built-in routes.
This request lists routing tables for a VPC. Each subnet in a VPC is associated with a routing table, which controls delivery of packets sent on that subnet according to the action of the most specific matching route in the table. If multiple equally-specific routes exist, traffic will be distributed across them. If no routes match, delivery will be controlled by the system's built-in routes.
This request lists routing tables for a VPC. Each subnet in a VPC is associated with a routing table, which controls delivery of packets sent on that subnet according to the action of the most specific matching route in the table. If multiple equally-specific routes exist, traffic will be distributed across them. If no routes match, delivery will be controlled by the system's built-in routes.
This request lists routing tables for a VPC. Each subnet in a VPC is associated with a routing table, which controls delivery of packets sent on that subnet according to the action of the most specific matching route in the table. If multiple equally-specific routes exist, traffic will be distributed across them. If no routes match, delivery will be controlled by the system's built-in routes.
GET /vpcs/{vpc_id}/routing_tables
(vpc *VpcV1) ListVPCRoutingTables(listVPCRoutingTablesOptions *ListVPCRoutingTablesOptions) (result *RoutingTableCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListVPCRoutingTablesWithContext(ctx context.Context, listVPCRoutingTablesOptions *ListVPCRoutingTablesOptions) (result *RoutingTableCollection, response *core.DetailedResponse, err error)
list_vpc_routing_tables(
self,
vpc_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
is_default: Optional[bool] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<RoutingTableCollection> listVpcRoutingTables(ListVpcRoutingTablesOptions listVpcRoutingTablesOptions)
listVpcRoutingTables(params)
Create a routing table for a VPC
This request creates a routing table from a routing table prototype object. The prototype object is structured in the same way as a retrieved routing table, and contains the information necessary to create the new routing table.
At present, the routing table's resource_group
will be inherited from its VPC, but
may be specifiable in the future.
This request creates a routing table from a routing table prototype object. The prototype object is structured in the same way as a retrieved routing table, and contains the information necessary to create the new routing table.
At present, the routing table's resource_group
will be inherited from its VPC, but may be specifiable in the future.
This request creates a routing table from a routing table prototype object. The prototype object is structured in the same way as a retrieved routing table, and contains the information necessary to create the new routing table.
At present, the routing table's resource_group
will be inherited from its VPC, but may be specifiable in the future.
This request creates a routing table from a routing table prototype object. The prototype object is structured in the same way as a retrieved routing table, and contains the information necessary to create the new routing table.
At present, the routing table's resource_group
will be inherited from its VPC, but may be specifiable in the future.
This request creates a routing table from a routing table prototype object. The prototype object is structured in the same way as a retrieved routing table, and contains the information necessary to create the new routing table.
At present, the routing table's resource_group
will be inherited from its VPC, but may be specifiable in the future.
POST /vpcs/{vpc_id}/routing_tables
(vpc *VpcV1) CreateVPCRoutingTable(createVPCRoutingTableOptions *CreateVPCRoutingTableOptions) (result *RoutingTable, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateVPCRoutingTableWithContext(ctx context.Context, createVPCRoutingTableOptions *CreateVPCRoutingTableOptions) (result *RoutingTable, response *core.DetailedResponse, err error)
create_vpc_routing_table(
self,
vpc_id: str,
*,
accept_routes_from: Optional[List['ResourceFilter']] = None,
advertise_routes_to: Optional[List[str]] = None,
name: Optional[str] = None,
route_direct_link_ingress: Optional[bool] = None,
route_internet_ingress: Optional[bool] = None,
route_transit_gateway_ingress: Optional[bool] = None,
route_vpc_zone_ingress: Optional[bool] = None,
routes: Optional[List['RoutePrototype']] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<RoutingTable> createVpcRoutingTable(CreateVpcRoutingTableOptions createVpcRoutingTableOptions)
createVpcRoutingTable(params)
Delete a VPC routing table
This request deletes a routing table. A routing table cannot be deleted if it is associated with any subnets in the VPC. Additionally, a VPC's default routing table cannot be deleted. This operation cannot be reversed.
This request deletes a routing table. A routing table cannot be deleted if it is associated with any subnets in the VPC. Additionally, a VPC's default routing table cannot be deleted. This operation cannot be reversed.
This request deletes a routing table. A routing table cannot be deleted if it is associated with any subnets in the VPC. Additionally, a VPC's default routing table cannot be deleted. This operation cannot be reversed.
This request deletes a routing table. A routing table cannot be deleted if it is associated with any subnets in the VPC. Additionally, a VPC's default routing table cannot be deleted. This operation cannot be reversed.
This request deletes a routing table. A routing table cannot be deleted if it is associated with any subnets in the VPC. Additionally, a VPC's default routing table cannot be deleted. This operation cannot be reversed.
DELETE /vpcs/{vpc_id}/routing_tables/{id}
(vpc *VpcV1) DeleteVPCRoutingTable(deleteVPCRoutingTableOptions *DeleteVPCRoutingTableOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteVPCRoutingTableWithContext(ctx context.Context, deleteVPCRoutingTableOptions *DeleteVPCRoutingTableOptions) (response *core.DetailedResponse, err error)
delete_vpc_routing_table(
self,
vpc_id: str,
id: str,
*,
if_match: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteVpcRoutingTable(DeleteVpcRoutingTableOptions deleteVpcRoutingTableOptions)
deleteVpcRoutingTable(params)
Retrieve a VPC routing table
This request retrieves a single routing table specified by the identifier in the URL.
This request retrieves a single routing table specified by the identifier in the URL.
This request retrieves a single routing table specified by the identifier in the URL.
This request retrieves a single routing table specified by the identifier in the URL.
This request retrieves a single routing table specified by the identifier in the URL.
GET /vpcs/{vpc_id}/routing_tables/{id}
(vpc *VpcV1) GetVPCRoutingTable(getVPCRoutingTableOptions *GetVPCRoutingTableOptions) (result *RoutingTable, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetVPCRoutingTableWithContext(ctx context.Context, getVPCRoutingTableOptions *GetVPCRoutingTableOptions) (result *RoutingTable, response *core.DetailedResponse, err error)
get_vpc_routing_table(
self,
vpc_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<RoutingTable> getVpcRoutingTable(GetVpcRoutingTableOptions getVpcRoutingTableOptions)
getVpcRoutingTable(params)
Update a VPC routing table
This request updates a routing table with the information in a provided routing table patch. The patch object is structured in the same way as a retrieved table and contains only the information to be updated.
This request updates a routing table with the information in a provided routing table patch. The patch object is structured in the same way as a retrieved table and contains only the information to be updated.
This request updates a routing table with the information in a provided routing table patch. The patch object is structured in the same way as a retrieved table and contains only the information to be updated.
This request updates a routing table with the information in a provided routing table patch. The patch object is structured in the same way as a retrieved table and contains only the information to be updated.
This request updates a routing table with the information in a provided routing table patch. The patch object is structured in the same way as a retrieved table and contains only the information to be updated.
PATCH /vpcs/{vpc_id}/routing_tables/{id}
(vpc *VpcV1) UpdateVPCRoutingTable(updateVPCRoutingTableOptions *UpdateVPCRoutingTableOptions) (result *RoutingTable, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateVPCRoutingTableWithContext(ctx context.Context, updateVPCRoutingTableOptions *UpdateVPCRoutingTableOptions) (result *RoutingTable, response *core.DetailedResponse, err error)
update_vpc_routing_table(
self,
vpc_id: str,
id: str,
routing_table_patch: 'RoutingTablePatch',
*,
if_match: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<RoutingTable> updateVpcRoutingTable(UpdateVpcRoutingTableOptions updateVpcRoutingTableOptions)
updateVpcRoutingTable(params)
List routes in a VPC routing table
This request lists routes in a VPC routing table. If subnets are associated with this routing table, delivery of packets sent on a subnet is performed according to the action of the most specific matching route in the table (provided the subnet and route are in the same zone). If multiple equally-specific routes exist, the route with the highest priority will be used. If two matching routes have the same destination and priority, traffic will be distributed between them. If no routes match, delivery will be controlled by the system's built-in routes.
This request lists routes in a VPC routing table. If subnets are associated with this routing table, delivery of packets sent on a subnet is performed according to the action of the most specific matching route in the table (provided the subnet and route are in the same zone). If multiple equally-specific routes exist, the route with the highest priority will be used. If two matching routes have the same destination and priority, traffic will be distributed between them. If no routes match, delivery will be controlled by the system's built-in routes.
This request lists routes in a VPC routing table. If subnets are associated with this routing table, delivery of packets sent on a subnet is performed according to the action of the most specific matching route in the table (provided the subnet and route are in the same zone). If multiple equally-specific routes exist, the route with the highest priority will be used. If two matching routes have the same destination and priority, traffic will be distributed between them. If no routes match, delivery will be controlled by the system's built-in routes.
This request lists routes in a VPC routing table. If subnets are associated with this routing table, delivery of packets sent on a subnet is performed according to the action of the most specific matching route in the table (provided the subnet and route are in the same zone). If multiple equally-specific routes exist, the route with the highest priority will be used. If two matching routes have the same destination and priority, traffic will be distributed between them. If no routes match, delivery will be controlled by the system's built-in routes.
This request lists routes in a VPC routing table. If subnets are associated with this routing table, delivery of packets sent on a subnet is performed according to the action of the most specific matching route in the table (provided the subnet and route are in the same zone). If multiple equally-specific routes exist, the route with the highest priority will be used. If two matching routes have the same destination and priority, traffic will be distributed between them. If no routes match, delivery will be controlled by the system's built-in routes.
GET /vpcs/{vpc_id}/routing_tables/{routing_table_id}/routes
(vpc *VpcV1) ListVPCRoutingTableRoutes(listVPCRoutingTableRoutesOptions *ListVPCRoutingTableRoutesOptions) (result *RouteCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListVPCRoutingTableRoutesWithContext(ctx context.Context, listVPCRoutingTableRoutesOptions *ListVPCRoutingTableRoutesOptions) (result *RouteCollection, response *core.DetailedResponse, err error)
list_vpc_routing_table_routes(
self,
vpc_id: str,
routing_table_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<RouteCollection> listVpcRoutingTableRoutes(ListVpcRoutingTableRoutesOptions listVpcRoutingTableRoutesOptions)
listVpcRoutingTableRoutes(params)
Create a route in a VPC routing table
This request creates a new VPC route from a VPC route prototype object. The prototype object is structured in the same way as a retrieved VPC route and contains the information necessary to create the route.
This request creates a new VPC route from a VPC route prototype object. The prototype object is structured in the same way as a retrieved VPC route and contains the information necessary to create the route.
This request creates a new VPC route from a VPC route prototype object. The prototype object is structured in the same way as a retrieved VPC route and contains the information necessary to create the route.
This request creates a new VPC route from a VPC route prototype object. The prototype object is structured in the same way as a retrieved VPC route and contains the information necessary to create the route.
This request creates a new VPC route from a VPC route prototype object. The prototype object is structured in the same way as a retrieved VPC route and contains the information necessary to create the route.
POST /vpcs/{vpc_id}/routing_tables/{routing_table_id}/routes
(vpc *VpcV1) CreateVPCRoutingTableRoute(createVPCRoutingTableRouteOptions *CreateVPCRoutingTableRouteOptions) (result *Route, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateVPCRoutingTableRouteWithContext(ctx context.Context, createVPCRoutingTableRouteOptions *CreateVPCRoutingTableRouteOptions) (result *Route, response *core.DetailedResponse, err error)
create_vpc_routing_table_route(
self,
vpc_id: str,
routing_table_id: str,
destination: str,
zone: 'ZoneIdentity',
*,
action: Optional[str] = None,
advertise: Optional[bool] = None,
name: Optional[str] = None,
next_hop: Optional['RouteNextHopPrototype'] = None,
priority: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<Route> createVpcRoutingTableRoute(CreateVpcRoutingTableRouteOptions createVpcRoutingTableRouteOptions)
createVpcRoutingTableRoute(params)
Delete a VPC routing table route
This request deletes a VPC route. This operation cannot be reversed. Only VPC routes with
an origin
of user
are allowed to be deleted.
This request deletes a VPC route. This operation cannot be reversed. Only VPC routes with an origin
of user
are allowed to be deleted.
This request deletes a VPC route. This operation cannot be reversed. Only VPC routes with an origin
of user
are allowed to be deleted.
This request deletes a VPC route. This operation cannot be reversed. Only VPC routes with an origin
of user
are allowed to be deleted.
This request deletes a VPC route. This operation cannot be reversed. Only VPC routes with an origin
of user
are allowed to be deleted.
DELETE /vpcs/{vpc_id}/routing_tables/{routing_table_id}/routes/{id}
(vpc *VpcV1) DeleteVPCRoutingTableRoute(deleteVPCRoutingTableRouteOptions *DeleteVPCRoutingTableRouteOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteVPCRoutingTableRouteWithContext(ctx context.Context, deleteVPCRoutingTableRouteOptions *DeleteVPCRoutingTableRouteOptions) (response *core.DetailedResponse, err error)
delete_vpc_routing_table_route(
self,
vpc_id: str,
routing_table_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteVpcRoutingTableRoute(DeleteVpcRoutingTableRouteOptions deleteVpcRoutingTableRouteOptions)
deleteVpcRoutingTableRoute(params)
Retrieve a VPC routing table route
This request retrieves a single VPC route specified by the identifier in the URL path.
This request retrieves a single VPC route specified by the identifier in the URL path.
This request retrieves a single VPC route specified by the identifier in the URL path.
This request retrieves a single VPC route specified by the identifier in the URL path.
This request retrieves a single VPC route specified by the identifier in the URL path.
GET /vpcs/{vpc_id}/routing_tables/{routing_table_id}/routes/{id}
(vpc *VpcV1) GetVPCRoutingTableRoute(getVPCRoutingTableRouteOptions *GetVPCRoutingTableRouteOptions) (result *Route, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetVPCRoutingTableRouteWithContext(ctx context.Context, getVPCRoutingTableRouteOptions *GetVPCRoutingTableRouteOptions) (result *Route, response *core.DetailedResponse, err error)
get_vpc_routing_table_route(
self,
vpc_id: str,
routing_table_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Route> getVpcRoutingTableRoute(GetVpcRoutingTableRouteOptions getVpcRoutingTableRouteOptions)
getVpcRoutingTableRoute(params)
Update a VPC routing table route
This request updates a VPC route with the information provided in a route patch object.
The patch object is structured in the same way as a retrieved VPC route and needs to
contain only the information to be updated. Only VPC routes with an origin
of user
are allowed to be updated.
This request updates a VPC route with the information provided in a route patch object. The patch object is structured in the same way as a retrieved VPC route and needs to contain only the information to be updated. Only VPC routes with an origin
of user
are allowed to be updated.
This request updates a VPC route with the information provided in a route patch object. The patch object is structured in the same way as a retrieved VPC route and needs to contain only the information to be updated. Only VPC routes with an origin
of user
are allowed to be updated.
This request updates a VPC route with the information provided in a route patch object. The patch object is structured in the same way as a retrieved VPC route and needs to contain only the information to be updated. Only VPC routes with an origin
of user
are allowed to be updated.
This request updates a VPC route with the information provided in a route patch object. The patch object is structured in the same way as a retrieved VPC route and needs to contain only the information to be updated. Only VPC routes with an origin
of user
are allowed to be updated.
PATCH /vpcs/{vpc_id}/routing_tables/{routing_table_id}/routes/{id}
(vpc *VpcV1) UpdateVPCRoutingTableRoute(updateVPCRoutingTableRouteOptions *UpdateVPCRoutingTableRouteOptions) (result *Route, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateVPCRoutingTableRouteWithContext(ctx context.Context, updateVPCRoutingTableRouteOptions *UpdateVPCRoutingTableRouteOptions) (result *Route, response *core.DetailedResponse, err error)
update_vpc_routing_table_route(
self,
vpc_id: str,
routing_table_id: str,
id: str,
route_patch: 'RoutePatch',
**kwargs,
) -> DetailedResponse
ServiceCall<Route> updateVpcRoutingTableRoute(UpdateVpcRoutingTableRouteOptions updateVpcRoutingTableRouteOptions)
updateVpcRoutingTableRoute(params)
List subnets
This request lists subnets in the region. Subnets are contiguous ranges of IP addresses specified in CIDR block notation. Each subnet is within a particular zone and cannot span multiple zones or regions.
This request lists subnets in the region. Subnets are contiguous ranges of IP addresses specified in CIDR block notation. Each subnet is within a particular zone and cannot span multiple zones or regions.
This request lists subnets in the region. Subnets are contiguous ranges of IP addresses specified in CIDR block notation. Each subnet is within a particular zone and cannot span multiple zones or regions.
This request lists subnets in the region. Subnets are contiguous ranges of IP addresses specified in CIDR block notation. Each subnet is within a particular zone and cannot span multiple zones or regions.
This request lists subnets in the region. Subnets are contiguous ranges of IP addresses specified in CIDR block notation. Each subnet is within a particular zone and cannot span multiple zones or regions.
GET /subnets
(vpc *VpcV1) ListSubnets(listSubnetsOptions *ListSubnetsOptions) (result *SubnetCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListSubnetsWithContext(ctx context.Context, listSubnetsOptions *ListSubnetsOptions) (result *SubnetCollection, response *core.DetailedResponse, err error)
list_subnets(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
resource_group_id: Optional[str] = None,
zone_name: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_crn: Optional[str] = None,
vpc_name: Optional[str] = None,
routing_table_id: Optional[str] = None,
routing_table_name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<SubnetCollection> listSubnets(ListSubnetsOptions listSubnetsOptions)
listSubnets(params)
Create a subnet
This request creates a new subnet from a subnet prototype object. The prototype object is structured in the same way as a retrieved subnet, and contains the information necessary to create the new subnet. For this request to succeed, the prototype's CIDR block must not overlap with an existing subnet in the VPC.
This request creates a new subnet from a subnet prototype object. The prototype object is structured in the same way as a retrieved subnet, and contains the information necessary to create the new subnet. For this request to succeed, the prototype's CIDR block must not overlap with an existing subnet in the VPC.
This request creates a new subnet from a subnet prototype object. The prototype object is structured in the same way as a retrieved subnet, and contains the information necessary to create the new subnet. For this request to succeed, the prototype's CIDR block must not overlap with an existing subnet in the VPC.
This request creates a new subnet from a subnet prototype object. The prototype object is structured in the same way as a retrieved subnet, and contains the information necessary to create the new subnet. For this request to succeed, the prototype's CIDR block must not overlap with an existing subnet in the VPC.
This request creates a new subnet from a subnet prototype object. The prototype object is structured in the same way as a retrieved subnet, and contains the information necessary to create the new subnet. For this request to succeed, the prototype's CIDR block must not overlap with an existing subnet in the VPC.
POST /subnets
(vpc *VpcV1) CreateSubnet(createSubnetOptions *CreateSubnetOptions) (result *Subnet, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateSubnetWithContext(ctx context.Context, createSubnetOptions *CreateSubnetOptions) (result *Subnet, response *core.DetailedResponse, err error)
create_subnet(
self,
subnet_prototype: 'SubnetPrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<Subnet> createSubnet(CreateSubnetOptions createSubnetOptions)
createSubnet(params)
Delete a subnet
This request deletes a subnet. This operation cannot be reversed. For this request to
succeed, the subnet must not be referenced by any bare metal server network interfaces,
instance network interfaces, virtual network interfaces, VPN gateways, or
load balancers. A delete operation automatically detaches the subnet from any network
ACLs, public gateways, or endpoint gateways. All flow log collectors with auto_delete
set to true
targeting the subnet or any resource in the subnet are automatically
deleted.
This request deletes a subnet. This operation cannot be reversed. For this request to succeed, the subnet must not be referenced by any bare metal server network interfaces, instance network interfaces, virtual network interfaces, VPN gateways, or load balancers. A delete operation automatically detaches the subnet from any network ACLs, public gateways, or endpoint gateways. All flow log collectors with auto_delete
set to true
targeting the subnet or any resource in the subnet are automatically deleted.
This request deletes a subnet. This operation cannot be reversed. For this request to succeed, the subnet must not be referenced by any bare metal server network interfaces, instance network interfaces, virtual network interfaces, VPN gateways, or load balancers. A delete operation automatically detaches the subnet from any network ACLs, public gateways, or endpoint gateways. All flow log collectors with auto_delete
set to true
targeting the subnet or any resource in the subnet are automatically deleted.
This request deletes a subnet. This operation cannot be reversed. For this request to succeed, the subnet must not be referenced by any bare metal server network interfaces, instance network interfaces, virtual network interfaces, VPN gateways, or load balancers. A delete operation automatically detaches the subnet from any network ACLs, public gateways, or endpoint gateways. All flow log collectors with auto_delete
set to true
targeting the subnet or any resource in the subnet are automatically deleted.
This request deletes a subnet. This operation cannot be reversed. For this request to succeed, the subnet must not be referenced by any bare metal server network interfaces, instance network interfaces, virtual network interfaces, VPN gateways, or load balancers. A delete operation automatically detaches the subnet from any network ACLs, public gateways, or endpoint gateways. All flow log collectors with auto_delete
set to true
targeting the subnet or any resource in the subnet are automatically deleted.
DELETE /subnets/{id}
(vpc *VpcV1) DeleteSubnet(deleteSubnetOptions *DeleteSubnetOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteSubnetWithContext(ctx context.Context, deleteSubnetOptions *DeleteSubnetOptions) (response *core.DetailedResponse, err error)
delete_subnet(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteSubnet(DeleteSubnetOptions deleteSubnetOptions)
deleteSubnet(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.subnet.subnet.detach
Generated for each resource that was attached to this subnet:
- a flow log collector
- a public gateway
- a network ACL
- a routing table
is.public-gateway.public-gateway.detach
Generated when the subnet has
public_gateway
set.is.network-acl.network-acl.detach
is.vpc.routing-table.detach
is.flow-log-collector.flow-log-collector.delete
Generated when a flow log collector that had
auto_delete
set totrue
was attached to the subnet.is.flow-log-collector.flow-log-collector.detach
Generated when a flow log collector was attached to the subnet
is.subnet.subnet.delete
Retrieve a subnet
This request retrieves a single subnet specified by the identifier in the URL.
This request retrieves a single subnet specified by the identifier in the URL.
This request retrieves a single subnet specified by the identifier in the URL.
This request retrieves a single subnet specified by the identifier in the URL.
This request retrieves a single subnet specified by the identifier in the URL.
GET /subnets/{id}
(vpc *VpcV1) GetSubnet(getSubnetOptions *GetSubnetOptions) (result *Subnet, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetSubnetWithContext(ctx context.Context, getSubnetOptions *GetSubnetOptions) (result *Subnet, response *core.DetailedResponse, err error)
get_subnet(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Subnet> getSubnet(GetSubnetOptions getSubnetOptions)
getSubnet(params)
Update a subnet
This request updates a subnet with the information in a provided subnet patch. The subnet patch object is structured in the same way as a retrieved subnet and contains only the information to be updated.
This request updates a subnet with the information in a provided subnet patch. The subnet patch object is structured in the same way as a retrieved subnet and contains only the information to be updated.
This request updates a subnet with the information in a provided subnet patch. The subnet patch object is structured in the same way as a retrieved subnet and contains only the information to be updated.
This request updates a subnet with the information in a provided subnet patch. The subnet patch object is structured in the same way as a retrieved subnet and contains only the information to be updated.
This request updates a subnet with the information in a provided subnet patch. The subnet patch object is structured in the same way as a retrieved subnet and contains only the information to be updated.
PATCH /subnets/{id}
(vpc *VpcV1) UpdateSubnet(updateSubnetOptions *UpdateSubnetOptions) (result *Subnet, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateSubnetWithContext(ctx context.Context, updateSubnetOptions *UpdateSubnetOptions) (result *Subnet, response *core.DetailedResponse, err error)
update_subnet(
self,
id: str,
subnet_patch: 'SubnetPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<Subnet> updateSubnet(UpdateSubnetOptions updateSubnetOptions)
updateSubnet(params)
Retrieve a subnet's attached network ACL
This request retrieves the network ACL attached to the subnet specified by the identifier in the URL.
This request retrieves the network ACL attached to the subnet specified by the identifier in the URL.
This request retrieves the network ACL attached to the subnet specified by the identifier in the URL.
This request retrieves the network ACL attached to the subnet specified by the identifier in the URL.
This request retrieves the network ACL attached to the subnet specified by the identifier in the URL.
GET /subnets/{id}/network_acl
(vpc *VpcV1) GetSubnetNetworkACL(getSubnetNetworkACLOptions *GetSubnetNetworkACLOptions) (result *NetworkACL, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetSubnetNetworkACLWithContext(ctx context.Context, getSubnetNetworkACLOptions *GetSubnetNetworkACLOptions) (result *NetworkACL, response *core.DetailedResponse, err error)
get_subnet_network_acl(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<NetworkACL> getSubnetNetworkAcl(GetSubnetNetworkAclOptions getSubnetNetworkAclOptions)
getSubnetNetworkAcl(params)
Replace the network ACL for a subnet
This request replaces the existing network ACL for a subnet with the network ACL specified in the request body.
This request replaces the existing network ACL for a subnet with the network ACL specified in the request body.
This request replaces the existing network ACL for a subnet with the network ACL specified in the request body.
This request replaces the existing network ACL for a subnet with the network ACL specified in the request body.
This request replaces the existing network ACL for a subnet with the network ACL specified in the request body.
PUT /subnets/{id}/network_acl
(vpc *VpcV1) ReplaceSubnetNetworkACL(replaceSubnetNetworkACLOptions *ReplaceSubnetNetworkACLOptions) (result *NetworkACL, response *core.DetailedResponse, err error)
(vpc *VpcV1) ReplaceSubnetNetworkACLWithContext(ctx context.Context, replaceSubnetNetworkACLOptions *ReplaceSubnetNetworkACLOptions) (result *NetworkACL, response *core.DetailedResponse, err error)
replace_subnet_network_acl(
self,
id: str,
network_acl_identity: 'NetworkACLIdentity',
**kwargs,
) -> DetailedResponse
ServiceCall<NetworkACL> replaceSubnetNetworkAcl(ReplaceSubnetNetworkAclOptions replaceSubnetNetworkAclOptions)
replaceSubnetNetworkAcl(params)
Detach a public gateway from a subnet
This request detaches the public gateway from the subnet specified by the subnet identifier in the URL.
This request detaches the public gateway from the subnet specified by the subnet identifier in the URL.
This request detaches the public gateway from the subnet specified by the subnet identifier in the URL.
This request detaches the public gateway from the subnet specified by the subnet identifier in the URL.
This request detaches the public gateway from the subnet specified by the subnet identifier in the URL.
DELETE /subnets/{id}/public_gateway
(vpc *VpcV1) UnsetSubnetPublicGateway(unsetSubnetPublicGatewayOptions *UnsetSubnetPublicGatewayOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) UnsetSubnetPublicGatewayWithContext(ctx context.Context, unsetSubnetPublicGatewayOptions *UnsetSubnetPublicGatewayOptions) (response *core.DetailedResponse, err error)
unset_subnet_public_gateway(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> unsetSubnetPublicGateway(UnsetSubnetPublicGatewayOptions unsetSubnetPublicGatewayOptions)
unsetSubnetPublicGateway(params)
Retrieve a subnet's attached public gateway
This request retrieves the public gateway attached to the subnet specified by the identifier in the URL.
This request retrieves the public gateway attached to the subnet specified by the identifier in the URL.
This request retrieves the public gateway attached to the subnet specified by the identifier in the URL.
This request retrieves the public gateway attached to the subnet specified by the identifier in the URL.
This request retrieves the public gateway attached to the subnet specified by the identifier in the URL.
GET /subnets/{id}/public_gateway
(vpc *VpcV1) GetSubnetPublicGateway(getSubnetPublicGatewayOptions *GetSubnetPublicGatewayOptions) (result *PublicGateway, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetSubnetPublicGatewayWithContext(ctx context.Context, getSubnetPublicGatewayOptions *GetSubnetPublicGatewayOptions) (result *PublicGateway, response *core.DetailedResponse, err error)
get_subnet_public_gateway(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<PublicGateway> getSubnetPublicGateway(GetSubnetPublicGatewayOptions getSubnetPublicGatewayOptions)
getSubnetPublicGateway(params)
Attach a public gateway to a subnet
This request attaches the public gateway, specified in the request body, to the subnet specified by the subnet identifier in the URL. The public gateway must have the same VPC and zone as the subnet.
This request attaches the public gateway, specified in the request body, to the subnet specified by the subnet identifier in the URL. The public gateway must have the same VPC and zone as the subnet.
This request attaches the public gateway, specified in the request body, to the subnet specified by the subnet identifier in the URL. The public gateway must have the same VPC and zone as the subnet.
This request attaches the public gateway, specified in the request body, to the subnet specified by the subnet identifier in the URL. The public gateway must have the same VPC and zone as the subnet.
This request attaches the public gateway, specified in the request body, to the subnet specified by the subnet identifier in the URL. The public gateway must have the same VPC and zone as the subnet.
PUT /subnets/{id}/public_gateway
(vpc *VpcV1) SetSubnetPublicGateway(setSubnetPublicGatewayOptions *SetSubnetPublicGatewayOptions) (result *PublicGateway, response *core.DetailedResponse, err error)
(vpc *VpcV1) SetSubnetPublicGatewayWithContext(ctx context.Context, setSubnetPublicGatewayOptions *SetSubnetPublicGatewayOptions) (result *PublicGateway, response *core.DetailedResponse, err error)
set_subnet_public_gateway(
self,
id: str,
public_gateway_identity: 'PublicGatewayIdentity',
**kwargs,
) -> DetailedResponse
ServiceCall<PublicGateway> setSubnetPublicGateway(SetSubnetPublicGatewayOptions setSubnetPublicGatewayOptions)
setSubnetPublicGateway(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.subnet.subnet.attach
is.subnet.subnet.detach
Generated for the replaced public gateway (if any)
is.public-gateway.public-gateway.detach
Generated for the replaced public gateway (if any)
is.public-gateway.public-gateway.attach
Retrieve a subnet's attached routing table
This request retrieves the routing table attached to the subnet specified by the identifier in the URL.
This request retrieves the routing table attached to the subnet specified by the identifier in the URL.
This request retrieves the routing table attached to the subnet specified by the identifier in the URL.
This request retrieves the routing table attached to the subnet specified by the identifier in the URL.
This request retrieves the routing table attached to the subnet specified by the identifier in the URL.
GET /subnets/{id}/routing_table
(vpc *VpcV1) GetSubnetRoutingTable(getSubnetRoutingTableOptions *GetSubnetRoutingTableOptions) (result *RoutingTable, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetSubnetRoutingTableWithContext(ctx context.Context, getSubnetRoutingTableOptions *GetSubnetRoutingTableOptions) (result *RoutingTable, response *core.DetailedResponse, err error)
get_subnet_routing_table(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<RoutingTable> getSubnetRoutingTable(GetSubnetRoutingTableOptions getSubnetRoutingTableOptions)
getSubnetRoutingTable(params)
Replace the routing table for a subnet
This request replaces the existing routing table for a subnet with the routing table specified in the request body.
For this request to succeed, the routing table route_direct_link_ingress
,
route_internet_ingress
, route_transit_gateway_ingress
, and route_vpc_zone_ingress
properties must be false
.
This request replaces the existing routing table for a subnet with the routing table specified in the request body.
For this request to succeed, the routing table route_direct_link_ingress
,
route_internet_ingress
, route_transit_gateway_ingress
, and route_vpc_zone_ingress
properties must be false
.
This request replaces the existing routing table for a subnet with the routing table specified in the request body.
For this request to succeed, the routing table route_direct_link_ingress
,
route_internet_ingress
, route_transit_gateway_ingress
, and route_vpc_zone_ingress
properties must be false
.
This request replaces the existing routing table for a subnet with the routing table specified in the request body.
For this request to succeed, the routing table route_direct_link_ingress
,
route_internet_ingress
, route_transit_gateway_ingress
, and route_vpc_zone_ingress
properties must be false
.
This request replaces the existing routing table for a subnet with the routing table specified in the request body.
For this request to succeed, the routing table route_direct_link_ingress
,
route_internet_ingress
, route_transit_gateway_ingress
, and route_vpc_zone_ingress
properties must be false
.
PUT /subnets/{id}/routing_table
(vpc *VpcV1) ReplaceSubnetRoutingTable(replaceSubnetRoutingTableOptions *ReplaceSubnetRoutingTableOptions) (result *RoutingTable, response *core.DetailedResponse, err error)
(vpc *VpcV1) ReplaceSubnetRoutingTableWithContext(ctx context.Context, replaceSubnetRoutingTableOptions *ReplaceSubnetRoutingTableOptions) (result *RoutingTable, response *core.DetailedResponse, err error)
replace_subnet_routing_table(
self,
id: str,
routing_table_identity: 'RoutingTableIdentity',
**kwargs,
) -> DetailedResponse
ServiceCall<RoutingTable> replaceSubnetRoutingTable(ReplaceSubnetRoutingTableOptions replaceSubnetRoutingTableOptions)
replaceSubnetRoutingTable(params)
List reserved IPs in a subnet
This request lists reserved IPs in a subnet. A reserved IP resource will exist for every address in the subnet which is not available for use.
This request lists reserved IPs in a subnet. A reserved IP resource will exist for every address in the subnet which is not available for use.
This request lists reserved IPs in a subnet. A reserved IP resource will exist for every address in the subnet which is not available for use.
This request lists reserved IPs in a subnet. A reserved IP resource will exist for every address in the subnet which is not available for use.
This request lists reserved IPs in a subnet. A reserved IP resource will exist for every address in the subnet which is not available for use.
GET /subnets/{subnet_id}/reserved_ips
(vpc *VpcV1) ListSubnetReservedIps(listSubnetReservedIpsOptions *ListSubnetReservedIpsOptions) (result *ReservedIPCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListSubnetReservedIpsWithContext(ctx context.Context, listSubnetReservedIpsOptions *ListSubnetReservedIpsOptions) (result *ReservedIPCollection, response *core.DetailedResponse, err error)
list_subnet_reserved_ips(
self,
subnet_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
sort: Optional[str] = None,
target_id: Optional[str] = None,
target_crn: Optional[str] = None,
target_name: Optional[str] = None,
target_resource_type: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<ReservedIPCollection> listSubnetReservedIps(ListSubnetReservedIpsOptions listSubnetReservedIpsOptions)
listSubnetReservedIps(params)
Reserve an IP in a subnet
This request reserves an IP address in a subnet. If the provided prototype object
includes an address
, the address must not already be reserved.
This request reserves an IP address in a subnet. If the provided prototype object includes an address
, the address must not already be reserved.
This request reserves an IP address in a subnet. If the provided prototype object includes an address
, the address must not already be reserved.
This request reserves an IP address in a subnet. If the provided prototype object includes an address
, the address must not already be reserved.
This request reserves an IP address in a subnet. If the provided prototype object includes an address
, the address must not already be reserved.
POST /subnets/{subnet_id}/reserved_ips
(vpc *VpcV1) CreateSubnetReservedIP(createSubnetReservedIPOptions *CreateSubnetReservedIPOptions) (result *ReservedIP, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateSubnetReservedIPWithContext(ctx context.Context, createSubnetReservedIPOptions *CreateSubnetReservedIPOptions) (result *ReservedIP, response *core.DetailedResponse, err error)
create_subnet_reserved_ip(
self,
subnet_id: str,
*,
address: Optional[str] = None,
auto_delete: Optional[bool] = None,
name: Optional[str] = None,
target: Optional['ReservedIPTargetPrototype'] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<ReservedIP> createSubnetReservedIp(CreateSubnetReservedIpOptions createSubnetReservedIpOptions)
createSubnetReservedIp(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.subnet.reserved-ip.create
is.subnet.subnet.update
is.endpoint-gateway.endpoint-gateway.attach
Generated when
target
specifies an endpoint gatewayis.subnet.reserved-ip.attach
Generated when
target
is specifiedis.virtual-network-interface.virtual-network-interface.attach
Generated when
target
specifies a virtual network interface
Delete a reserved IP
This request releases a reserved IP. This operation cannot be reversed.
For this request to succeed, the reserved IP must not be required by another resource, such as a bare metal server network interface, instance network interface or virtual network interface for which it is the primary IP. A provider-owned reserved IP is not allowed to be deleted.
This request releases a reserved IP. This operation cannot be reversed.
For this request to succeed, the reserved IP must not be required by another resource, such as a bare metal server network interface, instance network interface or virtual network interface for which it is the primary IP. A provider-owned reserved IP is not allowed to be deleted.
This request releases a reserved IP. This operation cannot be reversed.
For this request to succeed, the reserved IP must not be required by another resource, such as a bare metal server network interface, instance network interface or virtual network interface for which it is the primary IP. A provider-owned reserved IP is not allowed to be deleted.
This request releases a reserved IP. This operation cannot be reversed.
For this request to succeed, the reserved IP must not be required by another resource, such as a bare metal server network interface, instance network interface or virtual network interface for which it is the primary IP. A provider-owned reserved IP is not allowed to be deleted.
This request releases a reserved IP. This operation cannot be reversed.
For this request to succeed, the reserved IP must not be required by another resource, such as a bare metal server network interface, instance network interface or virtual network interface for which it is the primary IP. A provider-owned reserved IP is not allowed to be deleted.
DELETE /subnets/{subnet_id}/reserved_ips/{id}
(vpc *VpcV1) DeleteSubnetReservedIP(deleteSubnetReservedIPOptions *DeleteSubnetReservedIPOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteSubnetReservedIPWithContext(ctx context.Context, deleteSubnetReservedIPOptions *DeleteSubnetReservedIPOptions) (response *core.DetailedResponse, err error)
delete_subnet_reserved_ip(
self,
subnet_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteSubnetReservedIp(DeleteSubnetReservedIpOptions deleteSubnetReservedIpOptions)
deleteSubnetReservedIp(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.subnet.subnet.update
is.subnet.reserved-ip.delete
is.subnet.reserved-ip.detach
Generated when the reserved IP was attached
is.endpoint-gateway.endpoint-gateway.detach
Generated when
target
specified an endpoint gatewayis.virtual-network-interface.virtual-network-interface.detach
Generated when
target
specified a virtual network interface
Retrieve a reserved IP
This request retrieves a single reserved IP specified by the identifier in the URL.
This request retrieves a single reserved IP specified by the identifier in the URL.
This request retrieves a single reserved IP specified by the identifier in the URL.
This request retrieves a single reserved IP specified by the identifier in the URL.
This request retrieves a single reserved IP specified by the identifier in the URL.
GET /subnets/{subnet_id}/reserved_ips/{id}
(vpc *VpcV1) GetSubnetReservedIP(getSubnetReservedIPOptions *GetSubnetReservedIPOptions) (result *ReservedIP, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetSubnetReservedIPWithContext(ctx context.Context, getSubnetReservedIPOptions *GetSubnetReservedIPOptions) (result *ReservedIP, response *core.DetailedResponse, err error)
get_subnet_reserved_ip(
self,
subnet_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<ReservedIP> getSubnetReservedIp(GetSubnetReservedIpOptions getSubnetReservedIpOptions)
getSubnetReservedIp(params)
Update a reserved IP
This request updates a reserved IP with the information in a provided reserved IP patch. The reserved IP patch object is structured in the same way as a retrieved reserved IP and contains only the information to be updated.
A provider-owned reserved IP is not allowed to be updated.
This request updates a reserved IP with the information in a provided reserved IP patch. The reserved IP patch object is structured in the same way as a retrieved reserved IP and contains only the information to be updated.
A provider-owned reserved IP is not allowed to be updated.
This request updates a reserved IP with the information in a provided reserved IP patch. The reserved IP patch object is structured in the same way as a retrieved reserved IP and contains only the information to be updated.
A provider-owned reserved IP is not allowed to be updated.
This request updates a reserved IP with the information in a provided reserved IP patch. The reserved IP patch object is structured in the same way as a retrieved reserved IP and contains only the information to be updated.
A provider-owned reserved IP is not allowed to be updated.
This request updates a reserved IP with the information in a provided reserved IP patch. The reserved IP patch object is structured in the same way as a retrieved reserved IP and contains only the information to be updated.
A provider-owned reserved IP is not allowed to be updated.
PATCH /subnets/{subnet_id}/reserved_ips/{id}
(vpc *VpcV1) UpdateSubnetReservedIP(updateSubnetReservedIPOptions *UpdateSubnetReservedIPOptions) (result *ReservedIP, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateSubnetReservedIPWithContext(ctx context.Context, updateSubnetReservedIPOptions *UpdateSubnetReservedIPOptions) (result *ReservedIP, response *core.DetailedResponse, err error)
update_subnet_reserved_ip(
self,
subnet_id: str,
id: str,
reserved_ip_patch: 'ReservedIPPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<ReservedIP> updateSubnetReservedIp(UpdateSubnetReservedIpOptions updateSubnetReservedIpOptions)
updateSubnetReservedIp(params)
List images
This request lists images available in the region. An image provides source data for a volume. Images are either system-provided, or created from another source, such as importing from Cloud Object Storage.
This request lists images available in the region. An image provides source data for a volume. Images are either system-provided, or created from another source, such as importing from Cloud Object Storage.
This request lists images available in the region. An image provides source data for a volume. Images are either system-provided, or created from another source, such as importing from Cloud Object Storage.
This request lists images available in the region. An image provides source data for a volume. Images are either system-provided, or created from another source, such as importing from Cloud Object Storage.
This request lists images available in the region. An image provides source data for a volume. Images are either system-provided, or created from another source, such as importing from Cloud Object Storage.
GET /images
(vpc *VpcV1) ListImages(listImagesOptions *ListImagesOptions) (result *ImageCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListImagesWithContext(ctx context.Context, listImagesOptions *ListImagesOptions) (result *ImageCollection, response *core.DetailedResponse, err error)
list_images(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
resource_group_id: Optional[str] = None,
name: Optional[str] = None,
status: Optional[List[str]] = None,
visibility: Optional[str] = None,
user_data_format: Optional[List[str]] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<ImageCollection> listImages(ListImagesOptions listImagesOptions)
listImages(params)
Create an image
This request creates a new image from an image prototype object. The prototype object is structured in the same way as a retrieved image, and contains the information necessary to create the new image. If an image is being imported, a URL to the image file on object storage must be specified. If an image is being created from an existing volume, that volume must be specified.
This request creates a new image from an image prototype object. The prototype object is structured in the same way as a retrieved image, and contains the information necessary to create the new image. If an image is being imported, a URL to the image file on object storage must be specified. If an image is being created from an existing volume, that volume must be specified.
This request creates a new image from an image prototype object. The prototype object is structured in the same way as a retrieved image, and contains the information necessary to create the new image. If an image is being imported, a URL to the image file on object storage must be specified. If an image is being created from an existing volume, that volume must be specified.
This request creates a new image from an image prototype object. The prototype object is structured in the same way as a retrieved image, and contains the information necessary to create the new image. If an image is being imported, a URL to the image file on object storage must be specified. If an image is being created from an existing volume, that volume must be specified.
This request creates a new image from an image prototype object. The prototype object is structured in the same way as a retrieved image, and contains the information necessary to create the new image. If an image is being imported, a URL to the image file on object storage must be specified. If an image is being created from an existing volume, that volume must be specified.
POST /images
(vpc *VpcV1) CreateImage(createImageOptions *CreateImageOptions) (result *Image, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateImageWithContext(ctx context.Context, createImageOptions *CreateImageOptions) (result *Image, response *core.DetailedResponse, err error)
create_image(
self,
image_prototype: 'ImagePrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<Image> createImage(CreateImageOptions createImageOptions)
createImage(params)
Delete an image
This request deletes an image. Any active image export jobs will be completed first. This operation cannot be reversed. A system-provided image is not allowed to be deleted. Additionally, an image cannot be deleted if it:
- has a
status
ofdeleting
- has a
status
ofpending
with astatus_reasons
code ofimage_request_in_progress
- has
catalog_offering.managed
set totrue
This request deletes an image. Any active image export jobs will be completed first. This operation cannot be reversed. A system-provided image is not allowed to be deleted. Additionally, an image cannot be deleted if it:
- has a
status
ofdeleting
- has a
status
ofpending
with astatus_reasons
code ofimage_request_in_progress
- has
catalog_offering.managed
set totrue
.
This request deletes an image. Any active image export jobs will be completed first. This operation cannot be reversed. A system-provided image is not allowed to be deleted. Additionally, an image cannot be deleted if it:
- has a
status
ofdeleting
- has a
status
ofpending
with astatus_reasons
code ofimage_request_in_progress
- has
catalog_offering.managed
set totrue
.
This request deletes an image. Any active image export jobs will be completed first. This operation cannot be reversed. A system-provided image is not allowed to be deleted. Additionally, an image cannot be deleted if it:
- has a
status
ofdeleting
- has a
status
ofpending
with astatus_reasons
code ofimage_request_in_progress
- has
catalog_offering.managed
set totrue
.
This request deletes an image. Any active image export jobs will be completed first. This operation cannot be reversed. A system-provided image is not allowed to be deleted. Additionally, an image cannot be deleted if it:
- has a
status
ofdeleting
- has a
status
ofpending
with astatus_reasons
code ofimage_request_in_progress
- has
catalog_offering.managed
set totrue
.
DELETE /images/{id}
(vpc *VpcV1) DeleteImage(deleteImageOptions *DeleteImageOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteImageWithContext(ctx context.Context, deleteImageOptions *DeleteImageOptions) (response *core.DetailedResponse, err error)
delete_image(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteImage(DeleteImageOptions deleteImageOptions)
deleteImage(params)
Retrieve an image
This request retrieves a single image specified by the identifier in the URL.
This request retrieves a single image specified by the identifier in the URL.
This request retrieves a single image specified by the identifier in the URL.
This request retrieves a single image specified by the identifier in the URL.
This request retrieves a single image specified by the identifier in the URL.
GET /images/{id}
(vpc *VpcV1) GetImage(getImageOptions *GetImageOptions) (result *Image, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetImageWithContext(ctx context.Context, getImageOptions *GetImageOptions) (result *Image, response *core.DetailedResponse, err error)
get_image(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Image> getImage(GetImageOptions getImageOptions)
getImage(params)
Update an image
This request updates an image with the information in a provided image patch. The image
patch object is structured in the same way as a retrieved image and contains only the
information to be updated. A system-provided image is not allowed to be updated. An
image with a status
of deleting
cannot be updated.
This request updates an image with the information in a provided image patch. The image patch object is structured in the same way as a retrieved image and contains only the information to be updated. A system-provided image is not allowed to be updated. An image with a status
of deleting
cannot be updated.
This request updates an image with the information in a provided image patch. The image patch object is structured in the same way as a retrieved image and contains only the information to be updated. A system-provided image is not allowed to be updated. An image with a status
of deleting
cannot be updated.
This request updates an image with the information in a provided image patch. The image patch object is structured in the same way as a retrieved image and contains only the information to be updated. A system-provided image is not allowed to be updated. An image with a status
of deleting
cannot be updated.
This request updates an image with the information in a provided image patch. The image patch object is structured in the same way as a retrieved image and contains only the information to be updated. A system-provided image is not allowed to be updated. An image with a status
of deleting
cannot be updated.
PATCH /images/{id}
(vpc *VpcV1) UpdateImage(updateImageOptions *UpdateImageOptions) (result *Image, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateImageWithContext(ctx context.Context, updateImageOptions *UpdateImageOptions) (result *Image, response *core.DetailedResponse, err error)
update_image(
self,
id: str,
image_patch: 'ImagePatch',
**kwargs,
) -> DetailedResponse
ServiceCall<Image> updateImage(UpdateImageOptions updateImageOptions)
updateImage(params)
Deprecate an image
This request deprecates an image, resulting in its status
becoming deprecated
and
deprecation_at
being set to the current date and time.
The image must:
- have a
status
ofavailable
- have
catalog_offering.managed
set tofalse
- not have
deprecation_at
set
The image must not have deprecation_at
set, must have catalog_offering.managed
set to
false
, and must have a status
of available
.
A system-provided image is not allowed to be deprecated.
This request deprecates an image, resulting in its status
becoming deprecated
and
deprecation_at
being set to the current date and time.
The image must:
- have a
status
ofavailable
- have
catalog_offering.managed
set tofalse
- not have
deprecation_at
set
The image must not have deprecation_at
set, must have catalog_offering.managed
set to
false
, and must have a status
of available
.
A system-provided image is not allowed to be deprecated.
This request deprecates an image, resulting in its status
becoming deprecated
and
deprecation_at
being set to the current date and time.
The image must:
- have a
status
ofavailable
- have
catalog_offering.managed
set tofalse
- not have
deprecation_at
set
The image must not have deprecation_at
set, must have catalog_offering.managed
set to
false
, and must have a status
of available
.
A system-provided image is not allowed to be deprecated.
This request deprecates an image, resulting in its status
becoming deprecated
and
deprecation_at
being set to the current date and time.
The image must:
- have a
status
ofavailable
- have
catalog_offering.managed
set tofalse
- not have
deprecation_at
set
The image must not have deprecation_at
set, must have catalog_offering.managed
set to
false
, and must have a status
of available
.
A system-provided image is not allowed to be deprecated.
This request deprecates an image, resulting in its status
becoming deprecated
and
deprecation_at
being set to the current date and time.
The image must:
- have a
status
ofavailable
- have
catalog_offering.managed
set tofalse
- not have
deprecation_at
set
The image must not have deprecation_at
set, must have catalog_offering.managed
set to
false
, and must have a status
of available
.
A system-provided image is not allowed to be deprecated.
POST /images/{id}/deprecate
(vpc *VpcV1) DeprecateImage(deprecateImageOptions *DeprecateImageOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeprecateImageWithContext(ctx context.Context, deprecateImageOptions *DeprecateImageOptions) (response *core.DetailedResponse, err error)
deprecate_image(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deprecateImage(DeprecateImageOptions deprecateImageOptions)
deprecateImage(params)
Obsolete an image
This request obsoletes an image, resulting in its status
becoming obsolete
and
obsolescence_at
being set to the current date and time.
The image must:
- have a
status
ofavailable
ordeprecated
- have
catalog_offering.managed
set tofalse
- not have
deprecation_at
set in the future - not have
obsolescence_at
set
A system-provided image is not allowed to be obsoleted.
This request obsoletes an image, resulting in its status
becoming obsolete
and
obsolescence_at
being set to the current date and time.
The image must:
- have a
status
ofavailable
ordeprecated
- have
catalog_offering.managed
set tofalse
- not have
deprecation_at
set in the future - not have
obsolescence_at
set
A system-provided image is not allowed to be obsoleted.
This request obsoletes an image, resulting in its status
becoming obsolete
and
obsolescence_at
being set to the current date and time.
The image must:
- have a
status
ofavailable
ordeprecated
- have
catalog_offering.managed
set tofalse
- not have
deprecation_at
set in the future - not have
obsolescence_at
set
A system-provided image is not allowed to be obsoleted.
This request obsoletes an image, resulting in its status
becoming obsolete
and
obsolescence_at
being set to the current date and time.
The image must:
- have a
status
ofavailable
ordeprecated
- have
catalog_offering.managed
set tofalse
- not have
deprecation_at
set in the future - not have
obsolescence_at
set
A system-provided image is not allowed to be obsoleted.
This request obsoletes an image, resulting in its status
becoming obsolete
and
obsolescence_at
being set to the current date and time.
The image must:
- have a
status
ofavailable
ordeprecated
- have
catalog_offering.managed
set tofalse
- not have
deprecation_at
set in the future - not have
obsolescence_at
set
A system-provided image is not allowed to be obsoleted.
POST /images/{id}/obsolete
(vpc *VpcV1) ObsoleteImage(obsoleteImageOptions *ObsoleteImageOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) ObsoleteImageWithContext(ctx context.Context, obsoleteImageOptions *ObsoleteImageOptions) (response *core.DetailedResponse, err error)
obsolete_image(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> obsoleteImage(ObsoleteImageOptions obsoleteImageOptions)
obsoleteImage(params)
List export jobs for an image
This request lists export jobs for an image. Each job tracks the exporting of the image to another location, such as a bucket within cloud object storage.
The jobs will be sorted by their created_at
property values, with newest jobs first.
Jobs with identical created_at
property values will in turn be sorted by ascending
name
property values.
This request lists export jobs for an image. Each job tracks the exporting of the image to another location, such as a bucket within cloud object storage.
The jobs will be sorted by their created_at
property values, with newest jobs first. Jobs with identical created_at
property values will in turn be sorted by ascending
name
property values.
This request lists export jobs for an image. Each job tracks the exporting of the image to another location, such as a bucket within cloud object storage.
The jobs will be sorted by their created_at
property values, with newest jobs first. Jobs with identical created_at
property values will in turn be sorted by ascending
name
property values.
This request lists export jobs for an image. Each job tracks the exporting of the image to another location, such as a bucket within cloud object storage.
The jobs will be sorted by their created_at
property values, with newest jobs first. Jobs with identical created_at
property values will in turn be sorted by ascending
name
property values.
This request lists export jobs for an image. Each job tracks the exporting of the image to another location, such as a bucket within cloud object storage.
The jobs will be sorted by their created_at
property values, with newest jobs first. Jobs with identical created_at
property values will in turn be sorted by ascending
name
property values.
GET /images/{image_id}/export_jobs
(vpc *VpcV1) ListImageExportJobs(listImageExportJobsOptions *ListImageExportJobsOptions) (result *ImageExportJobUnpaginatedCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListImageExportJobsWithContext(ctx context.Context, listImageExportJobsOptions *ListImageExportJobsOptions) (result *ImageExportJobUnpaginatedCollection, response *core.DetailedResponse, err error)
list_image_export_jobs(
self,
image_id: str,
*,
name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<ImageExportJobUnpaginatedCollection> listImageExportJobs(ListImageExportJobsOptions listImageExportJobsOptions)
listImageExportJobs(params)
Create an export job for an image
This request creates and queues a new export job for the image specified in the URL using
the image export job prototype object. The image must be owned by the account and be in
the available
, deprecated
, obsolete
, or unusable
state. The prototype object is
structured in the same way as a retrieved image export job, and contains the information
necessary to create and queue the new image export job.
This request creates and queues a new export job for the image specified in the URL using the image export job prototype object. The image must be owned by the account and be in the available
, deprecated
, obsolete
, or unusable
state. The prototype object is structured in the same way as a retrieved image export job, and contains the information necessary to create and queue the new image export job.
This request creates and queues a new export job for the image specified in the URL using the image export job prototype object. The image must be owned by the account and be in the available
, deprecated
, obsolete
, or unusable
state. The prototype object is structured in the same way as a retrieved image export job, and contains the information necessary to create and queue the new image export job.
This request creates and queues a new export job for the image specified in the URL using the image export job prototype object. The image must be owned by the account and be in the available
, deprecated
, obsolete
, or unusable
state. The prototype object is structured in the same way as a retrieved image export job, and contains the information necessary to create and queue the new image export job.
This request creates and queues a new export job for the image specified in the URL using the image export job prototype object. The image must be owned by the account and be in the available
, deprecated
, obsolete
, or unusable
state. The prototype object is structured in the same way as a retrieved image export job, and contains the information necessary to create and queue the new image export job.
POST /images/{image_id}/export_jobs
(vpc *VpcV1) CreateImageExportJob(createImageExportJobOptions *CreateImageExportJobOptions) (result *ImageExportJob, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateImageExportJobWithContext(ctx context.Context, createImageExportJobOptions *CreateImageExportJobOptions) (result *ImageExportJob, response *core.DetailedResponse, err error)
create_image_export_job(
self,
image_id: str,
storage_bucket: 'CloudObjectStorageBucketIdentity',
*,
format: Optional[str] = None,
name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<ImageExportJob> createImageExportJob(CreateImageExportJobOptions createImageExportJobOptions)
createImageExportJob(params)
Delete an image export job
This request deletes an image export job. This operation cannot be reversed. If the job has not completed, the job will be canceled, and the incomplete exported image object deleted. If the job has completed, the exported image object will not be deleted.
This request deletes an image export job. This operation cannot be reversed. If the job has not completed, the job will be canceled, and the incomplete exported image object deleted. If the job has completed, the exported image object will not be deleted.
This request deletes an image export job. This operation cannot be reversed. If the job has not completed, the job will be canceled, and the incomplete exported image object deleted. If the job has completed, the exported image object will not be deleted.
This request deletes an image export job. This operation cannot be reversed. If the job has not completed, the job will be canceled, and the incomplete exported image object deleted. If the job has completed, the exported image object will not be deleted.
This request deletes an image export job. This operation cannot be reversed. If the job has not completed, the job will be canceled, and the incomplete exported image object deleted. If the job has completed, the exported image object will not be deleted.
DELETE /images/{image_id}/export_jobs/{id}
(vpc *VpcV1) DeleteImageExportJob(deleteImageExportJobOptions *DeleteImageExportJobOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteImageExportJobWithContext(ctx context.Context, deleteImageExportJobOptions *DeleteImageExportJobOptions) (response *core.DetailedResponse, err error)
delete_image_export_job(
self,
image_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteImageExportJob(DeleteImageExportJobOptions deleteImageExportJobOptions)
deleteImageExportJob(params)
Retrieve an image export job
This request retrieves a single image export job specified by the identifier in the URL.
This request retrieves a single image export job specified by the identifier in the URL.
This request retrieves a single image export job specified by the identifier in the URL.
This request retrieves a single image export job specified by the identifier in the URL.
This request retrieves a single image export job specified by the identifier in the URL.
GET /images/{image_id}/export_jobs/{id}
(vpc *VpcV1) GetImageExportJob(getImageExportJobOptions *GetImageExportJobOptions) (result *ImageExportJob, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetImageExportJobWithContext(ctx context.Context, getImageExportJobOptions *GetImageExportJobOptions) (result *ImageExportJob, response *core.DetailedResponse, err error)
get_image_export_job(
self,
image_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<ImageExportJob> getImageExportJob(GetImageExportJobOptions getImageExportJobOptions)
getImageExportJob(params)
Update an image export job
This request updates an image export job with the information in a provided image export job patch. The image export job patch object is structured in the same way as a retrieved image export job and contains only the information to be updated.
This request updates an image export job with the information in a provided image export job patch. The image export job patch object is structured in the same way as a retrieved image export job and contains only the information to be updated.
This request updates an image export job with the information in a provided image export job patch. The image export job patch object is structured in the same way as a retrieved image export job and contains only the information to be updated.
This request updates an image export job with the information in a provided image export job patch. The image export job patch object is structured in the same way as a retrieved image export job and contains only the information to be updated.
This request updates an image export job with the information in a provided image export job patch. The image export job patch object is structured in the same way as a retrieved image export job and contains only the information to be updated.
PATCH /images/{image_id}/export_jobs/{id}
(vpc *VpcV1) UpdateImageExportJob(updateImageExportJobOptions *UpdateImageExportJobOptions) (result *ImageExportJob, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateImageExportJobWithContext(ctx context.Context, updateImageExportJobOptions *UpdateImageExportJobOptions) (result *ImageExportJob, response *core.DetailedResponse, err error)
update_image_export_job(
self,
image_id: str,
id: str,
image_export_job_patch: 'ImageExportJobPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<ImageExportJob> updateImageExportJob(UpdateImageExportJobOptions updateImageExportJobOptions)
updateImageExportJob(params)
List operating systems
This request lists operating systems in the region.
This request lists operating systems in the region.
This request lists operating systems in the region.
This request lists operating systems in the region.
This request lists operating systems in the region.
GET /operating_systems
(vpc *VpcV1) ListOperatingSystems(listOperatingSystemsOptions *ListOperatingSystemsOptions) (result *OperatingSystemCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListOperatingSystemsWithContext(ctx context.Context, listOperatingSystemsOptions *ListOperatingSystemsOptions) (result *OperatingSystemCollection, response *core.DetailedResponse, err error)
list_operating_systems(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<OperatingSystemCollection> listOperatingSystems(ListOperatingSystemsOptions listOperatingSystemsOptions)
listOperatingSystems(params)
Retrieve an operating system
This request retrieves a single operating system specified by the name in the URL.
This request retrieves a single operating system specified by the name in the URL.
This request retrieves a single operating system specified by the name in the URL.
This request retrieves a single operating system specified by the name in the URL.
This request retrieves a single operating system specified by the name in the URL.
GET /operating_systems/{name}
(vpc *VpcV1) GetOperatingSystem(getOperatingSystemOptions *GetOperatingSystemOptions) (result *OperatingSystem, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetOperatingSystemWithContext(ctx context.Context, getOperatingSystemOptions *GetOperatingSystemOptions) (result *OperatingSystem, response *core.DetailedResponse, err error)
get_operating_system(
self,
name: str,
**kwargs,
) -> DetailedResponse
ServiceCall<OperatingSystem> getOperatingSystem(GetOperatingSystemOptions getOperatingSystemOptions)
getOperatingSystem(params)
List keys
This request lists keys in the region. A key contains a public SSH key which may be installed on instances when they are created. Private keys are not stored.
This request lists keys in the region. A key contains a public SSH key which may be installed on instances when they are created. Private keys are not stored.
This request lists keys in the region. A key contains a public SSH key which may be installed on instances when they are created. Private keys are not stored.
This request lists keys in the region. A key contains a public SSH key which may be installed on instances when they are created. Private keys are not stored.
This request lists keys in the region. A key contains a public SSH key which may be installed on instances when they are created. Private keys are not stored.
GET /keys
(vpc *VpcV1) ListKeys(listKeysOptions *ListKeysOptions) (result *KeyCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListKeysWithContext(ctx context.Context, listKeysOptions *ListKeysOptions) (result *KeyCollection, response *core.DetailedResponse, err error)
list_keys(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
resource_group_id: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<KeyCollection> listKeys(ListKeysOptions listKeysOptions)
listKeys(params)
Create a key
This request creates a new SSH key from an key prototype object. The prototype object is structured in the same way as a retrieved key, and contains the information necessary to create the new key. The public key value must be provided.
This request creates a new SSH key from an key prototype object. The prototype object is structured in the same way as a retrieved key, and contains the information necessary to create the new key. The public key value must be provided.
This request creates a new SSH key from an key prototype object. The prototype object is structured in the same way as a retrieved key, and contains the information necessary to create the new key. The public key value must be provided.
This request creates a new SSH key from an key prototype object. The prototype object is structured in the same way as a retrieved key, and contains the information necessary to create the new key. The public key value must be provided.
This request creates a new SSH key from an key prototype object. The prototype object is structured in the same way as a retrieved key, and contains the information necessary to create the new key. The public key value must be provided.
POST /keys
(vpc *VpcV1) CreateKey(createKeyOptions *CreateKeyOptions) (result *Key, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateKeyWithContext(ctx context.Context, createKeyOptions *CreateKeyOptions) (result *Key, response *core.DetailedResponse, err error)
create_key(
self,
public_key: str,
*,
name: Optional[str] = None,
resource_group: Optional['ResourceGroupIdentity'] = None,
type: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<Key> createKey(CreateKeyOptions createKeyOptions)
createKey(params)
Delete a key
This request deletes a key. This operation cannot be reversed.
This request deletes a key. This operation cannot be reversed.
This request deletes a key. This operation cannot be reversed.
This request deletes a key. This operation cannot be reversed.
This request deletes a key. This operation cannot be reversed.
DELETE /keys/{id}
(vpc *VpcV1) DeleteKey(deleteKeyOptions *DeleteKeyOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteKeyWithContext(ctx context.Context, deleteKeyOptions *DeleteKeyOptions) (response *core.DetailedResponse, err error)
delete_key(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteKey(DeleteKeyOptions deleteKeyOptions)
deleteKey(params)
Retrieve a key
This request retrieves a single key specified by the identifier in the URL.
This request retrieves a single key specified by the identifier in the URL.
This request retrieves a single key specified by the identifier in the URL.
This request retrieves a single key specified by the identifier in the URL.
This request retrieves a single key specified by the identifier in the URL.
GET /keys/{id}
(vpc *VpcV1) GetKey(getKeyOptions *GetKeyOptions) (result *Key, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetKeyWithContext(ctx context.Context, getKeyOptions *GetKeyOptions) (result *Key, response *core.DetailedResponse, err error)
get_key(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Key> getKey(GetKeyOptions getKeyOptions)
getKey(params)
Update a key
This request updates a key's name.
This request updates a key's name.
This request updates a key's name.
This request updates a key's name.
This request updates a key's name.
PATCH /keys/{id}
(vpc *VpcV1) UpdateKey(updateKeyOptions *UpdateKeyOptions) (result *Key, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateKeyWithContext(ctx context.Context, updateKeyOptions *UpdateKeyOptions) (result *Key, response *core.DetailedResponse, err error)
update_key(
self,
id: str,
key_patch: 'KeyPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<Key> updateKey(UpdateKeyOptions updateKeyOptions)
updateKey(params)
List instance profiles
This request lists provisionable instance profiles in the region. An instance profile specifies the performance characteristics and pricing model for an instance.
This request lists provisionable instance profiles in the region. An instance profile specifies the performance characteristics and pricing model for an instance.
This request lists provisionable instance profiles in the region. An instance profile specifies the performance characteristics and pricing model for an instance.
This request lists provisionable instance profiles in the region. An instance profile specifies the performance characteristics and pricing model for an instance.
This request lists provisionable instance profiles in the region. An instance profile specifies the performance characteristics and pricing model for an instance.
GET /instance/profiles
(vpc *VpcV1) ListInstanceProfiles(listInstanceProfilesOptions *ListInstanceProfilesOptions) (result *InstanceProfileCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceProfilesWithContext(ctx context.Context, listInstanceProfilesOptions *ListInstanceProfilesOptions) (result *InstanceProfileCollection, response *core.DetailedResponse, err error)
list_instance_profiles(
self,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceProfileCollection> listInstanceProfiles(ListInstanceProfilesOptions listInstanceProfilesOptions)
listInstanceProfiles(params)
Retrieve an instance profile
This request retrieves a single instance profile specified by the name in the URL.
This request retrieves a single instance profile specified by the name in the URL.
This request retrieves a single instance profile specified by the name in the URL.
This request retrieves a single instance profile specified by the name in the URL.
This request retrieves a single instance profile specified by the name in the URL.
GET /instance/profiles/{name}
(vpc *VpcV1) GetInstanceProfile(getInstanceProfileOptions *GetInstanceProfileOptions) (result *InstanceProfile, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceProfileWithContext(ctx context.Context, getInstanceProfileOptions *GetInstanceProfileOptions) (result *InstanceProfile, response *core.DetailedResponse, err error)
get_instance_profile(
self,
name: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceProfile> getInstanceProfile(GetInstanceProfileOptions getInstanceProfileOptions)
getInstanceProfile(params)
List instance templates
This request lists instance templates in the region.
This request lists instance templates in the region.
This request lists instance templates in the region.
This request lists instance templates in the region.
This request lists instance templates in the region.
GET /instance/templates
(vpc *VpcV1) ListInstanceTemplates(listInstanceTemplatesOptions *ListInstanceTemplatesOptions) (result *InstanceTemplateCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceTemplatesWithContext(ctx context.Context, listInstanceTemplatesOptions *ListInstanceTemplatesOptions) (result *InstanceTemplateCollection, response *core.DetailedResponse, err error)
list_instance_templates(
self,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceTemplateCollection> listInstanceTemplates(ListInstanceTemplatesOptions listInstanceTemplatesOptions)
listInstanceTemplates(params)
Create an instance template
This request creates a new instance template. The prototype object is structured in the same way as a retrieved instance template, and contains the information necessary to provision a new instance from the template.
If a source_template
is specified in the prototype object, its contents are copied into
the new template prior to copying any other properties provided in the prototype object.
This request creates a new instance template. The prototype object is structured in the same way as a retrieved instance template, and contains the information necessary to provision a new instance from the template.
If a source_template
is specified in the prototype object, its contents are copied into the new template prior to copying any other properties provided in the prototype object.
This request creates a new instance template. The prototype object is structured in the same way as a retrieved instance template, and contains the information necessary to provision a new instance from the template.
If a source_template
is specified in the prototype object, its contents are copied into the new template prior to copying any other properties provided in the prototype object.
This request creates a new instance template. The prototype object is structured in the same way as a retrieved instance template, and contains the information necessary to provision a new instance from the template.
If a source_template
is specified in the prototype object, its contents are copied into the new template prior to copying any other properties provided in the prototype object.
This request creates a new instance template. The prototype object is structured in the same way as a retrieved instance template, and contains the information necessary to provision a new instance from the template.
If a source_template
is specified in the prototype object, its contents are copied into the new template prior to copying any other properties provided in the prototype object.
POST /instance/templates
(vpc *VpcV1) CreateInstanceTemplate(createInstanceTemplateOptions *CreateInstanceTemplateOptions) (result InstanceTemplateIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateInstanceTemplateWithContext(ctx context.Context, createInstanceTemplateOptions *CreateInstanceTemplateOptions) (result InstanceTemplateIntf, response *core.DetailedResponse, err error)
create_instance_template(
self,
instance_template_prototype: 'InstanceTemplatePrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceTemplate> createInstanceTemplate(CreateInstanceTemplateOptions createInstanceTemplateOptions)
createInstanceTemplate(params)
Delete an instance template
This request deletes the instance template. This operation cannot be reversed.
This request deletes the instance template. This operation cannot be reversed.
This request deletes the instance template. This operation cannot be reversed.
This request deletes the instance template. This operation cannot be reversed.
This request deletes the instance template. This operation cannot be reversed.
DELETE /instance/templates/{id}
(vpc *VpcV1) DeleteInstanceTemplate(deleteInstanceTemplateOptions *DeleteInstanceTemplateOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceTemplateWithContext(ctx context.Context, deleteInstanceTemplateOptions *DeleteInstanceTemplateOptions) (response *core.DetailedResponse, err error)
delete_instance_template(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstanceTemplate(DeleteInstanceTemplateOptions deleteInstanceTemplateOptions)
deleteInstanceTemplate(params)
Retrieve an instance template
This request retrieves a single instance template specified by the identifier in the URL.
This request retrieves a single instance template specified by the identifier in the URL.
This request retrieves a single instance template specified by the identifier in the URL.
This request retrieves a single instance template specified by the identifier in the URL.
This request retrieves a single instance template specified by the identifier in the URL.
GET /instance/templates/{id}
(vpc *VpcV1) GetInstanceTemplate(getInstanceTemplateOptions *GetInstanceTemplateOptions) (result InstanceTemplateIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceTemplateWithContext(ctx context.Context, getInstanceTemplateOptions *GetInstanceTemplateOptions) (result InstanceTemplateIntf, response *core.DetailedResponse, err error)
get_instance_template(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceTemplate> getInstanceTemplate(GetInstanceTemplateOptions getInstanceTemplateOptions)
getInstanceTemplate(params)
Update an instance template
This request updates an instance template with the information provided in the instance template patch. The instance template patch object is structured in the same way as a retrieved instance template and contains only the information to be updated.
This request updates an instance template with the information provided in the instance template patch. The instance template patch object is structured in the same way as a retrieved instance template and contains only the information to be updated.
This request updates an instance template with the information provided in the instance template patch. The instance template patch object is structured in the same way as a retrieved instance template and contains only the information to be updated.
This request updates an instance template with the information provided in the instance template patch. The instance template patch object is structured in the same way as a retrieved instance template and contains only the information to be updated.
This request updates an instance template with the information provided in the instance template patch. The instance template patch object is structured in the same way as a retrieved instance template and contains only the information to be updated.
PATCH /instance/templates/{id}
(vpc *VpcV1) UpdateInstanceTemplate(updateInstanceTemplateOptions *UpdateInstanceTemplateOptions) (result InstanceTemplateIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceTemplateWithContext(ctx context.Context, updateInstanceTemplateOptions *UpdateInstanceTemplateOptions) (result InstanceTemplateIntf, response *core.DetailedResponse, err error)
update_instance_template(
self,
id: str,
instance_template_patch: 'InstanceTemplatePatch',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceTemplate> updateInstanceTemplate(UpdateInstanceTemplateOptions updateInstanceTemplateOptions)
updateInstanceTemplate(params)
List instances
This request lists instances in the region.
This request lists instances in the region.
This request lists instances in the region.
This request lists instances in the region.
This request lists instances in the region.
GET /instances
(vpc *VpcV1) ListInstances(listInstancesOptions *ListInstancesOptions) (result *InstanceCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstancesWithContext(ctx context.Context, listInstancesOptions *ListInstancesOptions) (result *InstanceCollection, response *core.DetailedResponse, err error)
list_instances(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
resource_group_id: Optional[str] = None,
name: Optional[str] = None,
cluster_network_id: Optional[str] = None,
cluster_network_crn: Optional[str] = None,
cluster_network_name: Optional[str] = None,
dedicated_host_id: Optional[str] = None,
dedicated_host_crn: Optional[str] = None,
dedicated_host_name: Optional[str] = None,
placement_group_id: Optional[str] = None,
placement_group_crn: Optional[str] = None,
placement_group_name: Optional[str] = None,
reservation_affinity_policy: Optional[str] = None,
reservation_id: Optional[str] = None,
reservation_crn: Optional[str] = None,
reservation_name: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_crn: Optional[str] = None,
vpc_name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceCollection> listInstances(ListInstancesOptions listInstancesOptions)
listInstances(params)
Create an instance
This request provisions a new instance from an instance prototype object. The prototype object is structured in the same way as a retrieved instance, and contains the information necessary to provision the new instance. The instance is automatically started.
This request provisions a new instance from an instance prototype object. The prototype object is structured in the same way as a retrieved instance, and contains the information necessary to provision the new instance. The instance is automatically started.
This request provisions a new instance from an instance prototype object. The prototype object is structured in the same way as a retrieved instance, and contains the information necessary to provision the new instance. The instance is automatically started.
This request provisions a new instance from an instance prototype object. The prototype object is structured in the same way as a retrieved instance, and contains the information necessary to provision the new instance. The instance is automatically started.
This request provisions a new instance from an instance prototype object. The prototype object is structured in the same way as a retrieved instance, and contains the information necessary to provision the new instance. The instance is automatically started.
POST /instances
(vpc *VpcV1) CreateInstance(createInstanceOptions *CreateInstanceOptions) (result *Instance, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateInstanceWithContext(ctx context.Context, createInstanceOptions *CreateInstanceOptions) (result *Instance, response *core.DetailedResponse, err error)
create_instance(
self,
instance_prototype: 'InstancePrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<Instance> createInstance(CreateInstanceOptions createInstanceOptions)
createInstance(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.instance.instance.create
is.instance.network-attachment.create
Generated for each instance network attachment created
is.instance.network-interface.create
Generated for each instance network interface created
is.instance.network-interface.attach
Generated for each resource being attached to an instance network interface:
- reserved IPs
- security groups
is.subnet.reserved-ip.attach
Generated for each reserved IP being attached to:
- an instance network interface, or
- a virtual network interface
is.subnet.reserved-ip.create
Generated for each reserved IP created
is.security-group.security-group.attach
Generated for each security group being attached to:
- an instance network interface, or
- a new virtual network interface
is.subnet.subnet.update
Generated for each reserved IP created
is.cluster-network.interface.attach
Generated for each cluster network interface attached
is.cluster-network.interface.create
Generated for each cluster network attachment specifies a new cluster network interface
is.cluster-network.subnet.update
Generated for each cluster subnet reserved IP created
is.cluster-network.subnet-reserved-ip.attach
Generated for each cluster network attachment that specifies a new cluster network interface
is.cluster-network.subnet-reserved-ip.create
Generated for each cluster subnet reserved IP created
is.instance.cluster-network-attachment.attach
Generated for each cluster network attachment created
is.instance.cluster-network-attachment.create
Generated for each cluster network attachment created
is.virtual-network-interface.virtual-network-interface.create
Generated for each virtual network interface created
is.virtual-network-interface.virtual-network-interface.attach
Generated for:
- each virtual network interface being attached to an instance network attachment
- each virtual network interface for each reserved IP being attached to it
- each virtual network interface for each security group being attached to it
is.instance.network-attachment.attach
Generated for each virtual network interface being attached to an instance network attachment
Delete an instance
This request deletes an instance. This operation cannot be reversed. Any floating IPs
associated with instance network interfaces are implicitly disassociated. All virtual
network interfaces with auto_delete
set to true
targeting instance network
attachments on the instance are automatically deleted. All flow log collectors with
auto_delete
set to true
targeting the instance, the instance network attachments,
the instance network interfaces, or the automatically deleted virtual network interfaces
are automatically deleted.
This request deletes an instance. This operation cannot be reversed. Any floating IPs associated with instance network interfaces are implicitly disassociated. All virtual network interfaces with auto_delete
set to true
targeting instance network attachments on the instance are automatically deleted. All flow log collectors with
auto_delete
set to true
targeting the instance, the instance network attachments, the instance network interfaces, or the automatically deleted virtual network interfaces are automatically deleted.
This request deletes an instance. This operation cannot be reversed. Any floating IPs associated with instance network interfaces are implicitly disassociated. All virtual network interfaces with auto_delete
set to true
targeting instance network attachments on the instance are automatically deleted. All flow log collectors with
auto_delete
set to true
targeting the instance, the instance network attachments, the instance network interfaces, or the automatically deleted virtual network interfaces are automatically deleted.
This request deletes an instance. This operation cannot be reversed. Any floating IPs associated with instance network interfaces are implicitly disassociated. All virtual network interfaces with auto_delete
set to true
targeting instance network attachments on the instance are automatically deleted. All flow log collectors with
auto_delete
set to true
targeting the instance, the instance network attachments, the instance network interfaces, or the automatically deleted virtual network interfaces are automatically deleted.
This request deletes an instance. This operation cannot be reversed. Any floating IPs associated with instance network interfaces are implicitly disassociated. All virtual network interfaces with auto_delete
set to true
targeting instance network attachments on the instance are automatically deleted. All flow log collectors with
auto_delete
set to true
targeting the instance, the instance network attachments, the instance network interfaces, or the automatically deleted virtual network interfaces are automatically deleted.
DELETE /instances/{id}
(vpc *VpcV1) DeleteInstance(deleteInstanceOptions *DeleteInstanceOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceWithContext(ctx context.Context, deleteInstanceOptions *DeleteInstanceOptions) (response *core.DetailedResponse, err error)
delete_instance(
self,
id: str,
*,
if_match: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstance(DeleteInstanceOptions deleteInstanceOptions)
deleteInstance(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.instance.instance.delete
is.instance.network-attachment.delete
Generated for each network attachment on the instance
is.instance.network-attachment.detach
Generated for each network attachment on the instance
is.instance.network-interface.delete
Generated for each network interface on the instance
is.instance.network-interface.detach
Generated for each resource attached to a network interface on the instance:
- reserved IPs
- security groups
is.subnet.reserved-ip.detach
Generated for each reserved IP that was attached to:
- a network interface on the instance, or
- a virtual network interface that had
auto_delete
set totrue
is.subnet.reserved-ip.delete
Generated for each reserved IP that had
auto_delete
set totrue
that was attached to:- a network interface on the instance, or
- a virtual network interface that had
auto_delete
set totrue
is.security-group.security-group.detach
Generated for each security group that was attached to:
- a network interface on the instance, or
- a virtual network interface that had
auto_delete
set totrue
is.subnet.subnet.update
Generated for each reserved IP that had
auto_delete
set totrue
is.virtual-network-interface.virtual-network-interface.detach
Generated for:
- each attached virtual network interface
- each virtual network interface that had
auto_delete
set totrue
, for each attached reserved IP
is.virtual-network-interface.virtual-network-interface.delete
Generated for each virtual network interface that had
auto_delete
set totrue
is.floating-ip.floating-ip.detach
Generated for each floating IP that was attached to:
- a network interface on the instance, or
- a virtual network interface that had
auto_delete
set totrue
is.flow-log-collector.flow-log-collector.delete
Generated for each flow log collector that had
auto_delete
set totrue
that was attached to:- the instance
- a network interface on the instance
- a network attachment on the instance
- a virtual network interface that had
auto_delete
set totrue
is.flow-log-collector.flow-log-collector.detach
Generated for each flow log collector that was attached to:
- the instance
- a network interface on the instance
- a network attachment on the instance
- a virtual network interface that had
auto_delete
set totrue
is.cluster-network.interface.delete
Generated for each cluster network interface with
auto_delete
set totrue
is.cluster-network.interface.detach
Generated for each attached cluster network interface, and also for the cluster network reserved IP that was attached to the cluster network interface if the cluster network interface had
auto_delete
set totrue
is.cluster-network.subnet-reserved-ip.delete
Generated for each cluster network reserved IP if
auto_delete
is set totrue
that was attached to a cluster network interface that hadauto_delete
set totrue
is.cluster-network.subnet-reserved-ip.detach
Generated for each cluster network reserved IP that was attached to a cluster network interface that had
auto_delete
set totrue
is.cluster-network.subnet.update
Generated for each cluster network reserved IP that had
auto_delete
set totrue
that was attached to a cluster network interface that hadauto_delete
set totrue
is.instance.cluster-network-attachment.delete
Generated for each cluster network interface that is attached to this instance
is.instance.cluster-network-attachment.detach
Generated for each cluster network interface that is attached to this instance
Retrieve an instance
This request retrieves a single instance specified by the identifier in the URL.
This request retrieves a single instance specified by the identifier in the URL.
This request retrieves a single instance specified by the identifier in the URL.
This request retrieves a single instance specified by the identifier in the URL.
This request retrieves a single instance specified by the identifier in the URL.
GET /instances/{id}
(vpc *VpcV1) GetInstance(getInstanceOptions *GetInstanceOptions) (result *Instance, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceWithContext(ctx context.Context, getInstanceOptions *GetInstanceOptions) (result *Instance, response *core.DetailedResponse, err error)
get_instance(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Instance> getInstance(GetInstanceOptions getInstanceOptions)
getInstance(params)
Update an instance
This request updates an instance with the information in a provided instance patch. The instance patch object is structured in the same way as a retrieved instance and contains only the information to be updated.
This request updates an instance with the information in a provided instance patch. The instance patch object is structured in the same way as a retrieved instance and contains only the information to be updated.
This request updates an instance with the information in a provided instance patch. The instance patch object is structured in the same way as a retrieved instance and contains only the information to be updated.
This request updates an instance with the information in a provided instance patch. The instance patch object is structured in the same way as a retrieved instance and contains only the information to be updated.
This request updates an instance with the information in a provided instance patch. The instance patch object is structured in the same way as a retrieved instance and contains only the information to be updated.
PATCH /instances/{id}
(vpc *VpcV1) UpdateInstance(updateInstanceOptions *UpdateInstanceOptions) (result *Instance, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceWithContext(ctx context.Context, updateInstanceOptions *UpdateInstanceOptions) (result *Instance, response *core.DetailedResponse, err error)
update_instance(
self,
id: str,
instance_patch: 'InstancePatch',
*,
if_match: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<Instance> updateInstance(UpdateInstanceOptions updateInstanceOptions)
updateInstance(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.instance.instance.update
is.instance.instance.detach
Generated for each reservation being removed from
reservation_affinity.pool
.is.reservation.reservation.detach
Generated for each reservation being removed from
reservation_affinity.pool
.is.instance.instance.attach
Generated for each reservation being added to
reservation_affinity.pool
.is.reservation.reservation.attach
Generated for each reservation being added to
reservation_affinity.pool
.
Retrieve initialization configuration for an instance
This request retrieves configuration used to initialize the instance, such as SSH keys and the Windows administrator password. These can subsequently be changed on the instance and therefore may not be current.
This request retrieves configuration used to initialize the instance, such as SSH keys and the Windows administrator password. These can subsequently be changed on the instance and therefore may not be current.
This request retrieves configuration used to initialize the instance, such as SSH keys and the Windows administrator password. These can subsequently be changed on the instance and therefore may not be current.
This request retrieves configuration used to initialize the instance, such as SSH keys and the Windows administrator password. These can subsequently be changed on the instance and therefore may not be current.
This request retrieves configuration used to initialize the instance, such as SSH keys and the Windows administrator password. These can subsequently be changed on the instance and therefore may not be current.
GET /instances/{id}/initialization
(vpc *VpcV1) GetInstanceInitialization(getInstanceInitializationOptions *GetInstanceInitializationOptions) (result *InstanceInitialization, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceInitializationWithContext(ctx context.Context, getInstanceInitializationOptions *GetInstanceInitializationOptions) (result *InstanceInitialization, response *core.DetailedResponse, err error)
get_instance_initialization(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceInitialization> getInstanceInitialization(GetInstanceInitializationOptions getInstanceInitializationOptions)
getInstanceInitialization(params)
Create an instance action
This request creates a new action which will be queued up to run as soon as any pending or running actions have completed.
This request creates a new action which will be queued up to run as soon as any pending or running actions have completed.
This request creates a new action which will be queued up to run as soon as any pending or running actions have completed.
This request creates a new action which will be queued up to run as soon as any pending or running actions have completed.
This request creates a new action which will be queued up to run as soon as any pending or running actions have completed.
POST /instances/{instance_id}/actions
(vpc *VpcV1) CreateInstanceAction(createInstanceActionOptions *CreateInstanceActionOptions) (result *InstanceAction, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateInstanceActionWithContext(ctx context.Context, createInstanceActionOptions *CreateInstanceActionOptions) (result *InstanceAction, response *core.DetailedResponse, err error)
create_instance_action(
self,
instance_id: str,
type: str,
*,
force: Optional[bool] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceAction> createInstanceAction(CreateInstanceActionOptions createInstanceActionOptions)
createInstanceAction(params)
List cluster network attachments on an instance
This request lists cluster network attachments on an instance. A cluster network attachment represents a device on the instance to which a cluster network interface is attached.
This request lists cluster network attachments on an instance. A cluster network attachment represents a device on the instance to which a cluster network interface is attached.
This request lists cluster network attachments on an instance. A cluster network attachment represents a device on the instance to which a cluster network interface is attached.
This request lists cluster network attachments on an instance. A cluster network attachment represents a device on the instance to which a cluster network interface is attached.
This request lists cluster network attachments on an instance. A cluster network attachment represents a device on the instance to which a cluster network interface is attached.
GET /instances/{instance_id}/cluster_network_attachments
(vpc *VpcV1) ListInstanceClusterNetworkAttachments(listInstanceClusterNetworkAttachmentsOptions *ListInstanceClusterNetworkAttachmentsOptions) (result *InstanceClusterNetworkAttachmentCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceClusterNetworkAttachmentsWithContext(ctx context.Context, listInstanceClusterNetworkAttachmentsOptions *ListInstanceClusterNetworkAttachmentsOptions) (result *InstanceClusterNetworkAttachmentCollection, response *core.DetailedResponse, err error)
list_instance_cluster_network_attachments(
self,
instance_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceClusterNetworkAttachmentCollection> listInstanceClusterNetworkAttachments(ListInstanceClusterNetworkAttachmentsOptions listInstanceClusterNetworkAttachmentsOptions)
listInstanceClusterNetworkAttachments(params)
Create a cluster network attachment
This request creates a cluster network attachment from an instance cluster network attachment prototype object. A cluster network attachment will attach the instance to a cluster network. The cluster network attachment prototype must specify a cluster network interface identity or a cluster network interface prototype.
The instance must be in a stopped
or stopping
state to create an instance cluster
network attachment.
This request creates a cluster network attachment from an instance cluster network attachment prototype object. A cluster network attachment will attach the instance to a cluster network. The cluster network attachment prototype must specify a cluster network interface identity or a cluster network interface prototype.
The instance must be in a stopped
or stopping
state to create an instance cluster network attachment.
This request creates a cluster network attachment from an instance cluster network attachment prototype object. A cluster network attachment will attach the instance to a cluster network. The cluster network attachment prototype must specify a cluster network interface identity or a cluster network interface prototype.
The instance must be in a stopped
or stopping
state to create an instance cluster network attachment.
This request creates a cluster network attachment from an instance cluster network attachment prototype object. A cluster network attachment will attach the instance to a cluster network. The cluster network attachment prototype must specify a cluster network interface identity or a cluster network interface prototype.
The instance must be in a stopped
or stopping
state to create an instance cluster network attachment.
This request creates a cluster network attachment from an instance cluster network attachment prototype object. A cluster network attachment will attach the instance to a cluster network. The cluster network attachment prototype must specify a cluster network interface identity or a cluster network interface prototype.
The instance must be in a stopped
or stopping
state to create an instance cluster network attachment.
POST /instances/{instance_id}/cluster_network_attachments
(vpc *VpcV1) CreateClusterNetworkAttachment(createClusterNetworkAttachmentOptions *CreateClusterNetworkAttachmentOptions) (result *InstanceClusterNetworkAttachment, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateClusterNetworkAttachmentWithContext(ctx context.Context, createClusterNetworkAttachmentOptions *CreateClusterNetworkAttachmentOptions) (result *InstanceClusterNetworkAttachment, response *core.DetailedResponse, err error)
create_cluster_network_attachment(
self,
instance_id: str,
cluster_network_interface: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface',
*,
before: Optional['InstanceClusterNetworkAttachmentBeforePrototype'] = None,
name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceClusterNetworkAttachment> createClusterNetworkAttachment(CreateClusterNetworkAttachmentOptions createClusterNetworkAttachmentOptions)
createClusterNetworkAttachment(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.cluster-network.interface.attach
is.cluster-network.interface.create
Generated when a cluster network attachment specifies a new cluster network interface
is.cluster-network.subnet.update
Generated when a cluster subnet reserved IP is created
is.cluster-network.subnet-reserved-ip.attach
Generated when a cluster network attachment specifies a new cluster network interface
is.cluster-network.subnet-reserved-ip.create
Generated when a cluster subnet reserved IP is created
is.instance.cluster-network-attachment.attach
is.instance.cluster-network-attachment.create
Delete an instance cluster network attachment
This request deletes an instance cluster network attachment. The instance must be in a
stopped
or stopping
state to delete an instance cluster network attachment.
This operation cannot be reversed.
This request deletes an instance cluster network attachment. The instance must be in a
stopped
or stopping
state to delete an instance cluster network attachment.
This operation cannot be reversed.
This request deletes an instance cluster network attachment. The instance must be in a
stopped
or stopping
state to delete an instance cluster network attachment.
This operation cannot be reversed.
This request deletes an instance cluster network attachment. The instance must be in a
stopped
or stopping
state to delete an instance cluster network attachment.
This operation cannot be reversed.
This request deletes an instance cluster network attachment. The instance must be in a
stopped
or stopping
state to delete an instance cluster network attachment.
This operation cannot be reversed.
DELETE /instances/{instance_id}/cluster_network_attachments/{id}
(vpc *VpcV1) DeleteInstanceClusterNetworkAttachment(deleteInstanceClusterNetworkAttachmentOptions *DeleteInstanceClusterNetworkAttachmentOptions) (result *InstanceClusterNetworkAttachment, response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceClusterNetworkAttachmentWithContext(ctx context.Context, deleteInstanceClusterNetworkAttachmentOptions *DeleteInstanceClusterNetworkAttachmentOptions) (result *InstanceClusterNetworkAttachment, response *core.DetailedResponse, err error)
delete_instance_cluster_network_attachment(
self,
instance_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceClusterNetworkAttachment> deleteInstanceClusterNetworkAttachment(DeleteInstanceClusterNetworkAttachmentOptions deleteInstanceClusterNetworkAttachmentOptions)
deleteInstanceClusterNetworkAttachment(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.cluster-network.interface.delete
Generated when the cluster network interface had
auto_delete
set totrue
is.cluster-network.interface.detach
Generated for the attached cluster network interface, and also for the cluster network reserved IP that was attached to the cluster network interface if the cluster network interface had
auto_delete
set totrue
is.cluster-network.subnet-reserved-ip.delete
Generated for the cluster network reserved IP if
auto_delete
is set totrue
that was attached to a cluster network interface that hadauto_delete
set totrue
is.cluster-network.subnet-reserved-ip.detach
Generated for the cluster network reserved IP that was attached to a cluster network interface that had
auto_delete
set totrue
is.cluster-network.subnet.update
Generated for the cluster network reserved IP that had
auto_delete
set totrue
that was attached to a cluster network interface that hadauto_delete
set totrue
is.instance.cluster-network-attachment.delete
is.instance.cluster-network-attachment.detach
Retrieve an instance cluster network attachment
This request retrieves a single instance cluster network attachment specified by the identifier in the URL.
This request retrieves a single instance cluster network attachment specified by the identifier in the URL.
This request retrieves a single instance cluster network attachment specified by the identifier in the URL.
This request retrieves a single instance cluster network attachment specified by the identifier in the URL.
This request retrieves a single instance cluster network attachment specified by the identifier in the URL.
GET /instances/{instance_id}/cluster_network_attachments/{id}
(vpc *VpcV1) GetInstanceClusterNetworkAttachment(getInstanceClusterNetworkAttachmentOptions *GetInstanceClusterNetworkAttachmentOptions) (result *InstanceClusterNetworkAttachment, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceClusterNetworkAttachmentWithContext(ctx context.Context, getInstanceClusterNetworkAttachmentOptions *GetInstanceClusterNetworkAttachmentOptions) (result *InstanceClusterNetworkAttachment, response *core.DetailedResponse, err error)
get_instance_cluster_network_attachment(
self,
instance_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceClusterNetworkAttachment> getInstanceClusterNetworkAttachment(GetInstanceClusterNetworkAttachmentOptions getInstanceClusterNetworkAttachmentOptions)
getInstanceClusterNetworkAttachment(params)
Update an instance cluster network attachment
This request updates an instance cluster network attachment with the information provided in an instance network interface patch object. The instance cluster network attachment patch object is structured in the same way as a retrieved instance cluster network attachment and needs to contain only the information to be updated.
This request updates an instance cluster network attachment with the information provided in an instance network interface patch object. The instance cluster network attachment patch object is structured in the same way as a retrieved instance cluster network attachment and needs to contain only the information to be updated.
This request updates an instance cluster network attachment with the information provided in an instance network interface patch object. The instance cluster network attachment patch object is structured in the same way as a retrieved instance cluster network attachment and needs to contain only the information to be updated.
This request updates an instance cluster network attachment with the information provided in an instance network interface patch object. The instance cluster network attachment patch object is structured in the same way as a retrieved instance cluster network attachment and needs to contain only the information to be updated.
This request updates an instance cluster network attachment with the information provided in an instance network interface patch object. The instance cluster network attachment patch object is structured in the same way as a retrieved instance cluster network attachment and needs to contain only the information to be updated.
PATCH /instances/{instance_id}/cluster_network_attachments/{id}
(vpc *VpcV1) UpdateInstanceClusterNetworkAttachment(updateInstanceClusterNetworkAttachmentOptions *UpdateInstanceClusterNetworkAttachmentOptions) (result *InstanceClusterNetworkAttachment, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceClusterNetworkAttachmentWithContext(ctx context.Context, updateInstanceClusterNetworkAttachmentOptions *UpdateInstanceClusterNetworkAttachmentOptions) (result *InstanceClusterNetworkAttachment, response *core.DetailedResponse, err error)
update_instance_cluster_network_attachment(
self,
instance_id: str,
id: str,
instance_cluster_network_attachment_patch: 'InstanceClusterNetworkAttachmentPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceClusterNetworkAttachment> updateInstanceClusterNetworkAttachment(UpdateInstanceClusterNetworkAttachmentOptions updateInstanceClusterNetworkAttachmentOptions)
updateInstanceClusterNetworkAttachment(params)
Retrieve the console WebSocket for an instance
This retrieves a WebSocket providing a console for the instance. An access_token
must
first be created using the console_access_token
API. The serial
WebSocket provides
a TTY based interface. The vnc
WebSocket provides a VNC based graphical interface.
GET /instances/{instance_id}/console
Create a console access token for an instance
This request creates a new single-use console access token for an instance.
All console configuration is provided at token create time, and the token is
subsequently used in the access_token
query parameter for the WebSocket request. The
access token is only valid for a short period of time, and a maximum of one token is valid
for a given instance at a time.
This request creates a new single-use console access token for an instance. All console configuration is provided at token create time, and the token is subsequently used in the access_token
query parameter for the WebSocket request. The access token is only valid for a short period of time, and a maximum of one token is valid for a given instance at a time.
This request creates a new single-use console access token for an instance. All console configuration is provided at token create time, and the token is subsequently used in the access_token
query parameter for the WebSocket request. The access token is only valid for a short period of time, and a maximum of one token is valid for a given instance at a time.
This request creates a new single-use console access token for an instance. All console configuration is provided at token create time, and the token is subsequently used in the access_token
query parameter for the WebSocket request. The access token is only valid for a short period of time, and a maximum of one token is valid for a given instance at a time.
This request creates a new single-use console access token for an instance. All console configuration is provided at token create time, and the token is subsequently used in the access_token
query parameter for the WebSocket request. The access token is only valid for a short period of time, and a maximum of one token is valid for a given instance at a time.
POST /instances/{instance_id}/console_access_token
(vpc *VpcV1) CreateInstanceConsoleAccessToken(createInstanceConsoleAccessTokenOptions *CreateInstanceConsoleAccessTokenOptions) (result *InstanceConsoleAccessToken, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateInstanceConsoleAccessTokenWithContext(ctx context.Context, createInstanceConsoleAccessTokenOptions *CreateInstanceConsoleAccessTokenOptions) (result *InstanceConsoleAccessToken, response *core.DetailedResponse, err error)
create_instance_console_access_token(
self,
instance_id: str,
console_type: str,
*,
force: Optional[bool] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceConsoleAccessToken> createInstanceConsoleAccessToken(CreateInstanceConsoleAccessTokenOptions createInstanceConsoleAccessTokenOptions)
createInstanceConsoleAccessToken(params)
List disks on an instance
This request lists disks on an instance. A disk is a block device that is
locally attached to the instance's physical host and is also referred to as instance
storage. By default, the listed disks are sorted by their created_at
property
values, with the newest disk first.
This request lists disks on an instance. A disk is a block device that is locally attached to the instance's physical host and is also referred to as instance storage. By default, the listed disks are sorted by their created_at
property values, with the newest disk first.
This request lists disks on an instance. A disk is a block device that is locally attached to the instance's physical host and is also referred to as instance storage. By default, the listed disks are sorted by their created_at
property values, with the newest disk first.
This request lists disks on an instance. A disk is a block device that is locally attached to the instance's physical host and is also referred to as instance storage. By default, the listed disks are sorted by their created_at
property values, with the newest disk first.
This request lists disks on an instance. A disk is a block device that is locally attached to the instance's physical host and is also referred to as instance storage. By default, the listed disks are sorted by their created_at
property values, with the newest disk first.
GET /instances/{instance_id}/disks
(vpc *VpcV1) ListInstanceDisks(listInstanceDisksOptions *ListInstanceDisksOptions) (result *InstanceDiskCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceDisksWithContext(ctx context.Context, listInstanceDisksOptions *ListInstanceDisksOptions) (result *InstanceDiskCollection, response *core.DetailedResponse, err error)
list_instance_disks(
self,
instance_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceDiskCollection> listInstanceDisks(ListInstanceDisksOptions listInstanceDisksOptions)
listInstanceDisks(params)
Retrieve an instance disk
This request retrieves a single instance disk specified by the identifier in the URL.
This request retrieves a single instance disk specified by the identifier in the URL.
This request retrieves a single instance disk specified by the identifier in the URL.
This request retrieves a single instance disk specified by the identifier in the URL.
This request retrieves a single instance disk specified by the identifier in the URL.
GET /instances/{instance_id}/disks/{id}
(vpc *VpcV1) GetInstanceDisk(getInstanceDiskOptions *GetInstanceDiskOptions) (result *InstanceDisk, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceDiskWithContext(ctx context.Context, getInstanceDiskOptions *GetInstanceDiskOptions) (result *InstanceDisk, response *core.DetailedResponse, err error)
get_instance_disk(
self,
instance_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceDisk> getInstanceDisk(GetInstanceDiskOptions getInstanceDiskOptions)
getInstanceDisk(params)
Update an instance disk
This request updates the instance disk with the information in a provided patch.
This request updates the instance disk with the information in a provided patch.
This request updates the instance disk with the information in a provided patch.
This request updates the instance disk with the information in a provided patch.
This request updates the instance disk with the information in a provided patch.
PATCH /instances/{instance_id}/disks/{id}
(vpc *VpcV1) UpdateInstanceDisk(updateInstanceDiskOptions *UpdateInstanceDiskOptions) (result *InstanceDisk, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceDiskWithContext(ctx context.Context, updateInstanceDiskOptions *UpdateInstanceDiskOptions) (result *InstanceDisk, response *core.DetailedResponse, err error)
update_instance_disk(
self,
instance_id: str,
id: str,
instance_disk_patch: 'InstanceDiskPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceDisk> updateInstanceDisk(UpdateInstanceDiskOptions updateInstanceDiskOptions)
updateInstanceDisk(params)
List network attachments on an instance
This request lists network attachments on an instance. A network attachment represents a device on the instance to which a virtual network interface is attached.
The network attachments will be sorted by their created_at
property values, with newest
network attachments first. Network attachments with identical created_at
property values
will in turn be sorted by ascending name
property values.
This request lists network attachments on an instance. A network attachment represents a device on the instance to which a virtual network interface is attached.
The network attachments will be sorted by their created_at
property values, with newest network attachments first. Network attachments with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists network attachments on an instance. A network attachment represents a device on the instance to which a virtual network interface is attached.
The network attachments will be sorted by their created_at
property values, with newest network attachments first. Network attachments with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists network attachments on an instance. A network attachment represents a device on the instance to which a virtual network interface is attached.
The network attachments will be sorted by their created_at
property values, with newest network attachments first. Network attachments with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists network attachments on an instance. A network attachment represents a device on the instance to which a virtual network interface is attached.
The network attachments will be sorted by their created_at
property values, with newest network attachments first. Network attachments with identical created_at
property values will in turn be sorted by ascending name
property values.
GET /instances/{instance_id}/network_attachments
(vpc *VpcV1) ListInstanceNetworkAttachments(listInstanceNetworkAttachmentsOptions *ListInstanceNetworkAttachmentsOptions) (result *InstanceNetworkAttachmentCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceNetworkAttachmentsWithContext(ctx context.Context, listInstanceNetworkAttachmentsOptions *ListInstanceNetworkAttachmentsOptions) (result *InstanceNetworkAttachmentCollection, response *core.DetailedResponse, err error)
list_instance_network_attachments(
self,
instance_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceNetworkAttachmentCollection> listInstanceNetworkAttachments(ListInstanceNetworkAttachmentsOptions listInstanceNetworkAttachmentsOptions)
listInstanceNetworkAttachments(params)
Create a network attachment on an instance
This request creates a new instance network attachment from an instance network attachment prototype object. The prototype object is structured in the same way as a retrieved instance network attachment, and contains the information necessary to create the new instance network attachment.
This request creates a new instance network attachment from an instance network attachment prototype object. The prototype object is structured in the same way as a retrieved instance network attachment, and contains the information necessary to create the new instance network attachment.
This request creates a new instance network attachment from an instance network attachment prototype object. The prototype object is structured in the same way as a retrieved instance network attachment, and contains the information necessary to create the new instance network attachment.
This request creates a new instance network attachment from an instance network attachment prototype object. The prototype object is structured in the same way as a retrieved instance network attachment, and contains the information necessary to create the new instance network attachment.
This request creates a new instance network attachment from an instance network attachment prototype object. The prototype object is structured in the same way as a retrieved instance network attachment, and contains the information necessary to create the new instance network attachment.
POST /instances/{instance_id}/network_attachments
(vpc *VpcV1) CreateInstanceNetworkAttachment(createInstanceNetworkAttachmentOptions *CreateInstanceNetworkAttachmentOptions) (result *InstanceNetworkAttachment, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateInstanceNetworkAttachmentWithContext(ctx context.Context, createInstanceNetworkAttachmentOptions *CreateInstanceNetworkAttachmentOptions) (result *InstanceNetworkAttachment, response *core.DetailedResponse, err error)
create_instance_network_attachment(
self,
instance_id: str,
virtual_network_interface: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterface',
*,
name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceNetworkAttachment> createInstanceNetworkAttachment(CreateInstanceNetworkAttachmentOptions createInstanceNetworkAttachmentOptions)
createInstanceNetworkAttachment(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.virtual-network-interface.virtual-network-interface.create
Generated for each virtual network interface created
is.virtual-network-interface.virtual-network-interface.attach
Generated for:
- each virtual network interface being attached to an instance network attachment
- each virtual network interface for each reserved IP being attached to it
- each virtual network interface for each security group being attached to it
is.instance.network-attachment.attach
Generated for each virtual network interface being attached to an instance network attachment
is.instance.network-attachment.create
is.security-group.security-group.attach
Generated for each security group being attached to a new virtual network interface
is.subnet.reserved-ip.create
Generated for each reserved IP created
is.subnet.subnet.update
Generated for each reserved IP created
is.subnet.reserved-ip.attach
Generated for each reserved IP being attached to a virtual network interface
Delete an instance network attachment
This request deletes an instance network attachment. This operation cannot be reversed. Any
floating IPs associated with the instance network attachment are implicitly disassociated.
All flow log collectors with auto_delete
set to true
targeting the instance network
attachment are automatically deleted. The primary instance network attachment is not
allowed to be deleted.
This request deletes an instance network attachment. This operation cannot be reversed. Any floating IPs associated with the instance network attachment are implicitly disassociated. All flow log collectors with auto_delete
set to true
targeting the instance network attachment are automatically deleted. The primary instance network attachment is not allowed to be deleted.
This request deletes an instance network attachment. This operation cannot be reversed. Any floating IPs associated with the instance network attachment are implicitly disassociated. All flow log collectors with auto_delete
set to true
targeting the instance network attachment are automatically deleted. The primary instance network attachment is not allowed to be deleted.
This request deletes an instance network attachment. This operation cannot be reversed. Any floating IPs associated with the instance network attachment are implicitly disassociated. All flow log collectors with auto_delete
set to true
targeting the instance network attachment are automatically deleted. The primary instance network attachment is not allowed to be deleted.
This request deletes an instance network attachment. This operation cannot be reversed. Any floating IPs associated with the instance network attachment are implicitly disassociated. All flow log collectors with auto_delete
set to true
targeting the instance network attachment are automatically deleted. The primary instance network attachment is not allowed to be deleted.
DELETE /instances/{instance_id}/network_attachments/{id}
(vpc *VpcV1) DeleteInstanceNetworkAttachment(deleteInstanceNetworkAttachmentOptions *DeleteInstanceNetworkAttachmentOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceNetworkAttachmentWithContext(ctx context.Context, deleteInstanceNetworkAttachmentOptions *DeleteInstanceNetworkAttachmentOptions) (response *core.DetailedResponse, err error)
delete_instance_network_attachment(
self,
instance_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstanceNetworkAttachment(DeleteInstanceNetworkAttachmentOptions deleteInstanceNetworkAttachmentOptions)
deleteInstanceNetworkAttachment(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.instance.network-attachment.delete
is.instance.network-attachment.detach
Generated for each resource that was attached to this instance network attachment:
- a flow log collector
- a virtual network interface
is.virtual-network-interface.virtual-network-interface.detach
Generated for the attached virtual network interface, and also for each reserved IP that was attached to the virtual network interface if the virtual network interface had
auto_delete
set totrue
is.virtual-network-interface.virtual-network-interface.delete
Generated when the virtual network interface had
auto_delete
set totrue
is.floating-ip.floating-ip.detach
Generated for each floating IP that was attached to a virtual network interface that had
auto_delete
set totrue
is.subnet.reserved-ip.detach
Generated for each reserved IP that was attached to an virtual network interface that had
auto_delete
set totrue
is.subnet.reserved-ip.delete
Generated for each reserved IP that had
auto_delete
set totrue
that was attached to a virtual network interface that hadauto_delete
set totrue
is.subnet.subnet.update
Generated for each reserved IP that had
auto_delete
set totrue
that was attached to a virtual network interface that hadauto_delete
set totrue
is.security-group.security-group.detach
Generated for each security group that was attached to a virtual network interface that had
auto_delete
set totrue
is.flow-log-collector.flow-log-collector.delete
Generated for each flow log collector that had
auto_delete
set totrue
that was attached to:- this instance network attachment
- a virtual network interface that had
auto_delete
set totrue
is.flow-log-collector.flow-log-collector.detach
Generated for each flow log collector that was attached to:
- this instance network attachment
- a virtual network interface that had
auto_delete
set totrue
Retrieve an instance network attachment
This request retrieves a single instance network attachment specified by the identifier in the URL.
This request retrieves a single instance network attachment specified by the identifier in the URL.
This request retrieves a single instance network attachment specified by the identifier in the URL.
This request retrieves a single instance network attachment specified by the identifier in the URL.
This request retrieves a single instance network attachment specified by the identifier in the URL.
GET /instances/{instance_id}/network_attachments/{id}
(vpc *VpcV1) GetInstanceNetworkAttachment(getInstanceNetworkAttachmentOptions *GetInstanceNetworkAttachmentOptions) (result *InstanceNetworkAttachment, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceNetworkAttachmentWithContext(ctx context.Context, getInstanceNetworkAttachmentOptions *GetInstanceNetworkAttachmentOptions) (result *InstanceNetworkAttachment, response *core.DetailedResponse, err error)
get_instance_network_attachment(
self,
instance_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceNetworkAttachment> getInstanceNetworkAttachment(GetInstanceNetworkAttachmentOptions getInstanceNetworkAttachmentOptions)
getInstanceNetworkAttachment(params)
Update an instance network attachment
This request updates an instance network attachment with the information provided in an instance network interface patch object. The instance network attachment patch object is structured in the same way as a retrieved instance network attachment and needs to contain only the information to be updated.
This request updates an instance network attachment with the information provided in an instance network interface patch object. The instance network attachment patch object is structured in the same way as a retrieved instance network attachment and needs to contain only the information to be updated.
This request updates an instance network attachment with the information provided in an instance network interface patch object. The instance network attachment patch object is structured in the same way as a retrieved instance network attachment and needs to contain only the information to be updated.
This request updates an instance network attachment with the information provided in an instance network interface patch object. The instance network attachment patch object is structured in the same way as a retrieved instance network attachment and needs to contain only the information to be updated.
This request updates an instance network attachment with the information provided in an instance network interface patch object. The instance network attachment patch object is structured in the same way as a retrieved instance network attachment and needs to contain only the information to be updated.
PATCH /instances/{instance_id}/network_attachments/{id}
(vpc *VpcV1) UpdateInstanceNetworkAttachment(updateInstanceNetworkAttachmentOptions *UpdateInstanceNetworkAttachmentOptions) (result *InstanceNetworkAttachment, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceNetworkAttachmentWithContext(ctx context.Context, updateInstanceNetworkAttachmentOptions *UpdateInstanceNetworkAttachmentOptions) (result *InstanceNetworkAttachment, response *core.DetailedResponse, err error)
update_instance_network_attachment(
self,
instance_id: str,
id: str,
instance_network_attachment_patch: 'InstanceNetworkAttachmentPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceNetworkAttachment> updateInstanceNetworkAttachment(UpdateInstanceNetworkAttachmentOptions updateInstanceNetworkAttachmentOptions)
updateInstanceNetworkAttachment(params)
List network interfaces on an instance
This request lists network interfaces on an instance. An instance network interface is an abstract representation of a network device and attaches an instance to a single subnet. Each network interface on an instance can attach to any subnet in the zone, including subnets that are already attached to the instance. Multiple network interfaces on the instance may also attach to the same subnet.
If this instance has network attachments, each returned network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request lists network interfaces on an instance. An instance network interface is an abstract representation of a network device and attaches an instance to a single subnet. Each network interface on an instance can attach to any subnet in the zone, including subnets that are already attached to the instance. Multiple network interfaces on the instance may also attach to the same subnet.
If this instance has network attachments, each returned network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request lists network interfaces on an instance. An instance network interface is an abstract representation of a network device and attaches an instance to a single subnet. Each network interface on an instance can attach to any subnet in the zone, including subnets that are already attached to the instance. Multiple network interfaces on the instance may also attach to the same subnet.
If this instance has network attachments, each returned network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request lists network interfaces on an instance. An instance network interface is an abstract representation of a network device and attaches an instance to a single subnet. Each network interface on an instance can attach to any subnet in the zone, including subnets that are already attached to the instance. Multiple network interfaces on the instance may also attach to the same subnet.
If this instance has network attachments, each returned network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request lists network interfaces on an instance. An instance network interface is an abstract representation of a network device and attaches an instance to a single subnet. Each network interface on an instance can attach to any subnet in the zone, including subnets that are already attached to the instance. Multiple network interfaces on the instance may also attach to the same subnet.
If this instance has network attachments, each returned network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
GET /instances/{instance_id}/network_interfaces
(vpc *VpcV1) ListInstanceNetworkInterfaces(listInstanceNetworkInterfacesOptions *ListInstanceNetworkInterfacesOptions) (result *NetworkInterfaceUnpaginatedCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceNetworkInterfacesWithContext(ctx context.Context, listInstanceNetworkInterfacesOptions *ListInstanceNetworkInterfacesOptions) (result *NetworkInterfaceUnpaginatedCollection, response *core.DetailedResponse, err error)
list_instance_network_interfaces(
self,
instance_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<NetworkInterfaceUnpaginatedCollection> listInstanceNetworkInterfaces(ListInstanceNetworkInterfacesOptions listInstanceNetworkInterfacesOptions)
listInstanceNetworkInterfaces(params)
Create a network interface on an instance
This request creates a new instance network interface from an instance network interface prototype object. The prototype object is structured in the same way as a retrieved instance network interface, and contains the information necessary to create the new instance network interface. Any subnet in the instance's VPC may be specified. Addresses on the instance network interface must be within the specified subnet's CIDR blocks.
If this instance has network attachments, each network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and new network interfaces are not allowed to be created.
This request creates a new instance network interface from an instance network interface prototype object. The prototype object is structured in the same way as a retrieved instance network interface, and contains the information necessary to create the new instance network interface. Any subnet in the instance's VPC may be specified. Addresses on the instance network interface must be within the specified subnet's CIDR blocks.
If this instance has network attachments, each network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and new network interfaces are not allowed to be created.
This request creates a new instance network interface from an instance network interface prototype object. The prototype object is structured in the same way as a retrieved instance network interface, and contains the information necessary to create the new instance network interface. Any subnet in the instance's VPC may be specified. Addresses on the instance network interface must be within the specified subnet's CIDR blocks.
If this instance has network attachments, each network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and new network interfaces are not allowed to be created.
This request creates a new instance network interface from an instance network interface prototype object. The prototype object is structured in the same way as a retrieved instance network interface, and contains the information necessary to create the new instance network interface. Any subnet in the instance's VPC may be specified. Addresses on the instance network interface must be within the specified subnet's CIDR blocks.
If this instance has network attachments, each network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and new network interfaces are not allowed to be created.
This request creates a new instance network interface from an instance network interface prototype object. The prototype object is structured in the same way as a retrieved instance network interface, and contains the information necessary to create the new instance network interface. Any subnet in the instance's VPC may be specified. Addresses on the instance network interface must be within the specified subnet's CIDR blocks.
If this instance has network attachments, each network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and new network interfaces are not allowed to be created.
POST /instances/{instance_id}/network_interfaces
(vpc *VpcV1) CreateInstanceNetworkInterface(createInstanceNetworkInterfaceOptions *CreateInstanceNetworkInterfaceOptions) (result *NetworkInterface, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateInstanceNetworkInterfaceWithContext(ctx context.Context, createInstanceNetworkInterfaceOptions *CreateInstanceNetworkInterfaceOptions) (result *NetworkInterface, response *core.DetailedResponse, err error)
create_instance_network_interface(
self,
instance_id: str,
subnet: 'SubnetIdentity',
*,
allow_ip_spoofing: Optional[bool] = None,
name: Optional[str] = None,
primary_ip: Optional['NetworkInterfaceIPPrototype'] = None,
security_groups: Optional[List['SecurityGroupIdentity']] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<NetworkInterface> createInstanceNetworkInterface(CreateInstanceNetworkInterfaceOptions createInstanceNetworkInterfaceOptions)
createInstanceNetworkInterface(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.instance.network-interface.create
is.instance.network-interface.attach
Generated for each resource being attached to an instance network interface:
- security groups
- reserved IPs
is.subnet.reserved-ip.create
Generated for each reserved IP created
is.subnet.reserved-ip.attach
Generated for each reserved IP being attached to an instance network interface
is.security-group.security-group.attach
Generated for each security group being attached to an instance network interface
is.subnet.subnet.update
Generated for each reserved IP created
Delete an instance network interface
This request deletes an instance network interface. This operation cannot be reversed.
Any floating IPs associated with the instance network interface are implicitly
disassociated. All flow log collectors with auto_delete
set to true
targeting the
instance network interface are automatically deleted. The primary instance network
interface is not allowed to be deleted.
If this instance has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be deleted.
This request deletes an instance network interface. This operation cannot be reversed. Any floating IPs associated with the instance network interface are implicitly disassociated. All flow log collectors with auto_delete
set to true
targeting the instance network interface are automatically deleted. The primary instance network interface is not allowed to be deleted.
If this instance has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be deleted.
This request deletes an instance network interface. This operation cannot be reversed. Any floating IPs associated with the instance network interface are implicitly disassociated. All flow log collectors with auto_delete
set to true
targeting the instance network interface are automatically deleted. The primary instance network interface is not allowed to be deleted.
If this instance has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be deleted.
This request deletes an instance network interface. This operation cannot be reversed. Any floating IPs associated with the instance network interface are implicitly disassociated. All flow log collectors with auto_delete
set to true
targeting the instance network interface are automatically deleted. The primary instance network interface is not allowed to be deleted.
If this instance has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be deleted.
This request deletes an instance network interface. This operation cannot be reversed. Any floating IPs associated with the instance network interface are implicitly disassociated. All flow log collectors with auto_delete
set to true
targeting the instance network interface are automatically deleted. The primary instance network interface is not allowed to be deleted.
If this instance has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be deleted.
DELETE /instances/{instance_id}/network_interfaces/{id}
(vpc *VpcV1) DeleteInstanceNetworkInterface(deleteInstanceNetworkInterfaceOptions *DeleteInstanceNetworkInterfaceOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceNetworkInterfaceWithContext(ctx context.Context, deleteInstanceNetworkInterfaceOptions *DeleteInstanceNetworkInterfaceOptions) (response *core.DetailedResponse, err error)
delete_instance_network_interface(
self,
instance_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstanceNetworkInterface(DeleteInstanceNetworkInterfaceOptions deleteInstanceNetworkInterfaceOptions)
deleteInstanceNetworkInterface(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.instance.network-interface.delete
is.instance.network-interface.detach
Generated for each resource that was attached to this instance network interface:
- a floating IP
- a flow log collector
- a reserved IP
- security groups
is.floating-ip.floating-ip.detach
Generated for each floating IP that was attached to this instance network interface
is.security-group.security-group.detach
Generated for each security group that was attached to this instance network interface
is.subnet.reserved-ip.detach
Generated for each reserved IP that was attached to this instance network interface
is.subnet.reserved-ip.delete
Generated for each reserved IP that had
auto_delete
set totrue
that was attached to this instance network interfaceis.subnet.subnet.update
Generated for each reserved IP that had
auto_delete
set totrue
that was attached to this instance network interfaceis.flow-log-collector.flow-log-collector.delete
Generated for each flow log collector that had
auto_delete
set totrue
that was attached to this instance network interfaceis.flow-log-collector.flow-log-collector.detach
Generated for each flow log collector that was attached to this instance network interface
Retrieve an instance network interface
This request retrieves a single instance network interface specified by the identifier in the URL.
If this instance has network attachments, the retrieved network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request retrieves a single instance network interface specified by the identifier in the URL.
If this instance has network attachments, the retrieved network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request retrieves a single instance network interface specified by the identifier in the URL.
If this instance has network attachments, the retrieved network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request retrieves a single instance network interface specified by the identifier in the URL.
If this instance has network attachments, the retrieved network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request retrieves a single instance network interface specified by the identifier in the URL.
If this instance has network attachments, the retrieved network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
GET /instances/{instance_id}/network_interfaces/{id}
(vpc *VpcV1) GetInstanceNetworkInterface(getInstanceNetworkInterfaceOptions *GetInstanceNetworkInterfaceOptions) (result *NetworkInterface, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceNetworkInterfaceWithContext(ctx context.Context, getInstanceNetworkInterfaceOptions *GetInstanceNetworkInterfaceOptions) (result *NetworkInterface, response *core.DetailedResponse, err error)
get_instance_network_interface(
self,
instance_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<NetworkInterface> getInstanceNetworkInterface(GetInstanceNetworkInterfaceOptions getInstanceNetworkInterfaceOptions)
getInstanceNetworkInterface(params)
Update an instance network interface
This request updates an instance network interface with the information provided in an instance network interface patch object. The instance network interface patch object is structured in the same way as a retrieved instance network interface and needs to contain only the information to be updated.
If this instance has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be updated.
This request updates an instance network interface with the information provided in an instance network interface patch object. The instance network interface patch object is structured in the same way as a retrieved instance network interface and needs to contain only the information to be updated.
If this instance has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be updated.
This request updates an instance network interface with the information provided in an instance network interface patch object. The instance network interface patch object is structured in the same way as a retrieved instance network interface and needs to contain only the information to be updated.
If this instance has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be updated.
This request updates an instance network interface with the information provided in an instance network interface patch object. The instance network interface patch object is structured in the same way as a retrieved instance network interface and needs to contain only the information to be updated.
If this instance has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be updated.
This request updates an instance network interface with the information provided in an instance network interface patch object. The instance network interface patch object is structured in the same way as a retrieved instance network interface and needs to contain only the information to be updated.
If this instance has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be updated.
PATCH /instances/{instance_id}/network_interfaces/{id}
(vpc *VpcV1) UpdateInstanceNetworkInterface(updateInstanceNetworkInterfaceOptions *UpdateInstanceNetworkInterfaceOptions) (result *NetworkInterface, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceNetworkInterfaceWithContext(ctx context.Context, updateInstanceNetworkInterfaceOptions *UpdateInstanceNetworkInterfaceOptions) (result *NetworkInterface, response *core.DetailedResponse, err error)
update_instance_network_interface(
self,
instance_id: str,
id: str,
network_interface_patch: 'NetworkInterfacePatch',
**kwargs,
) -> DetailedResponse
ServiceCall<NetworkInterface> updateInstanceNetworkInterface(UpdateInstanceNetworkInterfaceOptions updateInstanceNetworkInterfaceOptions)
updateInstanceNetworkInterface(params)
List floating IPs associated with an instance network interface
This request lists floating IPs associated with an instance network interface.
This request lists floating IPs associated with an instance network interface.
This request lists floating IPs associated with an instance network interface.
This request lists floating IPs associated with an instance network interface.
This request lists floating IPs associated with an instance network interface.
GET /instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips
(vpc *VpcV1) ListInstanceNetworkInterfaceFloatingIps(listInstanceNetworkInterfaceFloatingIpsOptions *ListInstanceNetworkInterfaceFloatingIpsOptions) (result *FloatingIPUnpaginatedCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceNetworkInterfaceFloatingIpsWithContext(ctx context.Context, listInstanceNetworkInterfaceFloatingIpsOptions *ListInstanceNetworkInterfaceFloatingIpsOptions) (result *FloatingIPUnpaginatedCollection, response *core.DetailedResponse, err error)
list_instance_network_interface_floating_ips(
self,
instance_id: str,
network_interface_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<FloatingIPUnpaginatedCollection> listInstanceNetworkInterfaceFloatingIps(ListInstanceNetworkInterfaceFloatingIpsOptions listInstanceNetworkInterfaceFloatingIpsOptions)
listInstanceNetworkInterfaceFloatingIps(params)
Disassociate a floating IP from an instance network interface
This request disassociates the specified floating IP from the specified instance network interface
This request disassociates the specified floating IP from the specified instance network interface.
This request disassociates the specified floating IP from the specified instance network interface.
This request disassociates the specified floating IP from the specified instance network interface.
This request disassociates the specified floating IP from the specified instance network interface.
DELETE /instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips/{id}
(vpc *VpcV1) RemoveInstanceNetworkInterfaceFloatingIP(removeInstanceNetworkInterfaceFloatingIPOptions *RemoveInstanceNetworkInterfaceFloatingIPOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) RemoveInstanceNetworkInterfaceFloatingIPWithContext(ctx context.Context, removeInstanceNetworkInterfaceFloatingIPOptions *RemoveInstanceNetworkInterfaceFloatingIPOptions) (response *core.DetailedResponse, err error)
remove_instance_network_interface_floating_ip(
self,
instance_id: str,
network_interface_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> removeInstanceNetworkInterfaceFloatingIp(RemoveInstanceNetworkInterfaceFloatingIpOptions removeInstanceNetworkInterfaceFloatingIpOptions)
removeInstanceNetworkInterfaceFloatingIp(params)
Retrieve associated floating IP
This request retrieves a specified floating IP address if it is associated with the instance network interface and instance specified in the URL
This request retrieves a specified floating IP address if it is associated with the instance network interface and instance specified in the URL.
This request retrieves a specified floating IP address if it is associated with the instance network interface and instance specified in the URL.
This request retrieves a specified floating IP address if it is associated with the instance network interface and instance specified in the URL.
This request retrieves a specified floating IP address if it is associated with the instance network interface and instance specified in the URL.
GET /instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips/{id}
(vpc *VpcV1) GetInstanceNetworkInterfaceFloatingIP(getInstanceNetworkInterfaceFloatingIPOptions *GetInstanceNetworkInterfaceFloatingIPOptions) (result *FloatingIP, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceNetworkInterfaceFloatingIPWithContext(ctx context.Context, getInstanceNetworkInterfaceFloatingIPOptions *GetInstanceNetworkInterfaceFloatingIPOptions) (result *FloatingIP, response *core.DetailedResponse, err error)
get_instance_network_interface_floating_ip(
self,
instance_id: str,
network_interface_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<FloatingIP> getInstanceNetworkInterfaceFloatingIp(GetInstanceNetworkInterfaceFloatingIpOptions getInstanceNetworkInterfaceFloatingIpOptions)
getInstanceNetworkInterfaceFloatingIp(params)
Associate a floating IP with an instance network interface
This request associates the specified floating IP with the specified instance network interface, replacing any existing association.
The existing floating IP must:
- not be required by another resource, such as a public gateway
- be in the same
zone
as the instance
A request body is not required, and if provided, is ignored.
This request associates the specified floating IP with the specified instance network interface, replacing any existing association.
The existing floating IP must:
- not be required by another resource, such as a public gateway
- be in the same
zone
as the instance
A request body is not required, and if provided, is ignored.
This request associates the specified floating IP with the specified instance network interface, replacing any existing association.
The existing floating IP must:
- not be required by another resource, such as a public gateway
- be in the same
zone
as the instance
A request body is not required, and if provided, is ignored.
This request associates the specified floating IP with the specified instance network interface, replacing any existing association.
The existing floating IP must:
- not be required by another resource, such as a public gateway
- be in the same
zone
as the instance
A request body is not required, and if provided, is ignored.
This request associates the specified floating IP with the specified instance network interface, replacing any existing association.
The existing floating IP must:
- not be required by another resource, such as a public gateway
- be in the same
zone
as the instance
A request body is not required, and if provided, is ignored.
PUT /instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips/{id}
(vpc *VpcV1) AddInstanceNetworkInterfaceFloatingIP(addInstanceNetworkInterfaceFloatingIPOptions *AddInstanceNetworkInterfaceFloatingIPOptions) (result *FloatingIP, response *core.DetailedResponse, err error)
(vpc *VpcV1) AddInstanceNetworkInterfaceFloatingIPWithContext(ctx context.Context, addInstanceNetworkInterfaceFloatingIPOptions *AddInstanceNetworkInterfaceFloatingIPOptions) (result *FloatingIP, response *core.DetailedResponse, err error)
add_instance_network_interface_floating_ip(
self,
instance_id: str,
network_interface_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<FloatingIP> addInstanceNetworkInterfaceFloatingIp(AddInstanceNetworkInterfaceFloatingIpOptions addInstanceNetworkInterfaceFloatingIpOptions)
addInstanceNetworkInterfaceFloatingIp(params)
List the primary reserved IP for an instance network interface
This request lists the primary reserved IP for an instance network interface.
This request lists the primary reserved IP for an instance network interface.
This request lists the primary reserved IP for an instance network interface.
This request lists the primary reserved IP for an instance network interface.
This request lists the primary reserved IP for an instance network interface.
GET /instances/{instance_id}/network_interfaces/{network_interface_id}/ips
(vpc *VpcV1) ListInstanceNetworkInterfaceIps(listInstanceNetworkInterfaceIpsOptions *ListInstanceNetworkInterfaceIpsOptions) (result *ReservedIPCollectionInstanceNetworkInterfaceContext, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceNetworkInterfaceIpsWithContext(ctx context.Context, listInstanceNetworkInterfaceIpsOptions *ListInstanceNetworkInterfaceIpsOptions) (result *ReservedIPCollectionInstanceNetworkInterfaceContext, response *core.DetailedResponse, err error)
list_instance_network_interface_ips(
self,
instance_id: str,
network_interface_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<ReservedIPCollectionInstanceNetworkInterfaceContext> listInstanceNetworkInterfaceIps(ListInstanceNetworkInterfaceIpsOptions listInstanceNetworkInterfaceIpsOptions)
listInstanceNetworkInterfaceIps(params)
Retrieve the primary reserved IP
This request retrieves the primary reserved IP for an instance network interface.
This request retrieves the primary reserved IP for an instance network interface.
This request retrieves the primary reserved IP for an instance network interface.
This request retrieves the primary reserved IP for an instance network interface.
This request retrieves the primary reserved IP for an instance network interface.
GET /instances/{instance_id}/network_interfaces/{network_interface_id}/ips/{id}
(vpc *VpcV1) GetInstanceNetworkInterfaceIP(getInstanceNetworkInterfaceIPOptions *GetInstanceNetworkInterfaceIPOptions) (result *ReservedIP, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceNetworkInterfaceIPWithContext(ctx context.Context, getInstanceNetworkInterfaceIPOptions *GetInstanceNetworkInterfaceIPOptions) (result *ReservedIP, response *core.DetailedResponse, err error)
get_instance_network_interface_ip(
self,
instance_id: str,
network_interface_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<ReservedIP> getInstanceNetworkInterfaceIp(GetInstanceNetworkInterfaceIpOptions getInstanceNetworkInterfaceIpOptions)
getInstanceNetworkInterfaceIp(params)
List volumes attachments on an instance
This request lists volume attachments on an instance. A volume attachment connects a volume to an instance. Each instance may have many volume attachments but each volume attachment connects exactly one instance to exactly one volume.
This request lists volume attachments on an instance. A volume attachment connects a volume to an instance. Each instance may have many volume attachments but each volume attachment connects exactly one instance to exactly one volume.
This request lists volume attachments on an instance. A volume attachment connects a volume to an instance. Each instance may have many volume attachments but each volume attachment connects exactly one instance to exactly one volume.
This request lists volume attachments on an instance. A volume attachment connects a volume to an instance. Each instance may have many volume attachments but each volume attachment connects exactly one instance to exactly one volume.
This request lists volume attachments on an instance. A volume attachment connects a volume to an instance. Each instance may have many volume attachments but each volume attachment connects exactly one instance to exactly one volume.
GET /instances/{instance_id}/volume_attachments
(vpc *VpcV1) ListInstanceVolumeAttachments(listInstanceVolumeAttachmentsOptions *ListInstanceVolumeAttachmentsOptions) (result *VolumeAttachmentCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceVolumeAttachmentsWithContext(ctx context.Context, listInstanceVolumeAttachmentsOptions *ListInstanceVolumeAttachmentsOptions) (result *VolumeAttachmentCollection, response *core.DetailedResponse, err error)
list_instance_volume_attachments(
self,
instance_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<VolumeAttachmentCollection> listInstanceVolumeAttachments(ListInstanceVolumeAttachmentsOptions listInstanceVolumeAttachmentsOptions)
listInstanceVolumeAttachments(params)
Create a volume attachment on an instance
This request creates a new volume attachment from a volume attachment prototype object, connecting a volume to an instance. For this request to succeed, the specified volume must not be busy. The prototype object is structured in the same way as a retrieved volume attachment, and contains the information necessary to create the new volume attachment.
This request creates a new volume attachment from a volume attachment prototype object, connecting a volume to an instance. For this request to succeed, the specified volume must not be busy. The prototype object is structured in the same way as a retrieved volume attachment, and contains the information necessary to create the new volume attachment.
This request creates a new volume attachment from a volume attachment prototype object, connecting a volume to an instance. For this request to succeed, the specified volume must not be busy. The prototype object is structured in the same way as a retrieved volume attachment, and contains the information necessary to create the new volume attachment.
This request creates a new volume attachment from a volume attachment prototype object, connecting a volume to an instance. For this request to succeed, the specified volume must not be busy. The prototype object is structured in the same way as a retrieved volume attachment, and contains the information necessary to create the new volume attachment.
This request creates a new volume attachment from a volume attachment prototype object, connecting a volume to an instance. For this request to succeed, the specified volume must not be busy. The prototype object is structured in the same way as a retrieved volume attachment, and contains the information necessary to create the new volume attachment.
POST /instances/{instance_id}/volume_attachments
(vpc *VpcV1) CreateInstanceVolumeAttachment(createInstanceVolumeAttachmentOptions *CreateInstanceVolumeAttachmentOptions) (result *VolumeAttachment, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateInstanceVolumeAttachmentWithContext(ctx context.Context, createInstanceVolumeAttachmentOptions *CreateInstanceVolumeAttachmentOptions) (result *VolumeAttachment, response *core.DetailedResponse, err error)
create_instance_volume_attachment(
self,
instance_id: str,
volume: 'VolumeAttachmentPrototypeVolume',
*,
delete_volume_on_instance_delete: Optional[bool] = None,
name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<VolumeAttachment> createInstanceVolumeAttachment(CreateInstanceVolumeAttachmentOptions createInstanceVolumeAttachmentOptions)
createInstanceVolumeAttachment(params)
Delete a volume attachment
This request deletes a volume attachment. This operation cannot be reversed, but a new volume attachment may subsequently be created for the volume. For this request to succeed, the volume must not be busy.
This request deletes a volume attachment. This operation cannot be reversed, but a new volume attachment may subsequently be created for the volume. For this request to succeed, the volume must not be busy.
This request deletes a volume attachment. This operation cannot be reversed, but a new volume attachment may subsequently be created for the volume. For this request to succeed, the volume must not be busy.
This request deletes a volume attachment. This operation cannot be reversed, but a new volume attachment may subsequently be created for the volume. For this request to succeed, the volume must not be busy.
This request deletes a volume attachment. This operation cannot be reversed, but a new volume attachment may subsequently be created for the volume. For this request to succeed, the volume must not be busy.
DELETE /instances/{instance_id}/volume_attachments/{id}
(vpc *VpcV1) DeleteInstanceVolumeAttachment(deleteInstanceVolumeAttachmentOptions *DeleteInstanceVolumeAttachmentOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceVolumeAttachmentWithContext(ctx context.Context, deleteInstanceVolumeAttachmentOptions *DeleteInstanceVolumeAttachmentOptions) (response *core.DetailedResponse, err error)
delete_instance_volume_attachment(
self,
instance_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstanceVolumeAttachment(DeleteInstanceVolumeAttachmentOptions deleteInstanceVolumeAttachmentOptions)
deleteInstanceVolumeAttachment(params)
Retrieve a volume attachment
This request retrieves a single volume attachment specified by the identifier in the URL.
This request retrieves a single volume attachment specified by the identifier in the URL.
This request retrieves a single volume attachment specified by the identifier in the URL.
This request retrieves a single volume attachment specified by the identifier in the URL.
This request retrieves a single volume attachment specified by the identifier in the URL.
GET /instances/{instance_id}/volume_attachments/{id}
(vpc *VpcV1) GetInstanceVolumeAttachment(getInstanceVolumeAttachmentOptions *GetInstanceVolumeAttachmentOptions) (result *VolumeAttachment, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceVolumeAttachmentWithContext(ctx context.Context, getInstanceVolumeAttachmentOptions *GetInstanceVolumeAttachmentOptions) (result *VolumeAttachment, response *core.DetailedResponse, err error)
get_instance_volume_attachment(
self,
instance_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<VolumeAttachment> getInstanceVolumeAttachment(GetInstanceVolumeAttachmentOptions getInstanceVolumeAttachmentOptions)
getInstanceVolumeAttachment(params)
Update a volume attachment
This request updates a volume attachment with the information provided in a volume attachment patch object. The volume attachment patch object is structured in the same way as a retrieved volume attachment and needs to contain only the information to be updated.
This request updates a volume attachment with the information provided in a volume attachment patch object. The volume attachment patch object is structured in the same way as a retrieved volume attachment and needs to contain only the information to be updated.
This request updates a volume attachment with the information provided in a volume attachment patch object. The volume attachment patch object is structured in the same way as a retrieved volume attachment and needs to contain only the information to be updated.
This request updates a volume attachment with the information provided in a volume attachment patch object. The volume attachment patch object is structured in the same way as a retrieved volume attachment and needs to contain only the information to be updated.
This request updates a volume attachment with the information provided in a volume attachment patch object. The volume attachment patch object is structured in the same way as a retrieved volume attachment and needs to contain only the information to be updated.
PATCH /instances/{instance_id}/volume_attachments/{id}
(vpc *VpcV1) UpdateInstanceVolumeAttachment(updateInstanceVolumeAttachmentOptions *UpdateInstanceVolumeAttachmentOptions) (result *VolumeAttachment, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceVolumeAttachmentWithContext(ctx context.Context, updateInstanceVolumeAttachmentOptions *UpdateInstanceVolumeAttachmentOptions) (result *VolumeAttachment, response *core.DetailedResponse, err error)
update_instance_volume_attachment(
self,
instance_id: str,
id: str,
volume_attachment_patch: 'VolumeAttachmentPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<VolumeAttachment> updateInstanceVolumeAttachment(UpdateInstanceVolumeAttachmentOptions updateInstanceVolumeAttachmentOptions)
updateInstanceVolumeAttachment(params)
List instance groups
This request lists instance groups in the region.
This request lists instance groups in the region.
This request lists instance groups in the region.
This request lists instance groups in the region.
This request lists instance groups in the region.
GET /instance_groups
(vpc *VpcV1) ListInstanceGroups(listInstanceGroupsOptions *ListInstanceGroupsOptions) (result *InstanceGroupCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceGroupsWithContext(ctx context.Context, listInstanceGroupsOptions *ListInstanceGroupsOptions) (result *InstanceGroupCollection, response *core.DetailedResponse, err error)
list_instance_groups(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupCollection> listInstanceGroups(ListInstanceGroupsOptions listInstanceGroupsOptions)
listInstanceGroups(params)
Create an instance group
This request creates a new instance group
This request creates a new instance group.
This request creates a new instance group.
This request creates a new instance group.
This request creates a new instance group.
POST /instance_groups
(vpc *VpcV1) CreateInstanceGroup(createInstanceGroupOptions *CreateInstanceGroupOptions) (result *InstanceGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateInstanceGroupWithContext(ctx context.Context, createInstanceGroupOptions *CreateInstanceGroupOptions) (result *InstanceGroup, response *core.DetailedResponse, err error)
create_instance_group(
self,
instance_template: 'InstanceTemplateIdentity',
subnets: List['SubnetIdentity'],
*,
application_port: Optional[int] = None,
load_balancer: Optional['LoadBalancerIdentity'] = None,
load_balancer_pool: Optional['LoadBalancerPoolIdentity'] = None,
membership_count: Optional[int] = None,
name: Optional[str] = None,
resource_group: Optional['ResourceGroupIdentity'] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroup> createInstanceGroup(CreateInstanceGroupOptions createInstanceGroupOptions)
createInstanceGroup(params)
Delete an instance group
This request deletes an instance group. This operation cannot be reversed. Any instances associated with the group will be deleted.
This request deletes an instance group. This operation cannot be reversed. Any instances associated with the group will be deleted.
This request deletes an instance group. This operation cannot be reversed. Any instances associated with the group will be deleted.
This request deletes an instance group. This operation cannot be reversed. Any instances associated with the group will be deleted.
This request deletes an instance group. This operation cannot be reversed. Any instances associated with the group will be deleted.
DELETE /instance_groups/{id}
(vpc *VpcV1) DeleteInstanceGroup(deleteInstanceGroupOptions *DeleteInstanceGroupOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceGroupWithContext(ctx context.Context, deleteInstanceGroupOptions *DeleteInstanceGroupOptions) (response *core.DetailedResponse, err error)
delete_instance_group(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstanceGroup(DeleteInstanceGroupOptions deleteInstanceGroupOptions)
deleteInstanceGroup(params)
Retrieve an instance group
This request retrieves a single instance group specified by identifier in the URL.
This request retrieves a single instance group specified by identifier in the URL.
This request retrieves a single instance group specified by identifier in the URL.
This request retrieves a single instance group specified by identifier in the URL.
This request retrieves a single instance group specified by identifier in the URL.
GET /instance_groups/{id}
(vpc *VpcV1) GetInstanceGroup(getInstanceGroupOptions *GetInstanceGroupOptions) (result *InstanceGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceGroupWithContext(ctx context.Context, getInstanceGroupOptions *GetInstanceGroupOptions) (result *InstanceGroup, response *core.DetailedResponse, err error)
get_instance_group(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroup> getInstanceGroup(GetInstanceGroupOptions getInstanceGroupOptions)
getInstanceGroup(params)
Update an instance group
This request updates an instance group with the information provided instance group patch. The instance group patch object is structured in the same way as a retrieved instance group and contains only the information to be updated.
This request updates an instance group with the information provided instance group patch. The instance group patch object is structured in the same way as a retrieved instance group and contains only the information to be updated.
This request updates an instance group with the information provided instance group patch. The instance group patch object is structured in the same way as a retrieved instance group and contains only the information to be updated.
This request updates an instance group with the information provided instance group patch. The instance group patch object is structured in the same way as a retrieved instance group and contains only the information to be updated.
This request updates an instance group with the information provided instance group patch. The instance group patch object is structured in the same way as a retrieved instance group and contains only the information to be updated.
PATCH /instance_groups/{id}
(vpc *VpcV1) UpdateInstanceGroup(updateInstanceGroupOptions *UpdateInstanceGroupOptions) (result *InstanceGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceGroupWithContext(ctx context.Context, updateInstanceGroupOptions *UpdateInstanceGroupOptions) (result *InstanceGroup, response *core.DetailedResponse, err error)
update_instance_group(
self,
id: str,
instance_group_patch: 'InstanceGroupPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroup> updateInstanceGroup(UpdateInstanceGroupOptions updateInstanceGroupOptions)
updateInstanceGroup(params)
Delete an instance group load balancer
This request unbinds the instance group from the load balancer pool, and deletes the load balancer pool members.
This request unbinds the instance group from the load balancer pool, and deletes the load balancer pool members.
This request unbinds the instance group from the load balancer pool, and deletes the load balancer pool members.
This request unbinds the instance group from the load balancer pool, and deletes the load balancer pool members.
This request unbinds the instance group from the load balancer pool, and deletes the load balancer pool members.
DELETE /instance_groups/{instance_group_id}/load_balancer
(vpc *VpcV1) DeleteInstanceGroupLoadBalancer(deleteInstanceGroupLoadBalancerOptions *DeleteInstanceGroupLoadBalancerOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceGroupLoadBalancerWithContext(ctx context.Context, deleteInstanceGroupLoadBalancerOptions *DeleteInstanceGroupLoadBalancerOptions) (response *core.DetailedResponse, err error)
delete_instance_group_load_balancer(
self,
instance_group_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstanceGroupLoadBalancer(DeleteInstanceGroupLoadBalancerOptions deleteInstanceGroupLoadBalancerOptions)
deleteInstanceGroupLoadBalancer(params)
List managers for an instance group
This request lists managers for an instance group.
This request lists managers for an instance group.
This request lists managers for an instance group.
This request lists managers for an instance group.
This request lists managers for an instance group.
GET /instance_groups/{instance_group_id}/managers
(vpc *VpcV1) ListInstanceGroupManagers(listInstanceGroupManagersOptions *ListInstanceGroupManagersOptions) (result *InstanceGroupManagerCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceGroupManagersWithContext(ctx context.Context, listInstanceGroupManagersOptions *ListInstanceGroupManagersOptions) (result *InstanceGroupManagerCollection, response *core.DetailedResponse, err error)
list_instance_group_managers(
self,
instance_group_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManagerCollection> listInstanceGroupManagers(ListInstanceGroupManagersOptions listInstanceGroupManagersOptions)
listInstanceGroupManagers(params)
Create a manager for an instance group
This request creates a new instance group manager
This request creates a new instance group manager.
This request creates a new instance group manager.
This request creates a new instance group manager.
This request creates a new instance group manager.
POST /instance_groups/{instance_group_id}/managers
(vpc *VpcV1) CreateInstanceGroupManager(createInstanceGroupManagerOptions *CreateInstanceGroupManagerOptions) (result InstanceGroupManagerIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateInstanceGroupManagerWithContext(ctx context.Context, createInstanceGroupManagerOptions *CreateInstanceGroupManagerOptions) (result InstanceGroupManagerIntf, response *core.DetailedResponse, err error)
create_instance_group_manager(
self,
instance_group_id: str,
instance_group_manager_prototype: 'InstanceGroupManagerPrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManager> createInstanceGroupManager(CreateInstanceGroupManagerOptions createInstanceGroupManagerOptions)
createInstanceGroupManager(params)
Delete an instance group manager
This request deletes an instance group manager. This operation cannot be reversed.
This request deletes an instance group manager. This operation cannot be reversed.
This request deletes an instance group manager. This operation cannot be reversed.
This request deletes an instance group manager. This operation cannot be reversed.
This request deletes an instance group manager. This operation cannot be reversed.
DELETE /instance_groups/{instance_group_id}/managers/{id}
(vpc *VpcV1) DeleteInstanceGroupManager(deleteInstanceGroupManagerOptions *DeleteInstanceGroupManagerOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceGroupManagerWithContext(ctx context.Context, deleteInstanceGroupManagerOptions *DeleteInstanceGroupManagerOptions) (response *core.DetailedResponse, err error)
delete_instance_group_manager(
self,
instance_group_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstanceGroupManager(DeleteInstanceGroupManagerOptions deleteInstanceGroupManagerOptions)
deleteInstanceGroupManager(params)
Retrieve an instance group manager
This request retrieves a single instance group manager specified by identifier in the URL.
This request retrieves a single instance group manager specified by identifier in the URL.
This request retrieves a single instance group manager specified by identifier in the URL.
This request retrieves a single instance group manager specified by identifier in the URL.
This request retrieves a single instance group manager specified by identifier in the URL.
GET /instance_groups/{instance_group_id}/managers/{id}
(vpc *VpcV1) GetInstanceGroupManager(getInstanceGroupManagerOptions *GetInstanceGroupManagerOptions) (result InstanceGroupManagerIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceGroupManagerWithContext(ctx context.Context, getInstanceGroupManagerOptions *GetInstanceGroupManagerOptions) (result InstanceGroupManagerIntf, response *core.DetailedResponse, err error)
get_instance_group_manager(
self,
instance_group_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManager> getInstanceGroupManager(GetInstanceGroupManagerOptions getInstanceGroupManagerOptions)
getInstanceGroupManager(params)
Update an instance group manager
This request updates an instance group manager with the information provided instance group manager patch.
This request updates an instance group manager with the information provided instance group manager patch.
This request updates an instance group manager with the information provided instance group manager patch.
This request updates an instance group manager with the information provided instance group manager patch.
This request updates an instance group manager with the information provided instance group manager patch.
PATCH /instance_groups/{instance_group_id}/managers/{id}
(vpc *VpcV1) UpdateInstanceGroupManager(updateInstanceGroupManagerOptions *UpdateInstanceGroupManagerOptions) (result InstanceGroupManagerIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceGroupManagerWithContext(ctx context.Context, updateInstanceGroupManagerOptions *UpdateInstanceGroupManagerOptions) (result InstanceGroupManagerIntf, response *core.DetailedResponse, err error)
update_instance_group_manager(
self,
instance_group_id: str,
id: str,
instance_group_manager_patch: 'InstanceGroupManagerPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManager> updateInstanceGroupManager(UpdateInstanceGroupManagerOptions updateInstanceGroupManagerOptions)
updateInstanceGroupManager(params)
List actions for an instance group manager
This request lists instance group actions for an instance group manager.
This request lists instance group actions for an instance group manager.
This request lists instance group actions for an instance group manager.
This request lists instance group actions for an instance group manager.
This request lists instance group actions for an instance group manager.
GET /instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions
(vpc *VpcV1) ListInstanceGroupManagerActions(listInstanceGroupManagerActionsOptions *ListInstanceGroupManagerActionsOptions) (result *InstanceGroupManagerActionsCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceGroupManagerActionsWithContext(ctx context.Context, listInstanceGroupManagerActionsOptions *ListInstanceGroupManagerActionsOptions) (result *InstanceGroupManagerActionsCollection, response *core.DetailedResponse, err error)
list_instance_group_manager_actions(
self,
instance_group_id: str,
instance_group_manager_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManagerActionsCollection> listInstanceGroupManagerActions(ListInstanceGroupManagerActionsOptions listInstanceGroupManagerActionsOptions)
listInstanceGroupManagerActions(params)
Create an instance group manager action
This request creates a new instance group manager action
This request creates a new instance group manager action.
This request creates a new instance group manager action.
This request creates a new instance group manager action.
This request creates a new instance group manager action.
POST /instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions
(vpc *VpcV1) CreateInstanceGroupManagerAction(createInstanceGroupManagerActionOptions *CreateInstanceGroupManagerActionOptions) (result InstanceGroupManagerActionIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateInstanceGroupManagerActionWithContext(ctx context.Context, createInstanceGroupManagerActionOptions *CreateInstanceGroupManagerActionOptions) (result InstanceGroupManagerActionIntf, response *core.DetailedResponse, err error)
create_instance_group_manager_action(
self,
instance_group_id: str,
instance_group_manager_id: str,
instance_group_manager_action_prototype: 'InstanceGroupManagerActionPrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManagerAction> createInstanceGroupManagerAction(CreateInstanceGroupManagerActionOptions createInstanceGroupManagerActionOptions)
createInstanceGroupManagerAction(params)
Delete specified instance group manager action
This request deletes an instance group manager action. This operation cannot be reversed.
This request deletes an instance group manager action. This operation cannot be reversed.
This request deletes an instance group manager action. This operation cannot be reversed.
This request deletes an instance group manager action. This operation cannot be reversed.
This request deletes an instance group manager action. This operation cannot be reversed.
DELETE /instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions/{id}
(vpc *VpcV1) DeleteInstanceGroupManagerAction(deleteInstanceGroupManagerActionOptions *DeleteInstanceGroupManagerActionOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceGroupManagerActionWithContext(ctx context.Context, deleteInstanceGroupManagerActionOptions *DeleteInstanceGroupManagerActionOptions) (response *core.DetailedResponse, err error)
delete_instance_group_manager_action(
self,
instance_group_id: str,
instance_group_manager_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstanceGroupManagerAction(DeleteInstanceGroupManagerActionOptions deleteInstanceGroupManagerActionOptions)
deleteInstanceGroupManagerAction(params)
Retrieve specified instance group manager action
This request retrieves a single instance group manager action specified by identifier in the URL.
This request retrieves a single instance group manager action specified by identifier in the URL.
This request retrieves a single instance group manager action specified by identifier in the URL.
This request retrieves a single instance group manager action specified by identifier in the URL.
This request retrieves a single instance group manager action specified by identifier in the URL.
GET /instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions/{id}
(vpc *VpcV1) GetInstanceGroupManagerAction(getInstanceGroupManagerActionOptions *GetInstanceGroupManagerActionOptions) (result InstanceGroupManagerActionIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceGroupManagerActionWithContext(ctx context.Context, getInstanceGroupManagerActionOptions *GetInstanceGroupManagerActionOptions) (result InstanceGroupManagerActionIntf, response *core.DetailedResponse, err error)
get_instance_group_manager_action(
self,
instance_group_id: str,
instance_group_manager_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManagerAction> getInstanceGroupManagerAction(GetInstanceGroupManagerActionOptions getInstanceGroupManagerActionOptions)
getInstanceGroupManagerAction(params)
Update specified instance group manager action
This request updates an instance group manager action.
This request updates an instance group manager action.
This request updates an instance group manager action.
This request updates an instance group manager action.
This request updates an instance group manager action.
PATCH /instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions/{id}
(vpc *VpcV1) UpdateInstanceGroupManagerAction(updateInstanceGroupManagerActionOptions *UpdateInstanceGroupManagerActionOptions) (result InstanceGroupManagerActionIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceGroupManagerActionWithContext(ctx context.Context, updateInstanceGroupManagerActionOptions *UpdateInstanceGroupManagerActionOptions) (result InstanceGroupManagerActionIntf, response *core.DetailedResponse, err error)
update_instance_group_manager_action(
self,
instance_group_id: str,
instance_group_manager_id: str,
id: str,
instance_group_manager_action_patch: 'InstanceGroupManagerActionPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManagerAction> updateInstanceGroupManagerAction(UpdateInstanceGroupManagerActionOptions updateInstanceGroupManagerActionOptions)
updateInstanceGroupManagerAction(params)
List policies for an instance group manager
This request lists policies for an instance group manager.
This request lists policies for an instance group manager.
This request lists policies for an instance group manager.
This request lists policies for an instance group manager.
This request lists policies for an instance group manager.
GET /instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies
(vpc *VpcV1) ListInstanceGroupManagerPolicies(listInstanceGroupManagerPoliciesOptions *ListInstanceGroupManagerPoliciesOptions) (result *InstanceGroupManagerPolicyCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceGroupManagerPoliciesWithContext(ctx context.Context, listInstanceGroupManagerPoliciesOptions *ListInstanceGroupManagerPoliciesOptions) (result *InstanceGroupManagerPolicyCollection, response *core.DetailedResponse, err error)
list_instance_group_manager_policies(
self,
instance_group_id: str,
instance_group_manager_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManagerPolicyCollection> listInstanceGroupManagerPolicies(ListInstanceGroupManagerPoliciesOptions listInstanceGroupManagerPoliciesOptions)
listInstanceGroupManagerPolicies(params)
Create a policy for an instance group manager
This request creates a new instance group manager policy
This request creates a new instance group manager policy.
This request creates a new instance group manager policy.
This request creates a new instance group manager policy.
This request creates a new instance group manager policy.
POST /instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies
(vpc *VpcV1) CreateInstanceGroupManagerPolicy(createInstanceGroupManagerPolicyOptions *CreateInstanceGroupManagerPolicyOptions) (result InstanceGroupManagerPolicyIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateInstanceGroupManagerPolicyWithContext(ctx context.Context, createInstanceGroupManagerPolicyOptions *CreateInstanceGroupManagerPolicyOptions) (result InstanceGroupManagerPolicyIntf, response *core.DetailedResponse, err error)
create_instance_group_manager_policy(
self,
instance_group_id: str,
instance_group_manager_id: str,
instance_group_manager_policy_prototype: 'InstanceGroupManagerPolicyPrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManagerPolicy> createInstanceGroupManagerPolicy(CreateInstanceGroupManagerPolicyOptions createInstanceGroupManagerPolicyOptions)
createInstanceGroupManagerPolicy(params)
Delete an instance group manager policy
This request deletes an instance group manager policy. This operation cannot be reversed.
This request deletes an instance group manager policy. This operation cannot be reversed.
This request deletes an instance group manager policy. This operation cannot be reversed.
This request deletes an instance group manager policy. This operation cannot be reversed.
This request deletes an instance group manager policy. This operation cannot be reversed.
DELETE /instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies/{id}
(vpc *VpcV1) DeleteInstanceGroupManagerPolicy(deleteInstanceGroupManagerPolicyOptions *DeleteInstanceGroupManagerPolicyOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceGroupManagerPolicyWithContext(ctx context.Context, deleteInstanceGroupManagerPolicyOptions *DeleteInstanceGroupManagerPolicyOptions) (response *core.DetailedResponse, err error)
delete_instance_group_manager_policy(
self,
instance_group_id: str,
instance_group_manager_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstanceGroupManagerPolicy(DeleteInstanceGroupManagerPolicyOptions deleteInstanceGroupManagerPolicyOptions)
deleteInstanceGroupManagerPolicy(params)
Retrieve an instance group manager policy
This request retrieves a single instance group manager policy specified by identifier in the URL.
This request retrieves a single instance group manager policy specified by identifier in the URL.
This request retrieves a single instance group manager policy specified by identifier in the URL.
This request retrieves a single instance group manager policy specified by identifier in the URL.
This request retrieves a single instance group manager policy specified by identifier in the URL.
GET /instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies/{id}
(vpc *VpcV1) GetInstanceGroupManagerPolicy(getInstanceGroupManagerPolicyOptions *GetInstanceGroupManagerPolicyOptions) (result InstanceGroupManagerPolicyIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceGroupManagerPolicyWithContext(ctx context.Context, getInstanceGroupManagerPolicyOptions *GetInstanceGroupManagerPolicyOptions) (result InstanceGroupManagerPolicyIntf, response *core.DetailedResponse, err error)
get_instance_group_manager_policy(
self,
instance_group_id: str,
instance_group_manager_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManagerPolicy> getInstanceGroupManagerPolicy(GetInstanceGroupManagerPolicyOptions getInstanceGroupManagerPolicyOptions)
getInstanceGroupManagerPolicy(params)
Update an instance group manager policy
This request updates an instance group manager policy.
This request updates an instance group manager policy.
This request updates an instance group manager policy.
This request updates an instance group manager policy.
This request updates an instance group manager policy.
PATCH /instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies/{id}
(vpc *VpcV1) UpdateInstanceGroupManagerPolicy(updateInstanceGroupManagerPolicyOptions *UpdateInstanceGroupManagerPolicyOptions) (result InstanceGroupManagerPolicyIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceGroupManagerPolicyWithContext(ctx context.Context, updateInstanceGroupManagerPolicyOptions *UpdateInstanceGroupManagerPolicyOptions) (result InstanceGroupManagerPolicyIntf, response *core.DetailedResponse, err error)
update_instance_group_manager_policy(
self,
instance_group_id: str,
instance_group_manager_id: str,
id: str,
instance_group_manager_policy_patch: 'InstanceGroupManagerPolicyPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupManagerPolicy> updateInstanceGroupManagerPolicy(UpdateInstanceGroupManagerPolicyOptions updateInstanceGroupManagerPolicyOptions)
updateInstanceGroupManagerPolicy(params)
Delete memberships from an instance group
This request deletes memberships of an instance group. This operation cannot be reversed.
Memberships that have delete_instance_on_membership_delete
set to true
will also have
their instances deleted.
This request deletes memberships of an instance group. This operation cannot be reversed. Memberships that have delete_instance_on_membership_delete
set to true
will also have their instances deleted.
This request deletes memberships of an instance group. This operation cannot be reversed. Memberships that have delete_instance_on_membership_delete
set to true
will also have their instances deleted.
This request deletes memberships of an instance group. This operation cannot be reversed. Memberships that have delete_instance_on_membership_delete
set to true
will also have their instances deleted.
This request deletes memberships of an instance group. This operation cannot be reversed. Memberships that have delete_instance_on_membership_delete
set to true
will also have their instances deleted.
DELETE /instance_groups/{instance_group_id}/memberships
(vpc *VpcV1) DeleteInstanceGroupMemberships(deleteInstanceGroupMembershipsOptions *DeleteInstanceGroupMembershipsOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceGroupMembershipsWithContext(ctx context.Context, deleteInstanceGroupMembershipsOptions *DeleteInstanceGroupMembershipsOptions) (response *core.DetailedResponse, err error)
delete_instance_group_memberships(
self,
instance_group_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstanceGroupMemberships(DeleteInstanceGroupMembershipsOptions deleteInstanceGroupMembershipsOptions)
deleteInstanceGroupMemberships(params)
List memberships for an instance group
This request lists instance group memberships for an instance group.
This request lists instance group memberships for an instance group.
This request lists instance group memberships for an instance group.
This request lists instance group memberships for an instance group.
This request lists instance group memberships for an instance group.
GET /instance_groups/{instance_group_id}/memberships
(vpc *VpcV1) ListInstanceGroupMemberships(listInstanceGroupMembershipsOptions *ListInstanceGroupMembershipsOptions) (result *InstanceGroupMembershipCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListInstanceGroupMembershipsWithContext(ctx context.Context, listInstanceGroupMembershipsOptions *ListInstanceGroupMembershipsOptions) (result *InstanceGroupMembershipCollection, response *core.DetailedResponse, err error)
list_instance_group_memberships(
self,
instance_group_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupMembershipCollection> listInstanceGroupMemberships(ListInstanceGroupMembershipsOptions listInstanceGroupMembershipsOptions)
listInstanceGroupMemberships(params)
Delete an instance group membership
This request deletes a memberships of an instance group. This operation cannot be reversed.
reversed. If the membership has delete_instance_on_membership_delete
set to true
, the
instance will also be deleted.
This request deletes a memberships of an instance group. This operation cannot be reversed. reversed. If the membership has delete_instance_on_membership_delete
set to true
, the instance will also be deleted.
This request deletes a memberships of an instance group. This operation cannot be reversed. reversed. If the membership has delete_instance_on_membership_delete
set to true
, the instance will also be deleted.
This request deletes a memberships of an instance group. This operation cannot be reversed. reversed. If the membership has delete_instance_on_membership_delete
set to true
, the instance will also be deleted.
This request deletes a memberships of an instance group. This operation cannot be reversed. reversed. If the membership has delete_instance_on_membership_delete
set to true
, the instance will also be deleted.
DELETE /instance_groups/{instance_group_id}/memberships/{id}
(vpc *VpcV1) DeleteInstanceGroupMembership(deleteInstanceGroupMembershipOptions *DeleteInstanceGroupMembershipOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteInstanceGroupMembershipWithContext(ctx context.Context, deleteInstanceGroupMembershipOptions *DeleteInstanceGroupMembershipOptions) (response *core.DetailedResponse, err error)
delete_instance_group_membership(
self,
instance_group_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteInstanceGroupMembership(DeleteInstanceGroupMembershipOptions deleteInstanceGroupMembershipOptions)
deleteInstanceGroupMembership(params)
Retrieve an instance group membership
This request retrieves a single instance group membership specified by identifier in the URL.
This request retrieves a single instance group membership specified by identifier in the URL.
This request retrieves a single instance group membership specified by identifier in the URL.
This request retrieves a single instance group membership specified by identifier in the URL.
This request retrieves a single instance group membership specified by identifier in the URL.
GET /instance_groups/{instance_group_id}/memberships/{id}
(vpc *VpcV1) GetInstanceGroupMembership(getInstanceGroupMembershipOptions *GetInstanceGroupMembershipOptions) (result *InstanceGroupMembership, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetInstanceGroupMembershipWithContext(ctx context.Context, getInstanceGroupMembershipOptions *GetInstanceGroupMembershipOptions) (result *InstanceGroupMembership, response *core.DetailedResponse, err error)
get_instance_group_membership(
self,
instance_group_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupMembership> getInstanceGroupMembership(GetInstanceGroupMembershipOptions getInstanceGroupMembershipOptions)
getInstanceGroupMembership(params)
Update an instance group membership
This request updates an instance group membership with the information provided instance group membership patch.
This request updates an instance group membership with the information provided instance group membership patch.
This request updates an instance group membership with the information provided instance group membership patch.
This request updates an instance group membership with the information provided instance group membership patch.
This request updates an instance group membership with the information provided instance group membership patch.
PATCH /instance_groups/{instance_group_id}/memberships/{id}
(vpc *VpcV1) UpdateInstanceGroupMembership(updateInstanceGroupMembershipOptions *UpdateInstanceGroupMembershipOptions) (result *InstanceGroupMembership, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateInstanceGroupMembershipWithContext(ctx context.Context, updateInstanceGroupMembershipOptions *UpdateInstanceGroupMembershipOptions) (result *InstanceGroupMembership, response *core.DetailedResponse, err error)
update_instance_group_membership(
self,
instance_group_id: str,
id: str,
instance_group_membership_patch: 'InstanceGroupMembershipPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<InstanceGroupMembership> updateInstanceGroupMembership(UpdateInstanceGroupMembershipOptions updateInstanceGroupMembershipOptions)
updateInstanceGroupMembership(params)
List reservations
This request lists reservations in the region. A reservation provides reserved capacity for a specified profile in a specified zone. A reservation can also include a long-term committed use discount.
The reservations will be sorted by their created_at
property values, with newest
reservations first. Reservations with identical created_at
property values will in turn
be sorted by ascending name
property values.
This request lists reservations in the region. A reservation provides reserved capacity for a specified profile in a specified zone. A reservation can also include a long-term committed use discount.
The reservations will be sorted by their created_at
property values, with newest reservations first. Reservations with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists reservations in the region. A reservation provides reserved capacity for a specified profile in a specified zone. A reservation can also include a long-term committed use discount.
The reservations will be sorted by their created_at
property values, with newest reservations first. Reservations with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists reservations in the region. A reservation provides reserved capacity for a specified profile in a specified zone. A reservation can also include a long-term committed use discount.
The reservations will be sorted by their created_at
property values, with newest reservations first. Reservations with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists reservations in the region. A reservation provides reserved capacity for a specified profile in a specified zone. A reservation can also include a long-term committed use discount.
The reservations will be sorted by their created_at
property values, with newest reservations first. Reservations with identical created_at
property values will in turn be sorted by ascending name
property values.
GET /reservations
(vpc *VpcV1) ListReservations(listReservationsOptions *ListReservationsOptions) (result *ReservationCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListReservationsWithContext(ctx context.Context, listReservationsOptions *ListReservationsOptions) (result *ReservationCollection, response *core.DetailedResponse, err error)
list_reservations(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
name: Optional[str] = None,
profile_resource_type: Optional[str] = None,
affinity_policy: Optional[str] = None,
resource_group_id: Optional[str] = None,
zone_name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<ReservationCollection> listReservations(ListReservationsOptions listReservationsOptions)
listReservations(params)
Create a reservation
This request creates a new reservation from a reservation prototype object. The prototype object is structured in the same way as a retrieved reservation, and contains the information necessary to create the new reservation.
This request creates a new reservation from a reservation prototype object. The prototype object is structured in the same way as a retrieved reservation, and contains the information necessary to create the new reservation.
This request creates a new reservation from a reservation prototype object. The prototype object is structured in the same way as a retrieved reservation, and contains the information necessary to create the new reservation.
This request creates a new reservation from a reservation prototype object. The prototype object is structured in the same way as a retrieved reservation, and contains the information necessary to create the new reservation.
This request creates a new reservation from a reservation prototype object. The prototype object is structured in the same way as a retrieved reservation, and contains the information necessary to create the new reservation.
POST /reservations
(vpc *VpcV1) CreateReservation(createReservationOptions *CreateReservationOptions) (result *Reservation, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateReservationWithContext(ctx context.Context, createReservationOptions *CreateReservationOptions) (result *Reservation, response *core.DetailedResponse, err error)
create_reservation(
self,
capacity: 'ReservationCapacityPrototype',
committed_use: 'ReservationCommittedUsePrototype',
profile: 'ReservationProfilePrototype',
zone: 'ZoneIdentity',
*,
affinity_policy: Optional[str] = None,
name: Optional[str] = None,
resource_group: Optional['ResourceGroupIdentity'] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<Reservation> createReservation(CreateReservationOptions createReservationOptions)
createReservation(params)
Delete a reservation
This request deletes a reservation. This operation cannot be reversed. Reservations with
a status
of active
are not allowed to be deleted.
This request deletes a reservation. This operation cannot be reversed. Reservations with a status
of active
are not allowed to be deleted.
This request deletes a reservation. This operation cannot be reversed. Reservations with a status
of active
are not allowed to be deleted.
This request deletes a reservation. This operation cannot be reversed. Reservations with a status
of active
are not allowed to be deleted.
This request deletes a reservation. This operation cannot be reversed. Reservations with a status
of active
are not allowed to be deleted.
DELETE /reservations/{id}
(vpc *VpcV1) DeleteReservation(deleteReservationOptions *DeleteReservationOptions) (result *Reservation, response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteReservationWithContext(ctx context.Context, deleteReservationOptions *DeleteReservationOptions) (result *Reservation, response *core.DetailedResponse, err error)
delete_reservation(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Reservation> deleteReservation(DeleteReservationOptions deleteReservationOptions)
deleteReservation(params)
Retrieve a reservation
This request retrieves a single reservation specified by identifier in the URL.
This request retrieves a single reservation specified by identifier in the URL.
This request retrieves a single reservation specified by identifier in the URL.
This request retrieves a single reservation specified by identifier in the URL.
This request retrieves a single reservation specified by identifier in the URL.
GET /reservations/{id}
(vpc *VpcV1) GetReservation(getReservationOptions *GetReservationOptions) (result *Reservation, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetReservationWithContext(ctx context.Context, getReservationOptions *GetReservationOptions) (result *Reservation, response *core.DetailedResponse, err error)
get_reservation(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Reservation> getReservation(GetReservationOptions getReservationOptions)
getReservation(params)
Update a reservation
This request updates a reservation with the information provided in a reservation patch object. The patch object is structured in the same way as a retrieved reservation and needs to contain only the information to be updated.
This request updates a reservation with the information provided in a reservation patch object. The patch object is structured in the same way as a retrieved reservation and needs to contain only the information to be updated.
This request updates a reservation with the information provided in a reservation patch object. The patch object is structured in the same way as a retrieved reservation and needs to contain only the information to be updated.
This request updates a reservation with the information provided in a reservation patch object. The patch object is structured in the same way as a retrieved reservation and needs to contain only the information to be updated.
This request updates a reservation with the information provided in a reservation patch object. The patch object is structured in the same way as a retrieved reservation and needs to contain only the information to be updated.
PATCH /reservations/{id}
(vpc *VpcV1) UpdateReservation(updateReservationOptions *UpdateReservationOptions) (result *Reservation, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateReservationWithContext(ctx context.Context, updateReservationOptions *UpdateReservationOptions) (result *Reservation, response *core.DetailedResponse, err error)
update_reservation(
self,
id: str,
reservation_patch: 'ReservationPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<Reservation> updateReservation(UpdateReservationOptions updateReservationOptions)
updateReservation(params)
Activate a reservation
This request activates a reservation. For this request to succeed, the reservation status
must be inactive
.
This request activates a reservation. For this request to succeed, the reservation status must be inactive
.
This request activates a reservation. For this request to succeed, the reservation status must be inactive
.
This request activates a reservation. For this request to succeed, the reservation status must be inactive
.
This request activates a reservation. For this request to succeed, the reservation status must be inactive
.
POST /reservations/{id}/activate
(vpc *VpcV1) ActivateReservation(activateReservationOptions *ActivateReservationOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) ActivateReservationWithContext(ctx context.Context, activateReservationOptions *ActivateReservationOptions) (response *core.DetailedResponse, err error)
activate_reservation(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> activateReservation(ActivateReservationOptions activateReservationOptions)
activateReservation(params)
List dedicated host groups
This request lists dedicated host groups in the region. Each dedicated host must belong to exactly one group, which controls placement of instances. Dedicated host groups do not span zones.
This request lists dedicated host groups in the region. Each dedicated host must belong to exactly one group, which controls placement of instances. Dedicated host groups do not span zones.
This request lists dedicated host groups in the region. Each dedicated host must belong to exactly one group, which controls placement of instances. Dedicated host groups do not span zones.
This request lists dedicated host groups in the region. Each dedicated host must belong to exactly one group, which controls placement of instances. Dedicated host groups do not span zones.
This request lists dedicated host groups in the region. Each dedicated host must belong to exactly one group, which controls placement of instances. Dedicated host groups do not span zones.
GET /dedicated_host/groups
(vpc *VpcV1) ListDedicatedHostGroups(listDedicatedHostGroupsOptions *ListDedicatedHostGroupsOptions) (result *DedicatedHostGroupCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListDedicatedHostGroupsWithContext(ctx context.Context, listDedicatedHostGroupsOptions *ListDedicatedHostGroupsOptions) (result *DedicatedHostGroupCollection, response *core.DetailedResponse, err error)
list_dedicated_host_groups(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
resource_group_id: Optional[str] = None,
zone_name: Optional[str] = None,
name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHostGroupCollection> listDedicatedHostGroups(ListDedicatedHostGroupsOptions listDedicatedHostGroupsOptions)
listDedicatedHostGroups(params)
Create a dedicated host group
This request creates a new dedicated host group.
This request creates a new dedicated host group.
This request creates a new dedicated host group.
This request creates a new dedicated host group.
This request creates a new dedicated host group.
POST /dedicated_host/groups
(vpc *VpcV1) CreateDedicatedHostGroup(createDedicatedHostGroupOptions *CreateDedicatedHostGroupOptions) (result *DedicatedHostGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateDedicatedHostGroupWithContext(ctx context.Context, createDedicatedHostGroupOptions *CreateDedicatedHostGroupOptions) (result *DedicatedHostGroup, response *core.DetailedResponse, err error)
create_dedicated_host_group(
self,
class_: str,
family: str,
zone: 'ZoneIdentity',
*,
name: Optional[str] = None,
resource_group: Optional['ResourceGroupIdentity'] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHostGroup> createDedicatedHostGroup(CreateDedicatedHostGroupOptions createDedicatedHostGroupOptions)
createDedicatedHostGroup(params)
Delete a dedicated host group
This request deletes a dedicated host group.
This request deletes a dedicated host group.
This request deletes a dedicated host group.
This request deletes a dedicated host group.
This request deletes a dedicated host group.
DELETE /dedicated_host/groups/{id}
(vpc *VpcV1) DeleteDedicatedHostGroup(deleteDedicatedHostGroupOptions *DeleteDedicatedHostGroupOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteDedicatedHostGroupWithContext(ctx context.Context, deleteDedicatedHostGroupOptions *DeleteDedicatedHostGroupOptions) (response *core.DetailedResponse, err error)
delete_dedicated_host_group(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteDedicatedHostGroup(DeleteDedicatedHostGroupOptions deleteDedicatedHostGroupOptions)
deleteDedicatedHostGroup(params)
Retrieve a dedicated host group
This request retrieves a single dedicated host group specified by the identifier in the URL.
This request retrieves a single dedicated host group specified by the identifier in the URL.
This request retrieves a single dedicated host group specified by the identifier in the URL.
This request retrieves a single dedicated host group specified by the identifier in the URL.
This request retrieves a single dedicated host group specified by the identifier in the URL.
GET /dedicated_host/groups/{id}
(vpc *VpcV1) GetDedicatedHostGroup(getDedicatedHostGroupOptions *GetDedicatedHostGroupOptions) (result *DedicatedHostGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetDedicatedHostGroupWithContext(ctx context.Context, getDedicatedHostGroupOptions *GetDedicatedHostGroupOptions) (result *DedicatedHostGroup, response *core.DetailedResponse, err error)
get_dedicated_host_group(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHostGroup> getDedicatedHostGroup(GetDedicatedHostGroupOptions getDedicatedHostGroupOptions)
getDedicatedHostGroup(params)
Update a dedicated host group
This request updates a dedicated host group with the information in a provided dedicated host group patch. The dedicated host group patch object is structured in the same way as a retrieved dedicated host group and contains only the information to be updated.
This request updates a dedicated host group with the information in a provided dedicated host group patch. The dedicated host group patch object is structured in the same way as a retrieved dedicated host group and contains only the information to be updated.
This request updates a dedicated host group with the information in a provided dedicated host group patch. The dedicated host group patch object is structured in the same way as a retrieved dedicated host group and contains only the information to be updated.
This request updates a dedicated host group with the information in a provided dedicated host group patch. The dedicated host group patch object is structured in the same way as a retrieved dedicated host group and contains only the information to be updated.
This request updates a dedicated host group with the information in a provided dedicated host group patch. The dedicated host group patch object is structured in the same way as a retrieved dedicated host group and contains only the information to be updated.
PATCH /dedicated_host/groups/{id}
(vpc *VpcV1) UpdateDedicatedHostGroup(updateDedicatedHostGroupOptions *UpdateDedicatedHostGroupOptions) (result *DedicatedHostGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateDedicatedHostGroupWithContext(ctx context.Context, updateDedicatedHostGroupOptions *UpdateDedicatedHostGroupOptions) (result *DedicatedHostGroup, response *core.DetailedResponse, err error)
update_dedicated_host_group(
self,
id: str,
dedicated_host_group_patch: 'DedicatedHostGroupPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHostGroup> updateDedicatedHostGroup(UpdateDedicatedHostGroupOptions updateDedicatedHostGroupOptions)
updateDedicatedHostGroup(params)
List dedicated host profiles
This request lists provisionable dedicated host profiles in the region. A dedicated host profile specifies the hardware characteristics for a dedicated host.
This request lists provisionable dedicated host profiles in the region. A dedicated host profile specifies the hardware characteristics for a dedicated host.
This request lists provisionable dedicated host profiles in the region. A dedicated host profile specifies the hardware characteristics for a dedicated host.
This request lists provisionable dedicated host profiles in the region. A dedicated host profile specifies the hardware characteristics for a dedicated host.
This request lists provisionable dedicated host profiles in the region. A dedicated host profile specifies the hardware characteristics for a dedicated host.
GET /dedicated_host/profiles
(vpc *VpcV1) ListDedicatedHostProfiles(listDedicatedHostProfilesOptions *ListDedicatedHostProfilesOptions) (result *DedicatedHostProfileCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListDedicatedHostProfilesWithContext(ctx context.Context, listDedicatedHostProfilesOptions *ListDedicatedHostProfilesOptions) (result *DedicatedHostProfileCollection, response *core.DetailedResponse, err error)
list_dedicated_host_profiles(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHostProfileCollection> listDedicatedHostProfiles(ListDedicatedHostProfilesOptions listDedicatedHostProfilesOptions)
listDedicatedHostProfiles(params)
Retrieve a dedicated host profile
This request retrieves a single dedicated host profile specified by the name in the URL.
This request retrieves a single dedicated host profile specified by the name in the URL.
This request retrieves a single dedicated host profile specified by the name in the URL.
This request retrieves a single dedicated host profile specified by the name in the URL.
This request retrieves a single dedicated host profile specified by the name in the URL.
GET /dedicated_host/profiles/{name}
(vpc *VpcV1) GetDedicatedHostProfile(getDedicatedHostProfileOptions *GetDedicatedHostProfileOptions) (result *DedicatedHostProfile, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetDedicatedHostProfileWithContext(ctx context.Context, getDedicatedHostProfileOptions *GetDedicatedHostProfileOptions) (result *DedicatedHostProfile, response *core.DetailedResponse, err error)
get_dedicated_host_profile(
self,
name: str,
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHostProfile> getDedicatedHostProfile(GetDedicatedHostProfileOptions getDedicatedHostProfileOptions)
getDedicatedHostProfile(params)
List dedicated hosts
This request lists dedicated hosts in the region.
This request lists dedicated hosts in the region.
This request lists dedicated hosts in the region.
This request lists dedicated hosts in the region.
This request lists dedicated hosts in the region.
GET /dedicated_hosts
(vpc *VpcV1) ListDedicatedHosts(listDedicatedHostsOptions *ListDedicatedHostsOptions) (result *DedicatedHostCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListDedicatedHostsWithContext(ctx context.Context, listDedicatedHostsOptions *ListDedicatedHostsOptions) (result *DedicatedHostCollection, response *core.DetailedResponse, err error)
list_dedicated_hosts(
self,
*,
dedicated_host_group_id: Optional[str] = None,
start: Optional[str] = None,
limit: Optional[int] = None,
resource_group_id: Optional[str] = None,
zone_name: Optional[str] = None,
name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHostCollection> listDedicatedHosts(ListDedicatedHostsOptions listDedicatedHostsOptions)
listDedicatedHosts(params)
Create a dedicated host
This request creates a new dedicated host.
This request creates a new dedicated host.
This request creates a new dedicated host.
This request creates a new dedicated host.
This request creates a new dedicated host.
POST /dedicated_hosts
(vpc *VpcV1) CreateDedicatedHost(createDedicatedHostOptions *CreateDedicatedHostOptions) (result *DedicatedHost, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateDedicatedHostWithContext(ctx context.Context, createDedicatedHostOptions *CreateDedicatedHostOptions) (result *DedicatedHost, response *core.DetailedResponse, err error)
create_dedicated_host(
self,
dedicated_host_prototype: 'DedicatedHostPrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHost> createDedicatedHost(CreateDedicatedHostOptions createDedicatedHostOptions)
createDedicatedHost(params)
List disks on a dedicated host
This request lists disks on a dedicated host. A disk is a physical device that is
locally attached to the compute node. By default, the listed disks are sorted by their
created_at
property values, with the newest disk first.
This request lists disks on a dedicated host. A disk is a physical device that is locally attached to the compute node. By default, the listed disks are sorted by their
created_at
property values, with the newest disk first.
This request lists disks on a dedicated host. A disk is a physical device that is locally attached to the compute node. By default, the listed disks are sorted by their
created_at
property values, with the newest disk first.
This request lists disks on a dedicated host. A disk is a physical device that is locally attached to the compute node. By default, the listed disks are sorted by their
created_at
property values, with the newest disk first.
This request lists disks on a dedicated host. A disk is a physical device that is locally attached to the compute node. By default, the listed disks are sorted by their
created_at
property values, with the newest disk first.
GET /dedicated_hosts/{dedicated_host_id}/disks
(vpc *VpcV1) ListDedicatedHostDisks(listDedicatedHostDisksOptions *ListDedicatedHostDisksOptions) (result *DedicatedHostDiskCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListDedicatedHostDisksWithContext(ctx context.Context, listDedicatedHostDisksOptions *ListDedicatedHostDisksOptions) (result *DedicatedHostDiskCollection, response *core.DetailedResponse, err error)
list_dedicated_host_disks(
self,
dedicated_host_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHostDiskCollection> listDedicatedHostDisks(ListDedicatedHostDisksOptions listDedicatedHostDisksOptions)
listDedicatedHostDisks(params)
Retrieve a dedicated host disk
This request retrieves a single dedicated host disk specified by the identifier in the URL.
This request retrieves a single dedicated host disk specified by the identifier in the URL.
This request retrieves a single dedicated host disk specified by the identifier in the URL.
This request retrieves a single dedicated host disk specified by the identifier in the URL.
This request retrieves a single dedicated host disk specified by the identifier in the URL.
GET /dedicated_hosts/{dedicated_host_id}/disks/{id}
(vpc *VpcV1) GetDedicatedHostDisk(getDedicatedHostDiskOptions *GetDedicatedHostDiskOptions) (result *DedicatedHostDisk, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetDedicatedHostDiskWithContext(ctx context.Context, getDedicatedHostDiskOptions *GetDedicatedHostDiskOptions) (result *DedicatedHostDisk, response *core.DetailedResponse, err error)
get_dedicated_host_disk(
self,
dedicated_host_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHostDisk> getDedicatedHostDisk(GetDedicatedHostDiskOptions getDedicatedHostDiskOptions)
getDedicatedHostDisk(params)
Update a dedicated host disk
This request updates the dedicated host disk with the information in a provided patch.
This request updates the dedicated host disk with the information in a provided patch.
This request updates the dedicated host disk with the information in a provided patch.
This request updates the dedicated host disk with the information in a provided patch.
This request updates the dedicated host disk with the information in a provided patch.
PATCH /dedicated_hosts/{dedicated_host_id}/disks/{id}
(vpc *VpcV1) UpdateDedicatedHostDisk(updateDedicatedHostDiskOptions *UpdateDedicatedHostDiskOptions) (result *DedicatedHostDisk, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateDedicatedHostDiskWithContext(ctx context.Context, updateDedicatedHostDiskOptions *UpdateDedicatedHostDiskOptions) (result *DedicatedHostDisk, response *core.DetailedResponse, err error)
update_dedicated_host_disk(
self,
dedicated_host_id: str,
id: str,
dedicated_host_disk_patch: 'DedicatedHostDiskPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHostDisk> updateDedicatedHostDisk(UpdateDedicatedHostDiskOptions updateDedicatedHostDiskOptions)
updateDedicatedHostDisk(params)
Delete a dedicated host
This request deletes a dedicated host. This operation cannot be reversed. For this request
to succeed, instances
must be empty and instance_placement_enabled
must be false
.
This request deletes a dedicated host. This operation cannot be reversed. For this request to succeed, instances
must be empty and instance_placement_enabled
must be false
.
This request deletes a dedicated host. This operation cannot be reversed. For this request to succeed, instances
must be empty and instance_placement_enabled
must be false
.
This request deletes a dedicated host. This operation cannot be reversed. For this request to succeed, instances
must be empty and instance_placement_enabled
must be false
.
This request deletes a dedicated host. This operation cannot be reversed. For this request to succeed, instances
must be empty and instance_placement_enabled
must be false
.
DELETE /dedicated_hosts/{id}
(vpc *VpcV1) DeleteDedicatedHost(deleteDedicatedHostOptions *DeleteDedicatedHostOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteDedicatedHostWithContext(ctx context.Context, deleteDedicatedHostOptions *DeleteDedicatedHostOptions) (response *core.DetailedResponse, err error)
delete_dedicated_host(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteDedicatedHost(DeleteDedicatedHostOptions deleteDedicatedHostOptions)
deleteDedicatedHost(params)
Retrieve a dedicated host
This request retrieves a single dedicated host specified by the identifiers in the URL.
This request retrieves a single dedicated host specified by the identifiers in the URL.
This request retrieves a single dedicated host specified by the identifiers in the URL.
This request retrieves a single dedicated host specified by the identifiers in the URL.
This request retrieves a single dedicated host specified by the identifiers in the URL.
GET /dedicated_hosts/{id}
(vpc *VpcV1) GetDedicatedHost(getDedicatedHostOptions *GetDedicatedHostOptions) (result *DedicatedHost, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetDedicatedHostWithContext(ctx context.Context, getDedicatedHostOptions *GetDedicatedHostOptions) (result *DedicatedHost, response *core.DetailedResponse, err error)
get_dedicated_host(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHost> getDedicatedHost(GetDedicatedHostOptions getDedicatedHostOptions)
getDedicatedHost(params)
Update a dedicated host
This request updates a dedicated host with the information in a provided dedicated host patch. The dedicated host patch object is structured in the same way as a retrieved dedicated host and contains only the information to be updated.
This request updates a dedicated host with the information in a provided dedicated host patch. The dedicated host patch object is structured in the same way as a retrieved dedicated host and contains only the information to be updated.
This request updates a dedicated host with the information in a provided dedicated host patch. The dedicated host patch object is structured in the same way as a retrieved dedicated host and contains only the information to be updated.
This request updates a dedicated host with the information in a provided dedicated host patch. The dedicated host patch object is structured in the same way as a retrieved dedicated host and contains only the information to be updated.
This request updates a dedicated host with the information in a provided dedicated host patch. The dedicated host patch object is structured in the same way as a retrieved dedicated host and contains only the information to be updated.
PATCH /dedicated_hosts/{id}
(vpc *VpcV1) UpdateDedicatedHost(updateDedicatedHostOptions *UpdateDedicatedHostOptions) (result *DedicatedHost, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateDedicatedHostWithContext(ctx context.Context, updateDedicatedHostOptions *UpdateDedicatedHostOptions) (result *DedicatedHost, response *core.DetailedResponse, err error)
update_dedicated_host(
self,
id: str,
dedicated_host_patch: 'DedicatedHostPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<DedicatedHost> updateDedicatedHost(UpdateDedicatedHostOptions updateDedicatedHostOptions)
updateDedicatedHost(params)
List placement groups
This request lists placement groups in the region.
This request lists placement groups in the region.
This request lists placement groups in the region.
This request lists placement groups in the region.
This request lists placement groups in the region.
GET /placement_groups
(vpc *VpcV1) ListPlacementGroups(listPlacementGroupsOptions *ListPlacementGroupsOptions) (result *PlacementGroupCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListPlacementGroupsWithContext(ctx context.Context, listPlacementGroupsOptions *ListPlacementGroupsOptions) (result *PlacementGroupCollection, response *core.DetailedResponse, err error)
list_placement_groups(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<PlacementGroupCollection> listPlacementGroups(ListPlacementGroupsOptions listPlacementGroupsOptions)
listPlacementGroups(params)
Create a placement group
This request creates a new placement group
This request creates a new placement group.
This request creates a new placement group.
This request creates a new placement group.
This request creates a new placement group.
POST /placement_groups
(vpc *VpcV1) CreatePlacementGroup(createPlacementGroupOptions *CreatePlacementGroupOptions) (result *PlacementGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreatePlacementGroupWithContext(ctx context.Context, createPlacementGroupOptions *CreatePlacementGroupOptions) (result *PlacementGroup, response *core.DetailedResponse, err error)
create_placement_group(
self,
strategy: str,
*,
name: Optional[str] = None,
resource_group: Optional['ResourceGroupIdentity'] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<PlacementGroup> createPlacementGroup(CreatePlacementGroupOptions createPlacementGroupOptions)
createPlacementGroup(params)
Delete a placement group
This request deletes a placement group. This operation cannot be reversed. For this request to succeed, the placement group must not be associated with an instance.
This request deletes a placement group. This operation cannot be reversed. For this request to succeed, the placement group must not be associated with an instance.
This request deletes a placement group. This operation cannot be reversed. For this request to succeed, the placement group must not be associated with an instance.
This request deletes a placement group. This operation cannot be reversed. For this request to succeed, the placement group must not be associated with an instance.
This request deletes a placement group. This operation cannot be reversed. For this request to succeed, the placement group must not be associated with an instance.
DELETE /placement_groups/{id}
(vpc *VpcV1) DeletePlacementGroup(deletePlacementGroupOptions *DeletePlacementGroupOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeletePlacementGroupWithContext(ctx context.Context, deletePlacementGroupOptions *DeletePlacementGroupOptions) (response *core.DetailedResponse, err error)
delete_placement_group(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deletePlacementGroup(DeletePlacementGroupOptions deletePlacementGroupOptions)
deletePlacementGroup(params)
Retrieve a placement group
This request retrieves a single placement group specified by identifier in the URL.
This request retrieves a single placement group specified by identifier in the URL.
This request retrieves a single placement group specified by identifier in the URL.
This request retrieves a single placement group specified by identifier in the URL.
This request retrieves a single placement group specified by identifier in the URL.
GET /placement_groups/{id}
(vpc *VpcV1) GetPlacementGroup(getPlacementGroupOptions *GetPlacementGroupOptions) (result *PlacementGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetPlacementGroupWithContext(ctx context.Context, getPlacementGroupOptions *GetPlacementGroupOptions) (result *PlacementGroup, response *core.DetailedResponse, err error)
get_placement_group(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<PlacementGroup> getPlacementGroup(GetPlacementGroupOptions getPlacementGroupOptions)
getPlacementGroup(params)
Update a placement group
This request updates a placement group with the information provided placement group patch. The placement group patch object is structured in the same way as a retrieved placement group and contains only the information to be updated.
This request updates a placement group with the information provided placement group patch. The placement group patch object is structured in the same way as a retrieved placement group and contains only the information to be updated.
This request updates a placement group with the information provided placement group patch. The placement group patch object is structured in the same way as a retrieved placement group and contains only the information to be updated.
This request updates a placement group with the information provided placement group patch. The placement group patch object is structured in the same way as a retrieved placement group and contains only the information to be updated.
This request updates a placement group with the information provided placement group patch. The placement group patch object is structured in the same way as a retrieved placement group and contains only the information to be updated.
PATCH /placement_groups/{id}
(vpc *VpcV1) UpdatePlacementGroup(updatePlacementGroupOptions *UpdatePlacementGroupOptions) (result *PlacementGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdatePlacementGroupWithContext(ctx context.Context, updatePlacementGroupOptions *UpdatePlacementGroupOptions) (result *PlacementGroup, response *core.DetailedResponse, err error)
update_placement_group(
self,
id: str,
placement_group_patch: 'PlacementGroupPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<PlacementGroup> updatePlacementGroup(UpdatePlacementGroupOptions updatePlacementGroupOptions)
updatePlacementGroup(params)
List bare metal server profiles
This request lists bare metal server profiles available in the region. A bare metal server profile specifies the performance characteristics and pricing model for a bare metal server.
This request lists bare metal server profiles available in the region. A bare metal server profile specifies the performance characteristics and pricing model for a bare metal server.
This request lists bare metal server profiles available in the region. A bare metal server profile specifies the performance characteristics and pricing model for a bare metal server.
This request lists bare metal server profiles available in the region. A bare metal server profile specifies the performance characteristics and pricing model for a bare metal server.
This request lists bare metal server profiles available in the region. A bare metal server profile specifies the performance characteristics and pricing model for a bare metal server.
GET /bare_metal_server/profiles
(vpc *VpcV1) ListBareMetalServerProfiles(listBareMetalServerProfilesOptions *ListBareMetalServerProfilesOptions) (result *BareMetalServerProfileCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListBareMetalServerProfilesWithContext(ctx context.Context, listBareMetalServerProfilesOptions *ListBareMetalServerProfilesOptions) (result *BareMetalServerProfileCollection, response *core.DetailedResponse, err error)
list_bare_metal_server_profiles(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerProfileCollection> listBareMetalServerProfiles(ListBareMetalServerProfilesOptions listBareMetalServerProfilesOptions)
listBareMetalServerProfiles(params)
Retrieve a bare metal server profile
This request retrieves a single bare metal server profile specified by the name in the URL.
This request retrieves a single bare metal server profile specified by the name in the URL.
This request retrieves a single bare metal server profile specified by the name in the URL.
This request retrieves a single bare metal server profile specified by the name in the URL.
This request retrieves a single bare metal server profile specified by the name in the URL.
GET /bare_metal_server/profiles/{name}
(vpc *VpcV1) GetBareMetalServerProfile(getBareMetalServerProfileOptions *GetBareMetalServerProfileOptions) (result *BareMetalServerProfile, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetBareMetalServerProfileWithContext(ctx context.Context, getBareMetalServerProfileOptions *GetBareMetalServerProfileOptions) (result *BareMetalServerProfile, response *core.DetailedResponse, err error)
get_bare_metal_server_profile(
self,
name: str,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerProfile> getBareMetalServerProfile(GetBareMetalServerProfileOptions getBareMetalServerProfileOptions)
getBareMetalServerProfile(params)
List bare metal servers
This request lists bare metal servers in the region.
This request lists bare metal servers in the region.
This request lists bare metal servers in the region.
This request lists bare metal servers in the region.
This request lists bare metal servers in the region.
GET /bare_metal_servers
(vpc *VpcV1) ListBareMetalServers(listBareMetalServersOptions *ListBareMetalServersOptions) (result *BareMetalServerCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListBareMetalServersWithContext(ctx context.Context, listBareMetalServersOptions *ListBareMetalServersOptions) (result *BareMetalServerCollection, response *core.DetailedResponse, err error)
list_bare_metal_servers(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
resource_group_id: Optional[str] = None,
name: Optional[str] = None,
reservation_id: Optional[str] = None,
reservation_crn: Optional[str] = None,
reservation_name: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_crn: Optional[str] = None,
vpc_name: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerCollection> listBareMetalServers(ListBareMetalServersOptions listBareMetalServersOptions)
listBareMetalServers(params)
Create a bare metal server
This request provisions a new bare metal server from a prototype object. The prototype object is structured in the same way as a retrieved bare metal server, and contains the information necessary to provision the new bare metal server. The bare metal server is automatically started.
This request provisions a new bare metal server from a prototype object. The prototype object is structured in the same way as a retrieved bare metal server, and contains the information necessary to provision the new bare metal server. The bare metal server is automatically started.
This request provisions a new bare metal server from a prototype object. The prototype object is structured in the same way as a retrieved bare metal server, and contains the information necessary to provision the new bare metal server. The bare metal server is automatically started.
This request provisions a new bare metal server from a prototype object. The prototype object is structured in the same way as a retrieved bare metal server, and contains the information necessary to provision the new bare metal server. The bare metal server is automatically started.
This request provisions a new bare metal server from a prototype object. The prototype object is structured in the same way as a retrieved bare metal server, and contains the information necessary to provision the new bare metal server. The bare metal server is automatically started.
POST /bare_metal_servers
(vpc *VpcV1) CreateBareMetalServer(createBareMetalServerOptions *CreateBareMetalServerOptions) (result *BareMetalServer, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateBareMetalServerWithContext(ctx context.Context, createBareMetalServerOptions *CreateBareMetalServerOptions) (result *BareMetalServer, response *core.DetailedResponse, err error)
create_bare_metal_server(
self,
bare_metal_server_prototype: 'BareMetalServerPrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServer> createBareMetalServer(CreateBareMetalServerOptions createBareMetalServerOptions)
createBareMetalServer(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.virtual-network-interface.virtual-network-interface.create
Generated for each virtual network interface created
is.virtual-network-interface.virtual-network-interface.attach
Generated for:
- each virtual network interface being attached to a bare metal server network attachment
- each virtual network interface for each reserved IP being attached to it
- each virtual network interface for each security group being attached to it
is.bare-metal-server.network-attachment.attach
Generated for each virtual network interface being attached to a bare metal server network attachment
is.bare-metal-server.bare-metal-server.create
is.bare-metal-server.network-attachment.create
Generated for each bare metal server network attachment created
is.bare-metal-server.network-interface.create
Generated for each bare metal server network interface created
is.bare-metal-server.network-interface.attach
Generated for each resource being attached to a bare metal server network interface:
- reserved IPs
- security groups
is.subnet.reserved-ip.attach
Generated for each reserved IP being attached to:
- a bare metal server network interface, or
- a virtual network interface
is.subnet.reserved-ip.create
Generated for each reserved IP created
is.security-group.security-group.attach
Generated for each security group being attached to:
- a bare metal server network interface, or
- a new virtual network interface
is.subnet.subnet.update
Generated for each reserved IP created
is.bare-metal-server.bare-metal-server.attach
Generated for each reservation specified in
reservation_affinity.pool
.is.reservation.reservation.attach
Generated for each reservation specified in
reservation_affinity.pool
.
Retrieve the console WebSocket for a bare metal server
This retrieves a WebSocket providing a console for the bare metal server. An access_token
must first be created using the console_access_token
API. The serial
WebSocket provides
a TTY based interface. The vnc
WebSocket provides a VNC based graphical interface. For
this request to succeed, the server must have a status
of stopped
, starting
, or
running
.
GET /bare_metal_servers/{bare_metal_server_id}/console
Create a console access token for a bare metal server
This request creates a new single-use console access token for a bare metal server.
All console configuration is provided at token create time, and the token is
subsequently used in the access_token
query parameter for the WebSocket request. The
access token is only valid for a short period of time, and a maximum of one token is valid
for a given bare metal server at a time. For this request to succeed, the server must have
a status
of stopped
, starting
, or running
.
This request creates a new single-use console access token for a bare metal server. All console configuration is provided at token create time, and the token is subsequently used in the access_token
query parameter for the WebSocket request. The access token is only valid for a short period of time, and a maximum of one token is valid for a given bare metal server at a time. For this request to succeed, the server must have a status
of stopped
, starting
, or running
.
This request creates a new single-use console access token for a bare metal server. All console configuration is provided at token create time, and the token is subsequently used in the access_token
query parameter for the WebSocket request. The access token is only valid for a short period of time, and a maximum of one token is valid for a given bare metal server at a time. For this request to succeed, the server must have a status
of stopped
, starting
, or running
.
This request creates a new single-use console access token for a bare metal server. All console configuration is provided at token create time, and the token is subsequently used in the access_token
query parameter for the WebSocket request. The access token is only valid for a short period of time, and a maximum of one token is valid for a given bare metal server at a time. For this request to succeed, the server must have a status
of stopped
, starting
, or running
.
This request creates a new single-use console access token for a bare metal server. All console configuration is provided at token create time, and the token is subsequently used in the access_token
query parameter for the WebSocket request. The access token is only valid for a short period of time, and a maximum of one token is valid for a given bare metal server at a time. For this request to succeed, the server must have a status
of stopped
, starting
, or running
.
POST /bare_metal_servers/{bare_metal_server_id}/console_access_token
(vpc *VpcV1) CreateBareMetalServerConsoleAccessToken(createBareMetalServerConsoleAccessTokenOptions *CreateBareMetalServerConsoleAccessTokenOptions) (result *BareMetalServerConsoleAccessToken, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateBareMetalServerConsoleAccessTokenWithContext(ctx context.Context, createBareMetalServerConsoleAccessTokenOptions *CreateBareMetalServerConsoleAccessTokenOptions) (result *BareMetalServerConsoleAccessToken, response *core.DetailedResponse, err error)
create_bare_metal_server_console_access_token(
self,
bare_metal_server_id: str,
console_type: str,
*,
force: Optional[bool] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerConsoleAccessToken> createBareMetalServerConsoleAccessToken(CreateBareMetalServerConsoleAccessTokenOptions createBareMetalServerConsoleAccessTokenOptions)
createBareMetalServerConsoleAccessToken(params)
List disks on a bare metal server
This request lists disks on a bare metal server. A disk is a block device that is
locally attached to the physical server. By default, the listed disks are sorted by
their created_at
property values, with the newest disk first.
This request lists disks on a bare metal server. A disk is a block device that is locally attached to the physical server. By default, the listed disks are sorted by their created_at
property values, with the newest disk first.
This request lists disks on a bare metal server. A disk is a block device that is locally attached to the physical server. By default, the listed disks are sorted by their created_at
property values, with the newest disk first.
This request lists disks on a bare metal server. A disk is a block device that is locally attached to the physical server. By default, the listed disks are sorted by their created_at
property values, with the newest disk first.
This request lists disks on a bare metal server. A disk is a block device that is locally attached to the physical server. By default, the listed disks are sorted by their created_at
property values, with the newest disk first.
GET /bare_metal_servers/{bare_metal_server_id}/disks
(vpc *VpcV1) ListBareMetalServerDisks(listBareMetalServerDisksOptions *ListBareMetalServerDisksOptions) (result *BareMetalServerDiskCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListBareMetalServerDisksWithContext(ctx context.Context, listBareMetalServerDisksOptions *ListBareMetalServerDisksOptions) (result *BareMetalServerDiskCollection, response *core.DetailedResponse, err error)
list_bare_metal_server_disks(
self,
bare_metal_server_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerDiskCollection> listBareMetalServerDisks(ListBareMetalServerDisksOptions listBareMetalServerDisksOptions)
listBareMetalServerDisks(params)
Retrieve a bare metal server disk
This request retrieves a single disk specified by the identifier in the URL.
This request retrieves a single disk specified by the identifier in the URL.
This request retrieves a single disk specified by the identifier in the URL.
This request retrieves a single disk specified by the identifier in the URL.
This request retrieves a single disk specified by the identifier in the URL.
GET /bare_metal_servers/{bare_metal_server_id}/disks/{id}
(vpc *VpcV1) GetBareMetalServerDisk(getBareMetalServerDiskOptions *GetBareMetalServerDiskOptions) (result *BareMetalServerDisk, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetBareMetalServerDiskWithContext(ctx context.Context, getBareMetalServerDiskOptions *GetBareMetalServerDiskOptions) (result *BareMetalServerDisk, response *core.DetailedResponse, err error)
get_bare_metal_server_disk(
self,
bare_metal_server_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerDisk> getBareMetalServerDisk(GetBareMetalServerDiskOptions getBareMetalServerDiskOptions)
getBareMetalServerDisk(params)
Update a bare metal server disk
This request updates the bare metal server disk with the information in a provided patch.
This request updates the bare metal server disk with the information in a provided patch.
This request updates the bare metal server disk with the information in a provided patch.
This request updates the bare metal server disk with the information in a provided patch.
This request updates the bare metal server disk with the information in a provided patch.
PATCH /bare_metal_servers/{bare_metal_server_id}/disks/{id}
(vpc *VpcV1) UpdateBareMetalServerDisk(updateBareMetalServerDiskOptions *UpdateBareMetalServerDiskOptions) (result *BareMetalServerDisk, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateBareMetalServerDiskWithContext(ctx context.Context, updateBareMetalServerDiskOptions *UpdateBareMetalServerDiskOptions) (result *BareMetalServerDisk, response *core.DetailedResponse, err error)
update_bare_metal_server_disk(
self,
bare_metal_server_id: str,
id: str,
bare_metal_server_disk_patch: 'BareMetalServerDiskPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerDisk> updateBareMetalServerDisk(UpdateBareMetalServerDiskOptions updateBareMetalServerDiskOptions)
updateBareMetalServerDisk(params)
List network attachments on a bare metal server
This request lists network attachments on a bare metal server. A bare metal server network attachment is an abstract representation of a network device and attaches a bare metal server to a single subnet. Each network interface on a bare metal server can attach to any subnet in the zone, including subnets that are already attached to the bare metal server.
The network attachments will be sorted by their created_at
property values, with newest
network attachments first. Network attachments with identical created_at
property values
will in turn be sorted by ascending name
property values.
This request lists network attachments on a bare metal server. A bare metal server network attachment is an abstract representation of a network device and attaches a bare metal server to a single subnet. Each network interface on a bare metal server can attach to any subnet in the zone, including subnets that are already attached to the bare metal server.
The network attachments will be sorted by their created_at
property values, with newest network attachments first. Network attachments with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists network attachments on a bare metal server. A bare metal server network attachment is an abstract representation of a network device and attaches a bare metal server to a single subnet. Each network interface on a bare metal server can attach to any subnet in the zone, including subnets that are already attached to the bare metal server.
The network attachments will be sorted by their created_at
property values, with newest network attachments first. Network attachments with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists network attachments on a bare metal server. A bare metal server network attachment is an abstract representation of a network device and attaches a bare metal server to a single subnet. Each network interface on a bare metal server can attach to any subnet in the zone, including subnets that are already attached to the bare metal server.
The network attachments will be sorted by their created_at
property values, with newest network attachments first. Network attachments with identical created_at
property values will in turn be sorted by ascending name
property values.
This request lists network attachments on a bare metal server. A bare metal server network attachment is an abstract representation of a network device and attaches a bare metal server to a single subnet. Each network interface on a bare metal server can attach to any subnet in the zone, including subnets that are already attached to the bare metal server.
The network attachments will be sorted by their created_at
property values, with newest network attachments first. Network attachments with identical created_at
property values will in turn be sorted by ascending name
property values.
GET /bare_metal_servers/{bare_metal_server_id}/network_attachments
(vpc *VpcV1) ListBareMetalServerNetworkAttachments(listBareMetalServerNetworkAttachmentsOptions *ListBareMetalServerNetworkAttachmentsOptions) (result *BareMetalServerNetworkAttachmentCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListBareMetalServerNetworkAttachmentsWithContext(ctx context.Context, listBareMetalServerNetworkAttachmentsOptions *ListBareMetalServerNetworkAttachmentsOptions) (result *BareMetalServerNetworkAttachmentCollection, response *core.DetailedResponse, err error)
list_bare_metal_server_network_attachments(
self,
bare_metal_server_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerNetworkAttachmentCollection> listBareMetalServerNetworkAttachments(ListBareMetalServerNetworkAttachmentsOptions listBareMetalServerNetworkAttachmentsOptions)
listBareMetalServerNetworkAttachments(params)
Create a network attachment on a bare metal server
This request creates a new bare metal server network attachment from a bare metal server network attachment prototype object. The prototype object is structured in the same way as a retrieved bare metal server network attachment, and contains the information necessary to create the new bare metal server network attachment.
This request creates a new bare metal server network attachment from a bare metal server network attachment prototype object. The prototype object is structured in the same way as a retrieved bare metal server network attachment, and contains the information necessary to create the new bare metal server network attachment.
This request creates a new bare metal server network attachment from a bare metal server network attachment prototype object. The prototype object is structured in the same way as a retrieved bare metal server network attachment, and contains the information necessary to create the new bare metal server network attachment.
This request creates a new bare metal server network attachment from a bare metal server network attachment prototype object. The prototype object is structured in the same way as a retrieved bare metal server network attachment, and contains the information necessary to create the new bare metal server network attachment.
This request creates a new bare metal server network attachment from a bare metal server network attachment prototype object. The prototype object is structured in the same way as a retrieved bare metal server network attachment, and contains the information necessary to create the new bare metal server network attachment.
POST /bare_metal_servers/{bare_metal_server_id}/network_attachments
(vpc *VpcV1) CreateBareMetalServerNetworkAttachment(createBareMetalServerNetworkAttachmentOptions *CreateBareMetalServerNetworkAttachmentOptions) (result BareMetalServerNetworkAttachmentIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateBareMetalServerNetworkAttachmentWithContext(ctx context.Context, createBareMetalServerNetworkAttachmentOptions *CreateBareMetalServerNetworkAttachmentOptions) (result BareMetalServerNetworkAttachmentIntf, response *core.DetailedResponse, err error)
create_bare_metal_server_network_attachment(
self,
bare_metal_server_id: str,
bare_metal_server_network_attachment_prototype: 'BareMetalServerNetworkAttachmentPrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerNetworkAttachment> createBareMetalServerNetworkAttachment(CreateBareMetalServerNetworkAttachmentOptions createBareMetalServerNetworkAttachmentOptions)
createBareMetalServerNetworkAttachment(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.virtual-network-interface.virtual-network-interface.create
Generated for each virtual network interface created
is.virtual-network-interface.virtual-network-interface.attach
Generated for:
- each virtual network interface being attached to a bare metal server network attachment
- each virtual network interface for each reserved IP being attached to it
- each virtual network interface for each security group being attached to it
is.bare-metal-server.network-attachment.attach
Generated for each virtual network interface being attached to a bare metal server network attachment
is.bare-metal-server.network-attachment.create
is.subnet.reserved-ip.create
Generated for each reserved IP created
is.subnet.reserved-ip.attach
Generated for each reserved IP being attached to a new virtual network interface
is.security-group.security-group.attach
Generated for each security group being attached to a new virtual network interface
is.subnet.subnet.update
Generated for each reserved IP created
Delete a bare metal server network attachment
This request deletes a bare metal server network attachment. This operation cannot be reversed. Any floating IPs associated with the bare metal server network attachment are implicitly disassociated.
The bare metal server's primary network attachment cannot be deleted.
This request deletes a bare metal server network attachment. This operation cannot be reversed. Any floating IPs associated with the bare metal server network attachment are implicitly disassociated.
The bare metal server's primary network attachment cannot be deleted.
This request deletes a bare metal server network attachment. This operation cannot be reversed. Any floating IPs associated with the bare metal server network attachment are implicitly disassociated.
The bare metal server's primary network attachment cannot be deleted.
This request deletes a bare metal server network attachment. This operation cannot be reversed. Any floating IPs associated with the bare metal server network attachment are implicitly disassociated.
The bare metal server's primary network attachment cannot be deleted.
This request deletes a bare metal server network attachment. This operation cannot be reversed. Any floating IPs associated with the bare metal server network attachment are implicitly disassociated.
The bare metal server's primary network attachment cannot be deleted.
DELETE /bare_metal_servers/{bare_metal_server_id}/network_attachments/{id}
(vpc *VpcV1) DeleteBareMetalServerNetworkAttachment(deleteBareMetalServerNetworkAttachmentOptions *DeleteBareMetalServerNetworkAttachmentOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteBareMetalServerNetworkAttachmentWithContext(ctx context.Context, deleteBareMetalServerNetworkAttachmentOptions *DeleteBareMetalServerNetworkAttachmentOptions) (response *core.DetailedResponse, err error)
delete_bare_metal_server_network_attachment(
self,
bare_metal_server_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteBareMetalServerNetworkAttachment(DeleteBareMetalServerNetworkAttachmentOptions deleteBareMetalServerNetworkAttachmentOptions)
deleteBareMetalServerNetworkAttachment(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.bare-metal-server.network-attachment.delete
is.virtual-network-interface.virtual-network-interface.detach
Generated for the attached virtual network interface, and also generated for each reserved IP that was attached to the virtual network interface if the virtual network interface had
auto_delete
set totrue
is.virtual-network-interface.virtual-network-interface.delete
Generated when the virtual network interface had
auto_delete
set totrue
is.floating-ip.floating-ip.detach
Generated for each floating IP that was attached to a virtual network interface that had
auto_delete
set totrue
is.subnet.reserved-ip.detach
Generated for each reserved IP that was attached to a virtual network interface that had
auto_delete
set totrue
is.subnet.reserved-ip.delete
Generated for each reserved IP that had
auto_delete
set totrue
that was attached to a virtual network interface that hadauto_delete
set totrue
is.subnet.subnet.update
Generated for each reserved IP that had
auto_delete
set totrue
that was attached to a virtual network interface that hadauto_delete
set totrue
is.security-group.security-group.detach
Generated for each security group that was attached to a virtual network interface that had
auto_delete
set totrue
Retrieve a bare metal server network attachment
This request retrieves a single bare metal server network attachment specified by the identifier in the URL.
This request retrieves a single bare metal server network attachment specified by the identifier in the URL.
This request retrieves a single bare metal server network attachment specified by the identifier in the URL.
This request retrieves a single bare metal server network attachment specified by the identifier in the URL.
This request retrieves a single bare metal server network attachment specified by the identifier in the URL.
GET /bare_metal_servers/{bare_metal_server_id}/network_attachments/{id}
(vpc *VpcV1) GetBareMetalServerNetworkAttachment(getBareMetalServerNetworkAttachmentOptions *GetBareMetalServerNetworkAttachmentOptions) (result BareMetalServerNetworkAttachmentIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetBareMetalServerNetworkAttachmentWithContext(ctx context.Context, getBareMetalServerNetworkAttachmentOptions *GetBareMetalServerNetworkAttachmentOptions) (result BareMetalServerNetworkAttachmentIntf, response *core.DetailedResponse, err error)
get_bare_metal_server_network_attachment(
self,
bare_metal_server_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerNetworkAttachment> getBareMetalServerNetworkAttachment(GetBareMetalServerNetworkAttachmentOptions getBareMetalServerNetworkAttachmentOptions)
getBareMetalServerNetworkAttachment(params)
Update a bare metal server network attachment
This request updates a bare metal server network attachment with the information provided in a bare metal server network attachment patch object. The bare metal server network attachment patch object is structured in the same way as a retrieved bare metal server network attachment and contains only the information to be updated.
This request updates a bare metal server network attachment with the information provided in a bare metal server network attachment patch object. The bare metal server network attachment patch object is structured in the same way as a retrieved bare metal server network attachment and contains only the information to be updated.
This request updates a bare metal server network attachment with the information provided in a bare metal server network attachment patch object. The bare metal server network attachment patch object is structured in the same way as a retrieved bare metal server network attachment and contains only the information to be updated.
This request updates a bare metal server network attachment with the information provided in a bare metal server network attachment patch object. The bare metal server network attachment patch object is structured in the same way as a retrieved bare metal server network attachment and contains only the information to be updated.
This request updates a bare metal server network attachment with the information provided in a bare metal server network attachment patch object. The bare metal server network attachment patch object is structured in the same way as a retrieved bare metal server network attachment and contains only the information to be updated.
PATCH /bare_metal_servers/{bare_metal_server_id}/network_attachments/{id}
(vpc *VpcV1) UpdateBareMetalServerNetworkAttachment(updateBareMetalServerNetworkAttachmentOptions *UpdateBareMetalServerNetworkAttachmentOptions) (result BareMetalServerNetworkAttachmentIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateBareMetalServerNetworkAttachmentWithContext(ctx context.Context, updateBareMetalServerNetworkAttachmentOptions *UpdateBareMetalServerNetworkAttachmentOptions) (result BareMetalServerNetworkAttachmentIntf, response *core.DetailedResponse, err error)
update_bare_metal_server_network_attachment(
self,
bare_metal_server_id: str,
id: str,
bare_metal_server_network_attachment_patch: 'BareMetalServerNetworkAttachmentPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerNetworkAttachment> updateBareMetalServerNetworkAttachment(UpdateBareMetalServerNetworkAttachmentOptions updateBareMetalServerNetworkAttachmentOptions)
updateBareMetalServerNetworkAttachment(params)
List network interfaces on a bare metal server
This request lists network interfaces on a bare metal server. A bare metal server network interface is an abstract representation of a network device and attaches a bare metal server to a single subnet. Each network interface on a bare metal server can attach to any subnet in the zone, including subnets that are already attached to the bare metal server.
If this bare metal server has network attachments, each returned network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request lists network interfaces on a bare metal server. A bare metal server network interface is an abstract representation of a network device and attaches a bare metal server to a single subnet. Each network interface on a bare metal server can attach to any subnet in the zone, including subnets that are already attached to the bare metal server.
If this bare metal server has network attachments, each returned network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request lists network interfaces on a bare metal server. A bare metal server network interface is an abstract representation of a network device and attaches a bare metal server to a single subnet. Each network interface on a bare metal server can attach to any subnet in the zone, including subnets that are already attached to the bare metal server.
If this bare metal server has network attachments, each returned network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request lists network interfaces on a bare metal server. A bare metal server network interface is an abstract representation of a network device and attaches a bare metal server to a single subnet. Each network interface on a bare metal server can attach to any subnet in the zone, including subnets that are already attached to the bare metal server.
If this bare metal server has network attachments, each returned network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request lists network interfaces on a bare metal server. A bare metal server network interface is an abstract representation of a network device and attaches a bare metal server to a single subnet. Each network interface on a bare metal server can attach to any subnet in the zone, including subnets that are already attached to the bare metal server.
If this bare metal server has network attachments, each returned network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
GET /bare_metal_servers/{bare_metal_server_id}/network_interfaces
(vpc *VpcV1) ListBareMetalServerNetworkInterfaces(listBareMetalServerNetworkInterfacesOptions *ListBareMetalServerNetworkInterfacesOptions) (result *BareMetalServerNetworkInterfaceCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListBareMetalServerNetworkInterfacesWithContext(ctx context.Context, listBareMetalServerNetworkInterfacesOptions *ListBareMetalServerNetworkInterfacesOptions) (result *BareMetalServerNetworkInterfaceCollection, response *core.DetailedResponse, err error)
list_bare_metal_server_network_interfaces(
self,
bare_metal_server_id: str,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerNetworkInterfaceCollection> listBareMetalServerNetworkInterfaces(ListBareMetalServerNetworkInterfacesOptions listBareMetalServerNetworkInterfacesOptions)
listBareMetalServerNetworkInterfaces(params)
Create a network interface on a bare metal server
This request creates a new bare metal server network interface from a bare metal server network interface prototype object. The prototype object is structured in the same way as a retrieved bare metal server network interface, and contains the information necessary to create the new bare metal server network interface. Any subnet in the bare metal server's VPC may be specified, even if it is already attached to another bare metal server network interface. Addresses on the bare metal server network interface must be within the specified subnet's CIDR blocks.
If this bare metal server has network attachments, each network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and new network interfaces are not allowed to be created.
This request creates a new bare metal server network interface from a bare metal server network interface prototype object. The prototype object is structured in the same way as a retrieved bare metal server network interface, and contains the information necessary to create the new bare metal server network interface. Any subnet in the bare metal server's VPC may be specified, even if it is already attached to another bare metal server network interface. Addresses on the bare metal server network interface must be within the specified subnet's CIDR blocks.
If this bare metal server has network attachments, each network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and new network interfaces are not allowed to be created.
This request creates a new bare metal server network interface from a bare metal server network interface prototype object. The prototype object is structured in the same way as a retrieved bare metal server network interface, and contains the information necessary to create the new bare metal server network interface. Any subnet in the bare metal server's VPC may be specified, even if it is already attached to another bare metal server network interface. Addresses on the bare metal server network interface must be within the specified subnet's CIDR blocks.
If this bare metal server has network attachments, each network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and new network interfaces are not allowed to be created.
This request creates a new bare metal server network interface from a bare metal server network interface prototype object. The prototype object is structured in the same way as a retrieved bare metal server network interface, and contains the information necessary to create the new bare metal server network interface. Any subnet in the bare metal server's VPC may be specified, even if it is already attached to another bare metal server network interface. Addresses on the bare metal server network interface must be within the specified subnet's CIDR blocks.
If this bare metal server has network attachments, each network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and new network interfaces are not allowed to be created.
This request creates a new bare metal server network interface from a bare metal server network interface prototype object. The prototype object is structured in the same way as a retrieved bare metal server network interface, and contains the information necessary to create the new bare metal server network interface. Any subnet in the bare metal server's VPC may be specified, even if it is already attached to another bare metal server network interface. Addresses on the bare metal server network interface must be within the specified subnet's CIDR blocks.
If this bare metal server has network attachments, each network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and new network interfaces are not allowed to be created.
POST /bare_metal_servers/{bare_metal_server_id}/network_interfaces
(vpc *VpcV1) CreateBareMetalServerNetworkInterface(createBareMetalServerNetworkInterfaceOptions *CreateBareMetalServerNetworkInterfaceOptions) (result BareMetalServerNetworkInterfaceIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateBareMetalServerNetworkInterfaceWithContext(ctx context.Context, createBareMetalServerNetworkInterfaceOptions *CreateBareMetalServerNetworkInterfaceOptions) (result BareMetalServerNetworkInterfaceIntf, response *core.DetailedResponse, err error)
create_bare_metal_server_network_interface(
self,
bare_metal_server_id: str,
bare_metal_server_network_interface_prototype: 'BareMetalServerNetworkInterfacePrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerNetworkInterface> createBareMetalServerNetworkInterface(CreateBareMetalServerNetworkInterfaceOptions createBareMetalServerNetworkInterfaceOptions)
createBareMetalServerNetworkInterface(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.bare-metal-server.network-interface.create
is.bare-metal-server.network-interface.attach
Generated for each resource attached to the bare metal server network interface:
- a security group
- a reserved IP
is.subnet.reserved-ip.create
Generated for each reserved IP created
is.subnet.reserved-ip.attach
Generated for each reserved IP attached to the bare metal server network interface
is.security-group.security-group.attach
Generated for each security group attached to the bare metal server network interface
is.subnet.subnet.update
Generated for each reserved IP created
Delete a bare metal server network interface
This request deletes a bare metal server network interface. This operation cannot be reversed. Any floating IPs associated with the bare metal server network interface are implicitly disassociated. The primary bare metal server network interface is not allowed to be deleted.
If this bare metal server has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be deleted.
This request deletes a bare metal server network interface. This operation cannot be reversed. Any floating IPs associated with the bare metal server network interface are implicitly disassociated. The primary bare metal server network interface is not allowed to be deleted.
If this bare metal server has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be deleted.
This request deletes a bare metal server network interface. This operation cannot be reversed. Any floating IPs associated with the bare metal server network interface are implicitly disassociated. The primary bare metal server network interface is not allowed to be deleted.
If this bare metal server has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be deleted.
This request deletes a bare metal server network interface. This operation cannot be reversed. Any floating IPs associated with the bare metal server network interface are implicitly disassociated. The primary bare metal server network interface is not allowed to be deleted.
If this bare metal server has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be deleted.
This request deletes a bare metal server network interface. This operation cannot be reversed. Any floating IPs associated with the bare metal server network interface are implicitly disassociated. The primary bare metal server network interface is not allowed to be deleted.
If this bare metal server has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be deleted.
DELETE /bare_metal_servers/{bare_metal_server_id}/network_interfaces/{id}
(vpc *VpcV1) DeleteBareMetalServerNetworkInterface(deleteBareMetalServerNetworkInterfaceOptions *DeleteBareMetalServerNetworkInterfaceOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteBareMetalServerNetworkInterfaceWithContext(ctx context.Context, deleteBareMetalServerNetworkInterfaceOptions *DeleteBareMetalServerNetworkInterfaceOptions) (response *core.DetailedResponse, err error)
delete_bare_metal_server_network_interface(
self,
bare_metal_server_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteBareMetalServerNetworkInterface(DeleteBareMetalServerNetworkInterfaceOptions deleteBareMetalServerNetworkInterfaceOptions)
deleteBareMetalServerNetworkInterface(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.bare-metal-server.network-interface.delete
is.bare-metal-server.network-interface.detach
Generated for each resource that was attached to this bare metal server network interface:
- floating IPs
- reserved IPs
- security groups
is.floating-ip.floating-ip.detach
Generated for each floating IP that was attached to this bare metal server network interface
is.subnet.reserved-ip.detach
Generated for each reserved IP that was attached to this bare metal server network interface
is.security-group.security-group.detach
Generated for each security group that was attached to this bare metal server network interface
is.subnet.reserved-ip.delete
Generated for each reserved IP that had
auto_delete
set totrue
that was attached to this bare metal server network interfaceis.subnet.subnet.update
Generated for each reserved IP that had
auto_delete
set totrue
that was attached to this bare metal server network interface
Retrieve a bare metal server network interface
This request retrieves a single bare metal server network interface specified by the identifier in the URL.
If this bare metal server has network attachments, the retrieved network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request retrieves a single bare metal server network interface specified by the identifier in the URL.
If this bare metal server has network attachments, the retrieved network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request retrieves a single bare metal server network interface specified by the identifier in the URL.
If this bare metal server has network attachments, the retrieved network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request retrieves a single bare metal server network interface specified by the identifier in the URL.
If this bare metal server has network attachments, the retrieved network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
This request retrieves a single bare metal server network interface specified by the identifier in the URL.
If this bare metal server has network attachments, the retrieved network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface.
GET /bare_metal_servers/{bare_metal_server_id}/network_interfaces/{id}
(vpc *VpcV1) GetBareMetalServerNetworkInterface(getBareMetalServerNetworkInterfaceOptions *GetBareMetalServerNetworkInterfaceOptions) (result BareMetalServerNetworkInterfaceIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetBareMetalServerNetworkInterfaceWithContext(ctx context.Context, getBareMetalServerNetworkInterfaceOptions *GetBareMetalServerNetworkInterfaceOptions) (result BareMetalServerNetworkInterfaceIntf, response *core.DetailedResponse, err error)
get_bare_metal_server_network_interface(
self,
bare_metal_server_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerNetworkInterface> getBareMetalServerNetworkInterface(GetBareMetalServerNetworkInterfaceOptions getBareMetalServerNetworkInterfaceOptions)
getBareMetalServerNetworkInterface(params)
Update a bare metal server network interface
This request updates a bare metal server network interface with the information provided in a bare metal server network interface patch object. The bare metal server network interface patch object is structured in the same way as a retrieved bare metal server network interface and needs to contain only the information to be updated.
If this bare metal server has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be updated.
This request updates a bare metal server network interface with the information provided in a bare metal server network interface patch object. The bare metal server network interface patch object is structured in the same way as a retrieved bare metal server network interface and needs to contain only the information to be updated.
If this bare metal server has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be updated.
This request updates a bare metal server network interface with the information provided in a bare metal server network interface patch object. The bare metal server network interface patch object is structured in the same way as a retrieved bare metal server network interface and needs to contain only the information to be updated.
If this bare metal server has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be updated.
This request updates a bare metal server network interface with the information provided in a bare metal server network interface patch object. The bare metal server network interface patch object is structured in the same way as a retrieved bare metal server network interface and needs to contain only the information to be updated.
If this bare metal server has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be updated.
This request updates a bare metal server network interface with the information provided in a bare metal server network interface patch object. The bare metal server network interface patch object is structured in the same way as a retrieved bare metal server network interface and needs to contain only the information to be updated.
If this bare metal server has network attachments, this network interface is a read-only representation of its corresponding network attachment and its attached virtual network interface, and is not allowed to be updated.
PATCH /bare_metal_servers/{bare_metal_server_id}/network_interfaces/{id}
(vpc *VpcV1) UpdateBareMetalServerNetworkInterface(updateBareMetalServerNetworkInterfaceOptions *UpdateBareMetalServerNetworkInterfaceOptions) (result BareMetalServerNetworkInterfaceIntf, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateBareMetalServerNetworkInterfaceWithContext(ctx context.Context, updateBareMetalServerNetworkInterfaceOptions *UpdateBareMetalServerNetworkInterfaceOptions) (result BareMetalServerNetworkInterfaceIntf, response *core.DetailedResponse, err error)
update_bare_metal_server_network_interface(
self,
bare_metal_server_id: str,
id: str,
bare_metal_server_network_interface_patch: 'BareMetalServerNetworkInterfacePatch',
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerNetworkInterface> updateBareMetalServerNetworkInterface(UpdateBareMetalServerNetworkInterfaceOptions updateBareMetalServerNetworkInterfaceOptions)
updateBareMetalServerNetworkInterface(params)
List floating IPs associated with a bare metal server network interface
This request lists floating IPs associated with a bare metal server network interface.
This request lists floating IPs associated with a bare metal server network interface.
This request lists floating IPs associated with a bare metal server network interface.
This request lists floating IPs associated with a bare metal server network interface.
This request lists floating IPs associated with a bare metal server network interface.
GET /bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips
(vpc *VpcV1) ListBareMetalServerNetworkInterfaceFloatingIps(listBareMetalServerNetworkInterfaceFloatingIpsOptions *ListBareMetalServerNetworkInterfaceFloatingIpsOptions) (result *FloatingIPUnpaginatedCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListBareMetalServerNetworkInterfaceFloatingIpsWithContext(ctx context.Context, listBareMetalServerNetworkInterfaceFloatingIpsOptions *ListBareMetalServerNetworkInterfaceFloatingIpsOptions) (result *FloatingIPUnpaginatedCollection, response *core.DetailedResponse, err error)
list_bare_metal_server_network_interface_floating_ips(
self,
bare_metal_server_id: str,
network_interface_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<FloatingIPUnpaginatedCollection> listBareMetalServerNetworkInterfaceFloatingIps(ListBareMetalServerNetworkInterfaceFloatingIpsOptions listBareMetalServerNetworkInterfaceFloatingIpsOptions)
listBareMetalServerNetworkInterfaceFloatingIps(params)
Disassociate a floating IP from a bare metal server network interface
This request disassociates the specified floating IP from the specified bare metal server network interface
This request disassociates the specified floating IP from the specified bare metal server network interface.
This request disassociates the specified floating IP from the specified bare metal server network interface.
This request disassociates the specified floating IP from the specified bare metal server network interface.
This request disassociates the specified floating IP from the specified bare metal server network interface.
DELETE /bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips/{id}
(vpc *VpcV1) RemoveBareMetalServerNetworkInterfaceFloatingIP(removeBareMetalServerNetworkInterfaceFloatingIPOptions *RemoveBareMetalServerNetworkInterfaceFloatingIPOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) RemoveBareMetalServerNetworkInterfaceFloatingIPWithContext(ctx context.Context, removeBareMetalServerNetworkInterfaceFloatingIPOptions *RemoveBareMetalServerNetworkInterfaceFloatingIPOptions) (response *core.DetailedResponse, err error)
remove_bare_metal_server_network_interface_floating_ip(
self,
bare_metal_server_id: str,
network_interface_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> removeBareMetalServerNetworkInterfaceFloatingIp(RemoveBareMetalServerNetworkInterfaceFloatingIpOptions removeBareMetalServerNetworkInterfaceFloatingIpOptions)
removeBareMetalServerNetworkInterfaceFloatingIp(params)
Retrieve associated floating IP
This request retrieves a specified floating IP if it is associated with the bare metal server network interface specified in the URL
This request retrieves a specified floating IP if it is associated with the bare metal server network interface specified in the URL.
This request retrieves a specified floating IP if it is associated with the bare metal server network interface specified in the URL.
This request retrieves a specified floating IP if it is associated with the bare metal server network interface specified in the URL.
This request retrieves a specified floating IP if it is associated with the bare metal server network interface specified in the URL.
GET /bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips/{id}
(vpc *VpcV1) GetBareMetalServerNetworkInterfaceFloatingIP(getBareMetalServerNetworkInterfaceFloatingIPOptions *GetBareMetalServerNetworkInterfaceFloatingIPOptions) (result *FloatingIP, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetBareMetalServerNetworkInterfaceFloatingIPWithContext(ctx context.Context, getBareMetalServerNetworkInterfaceFloatingIPOptions *GetBareMetalServerNetworkInterfaceFloatingIPOptions) (result *FloatingIP, response *core.DetailedResponse, err error)
get_bare_metal_server_network_interface_floating_ip(
self,
bare_metal_server_id: str,
network_interface_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<FloatingIP> getBareMetalServerNetworkInterfaceFloatingIp(GetBareMetalServerNetworkInterfaceFloatingIpOptions getBareMetalServerNetworkInterfaceFloatingIpOptions)
getBareMetalServerNetworkInterfaceFloatingIp(params)
Associate a floating IP with a bare metal server network interface
This request associates the specified floating IP with the specified bare metal server
network interface. If enable_infrastructure_nat
is false
, this adds the IP to any
existing associations. If enable_infrastructure_nat
is true
, this replaces any existing
association.
The existing floating IP must:
- not be required by another resource, such as a public gateway
- be in the same
zone
as the bare metal server
A request body is not required, and if provided, is ignored.
This request associates the specified floating IP with the specified bare metal server network interface. If enable_infrastructure_nat
is false
, this adds the IP to any existing associations. If enable_infrastructure_nat
is true
, this replaces any existing association.
The existing floating IP must:
- not be required by another resource, such as a public gateway
- be in the same
zone
as the bare metal server
A request body is not required, and if provided, is ignored.
This request associates the specified floating IP with the specified bare metal server network interface. If enable_infrastructure_nat
is false
, this adds the IP to any existing associations. If enable_infrastructure_nat
is true
, this replaces any existing association.
The existing floating IP must:
- not be required by another resource, such as a public gateway
- be in the same
zone
as the bare metal server
A request body is not required, and if provided, is ignored.
This request associates the specified floating IP with the specified bare metal server network interface. If enable_infrastructure_nat
is false
, this adds the IP to any existing associations. If enable_infrastructure_nat
is true
, this replaces any existing association.
The existing floating IP must:
- not be required by another resource, such as a public gateway
- be in the same
zone
as the bare metal server
A request body is not required, and if provided, is ignored.
This request associates the specified floating IP with the specified bare metal server network interface. If enable_infrastructure_nat
is false
, this adds the IP to any existing associations. If enable_infrastructure_nat
is true
, this replaces any existing association.
The existing floating IP must:
- not be required by another resource, such as a public gateway
- be in the same
zone
as the bare metal server
A request body is not required, and if provided, is ignored.
PUT /bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips/{id}
(vpc *VpcV1) AddBareMetalServerNetworkInterfaceFloatingIP(addBareMetalServerNetworkInterfaceFloatingIPOptions *AddBareMetalServerNetworkInterfaceFloatingIPOptions) (result *FloatingIP, response *core.DetailedResponse, err error)
(vpc *VpcV1) AddBareMetalServerNetworkInterfaceFloatingIPWithContext(ctx context.Context, addBareMetalServerNetworkInterfaceFloatingIPOptions *AddBareMetalServerNetworkInterfaceFloatingIPOptions) (result *FloatingIP, response *core.DetailedResponse, err error)
add_bare_metal_server_network_interface_floating_ip(
self,
bare_metal_server_id: str,
network_interface_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<FloatingIP> addBareMetalServerNetworkInterfaceFloatingIp(AddBareMetalServerNetworkInterfaceFloatingIpOptions addBareMetalServerNetworkInterfaceFloatingIpOptions)
addBareMetalServerNetworkInterfaceFloatingIp(params)
List the primary reserved IP for a bare metal server network interface
This request lists the primary reserved IP for a bare metal server network interface.
This request lists the primary reserved IP for a bare metal server network interface.
This request lists the primary reserved IP for a bare metal server network interface.
This request lists the primary reserved IP for a bare metal server network interface.
This request lists the primary reserved IP for a bare metal server network interface.
GET /bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/ips
(vpc *VpcV1) ListBareMetalServerNetworkInterfaceIps(listBareMetalServerNetworkInterfaceIpsOptions *ListBareMetalServerNetworkInterfaceIpsOptions) (result *ReservedIPCollectionBareMetalServerNetworkInterfaceContext, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListBareMetalServerNetworkInterfaceIpsWithContext(ctx context.Context, listBareMetalServerNetworkInterfaceIpsOptions *ListBareMetalServerNetworkInterfaceIpsOptions) (result *ReservedIPCollectionBareMetalServerNetworkInterfaceContext, response *core.DetailedResponse, err error)
list_bare_metal_server_network_interface_ips(
self,
bare_metal_server_id: str,
network_interface_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<ReservedIPCollectionBareMetalServerNetworkInterfaceContext> listBareMetalServerNetworkInterfaceIps(ListBareMetalServerNetworkInterfaceIpsOptions listBareMetalServerNetworkInterfaceIpsOptions)
listBareMetalServerNetworkInterfaceIps(params)
Retrieve the primary reserved IP
This request retrieves the primary reserved IP for a bare metal server network interface.
This request retrieves the primary reserved IP for a bare metal server network interface.
This request retrieves the primary reserved IP for a bare metal server network interface.
This request retrieves the primary reserved IP for a bare metal server network interface.
This request retrieves the primary reserved IP for a bare metal server network interface.
GET /bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/ips/{id}
(vpc *VpcV1) GetBareMetalServerNetworkInterfaceIP(getBareMetalServerNetworkInterfaceIPOptions *GetBareMetalServerNetworkInterfaceIPOptions) (result *ReservedIP, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetBareMetalServerNetworkInterfaceIPWithContext(ctx context.Context, getBareMetalServerNetworkInterfaceIPOptions *GetBareMetalServerNetworkInterfaceIPOptions) (result *ReservedIP, response *core.DetailedResponse, err error)
get_bare_metal_server_network_interface_ip(
self,
bare_metal_server_id: str,
network_interface_id: str,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<ReservedIP> getBareMetalServerNetworkInterfaceIp(GetBareMetalServerNetworkInterfaceIpOptions getBareMetalServerNetworkInterfaceIpOptions)
getBareMetalServerNetworkInterfaceIp(params)
Delete a bare metal server
This request deletes a bare metal server. This operation cannot be reversed. Any floating IPs associated with the bare metal server network interfaces are implicitly disassociated.
This request deletes a bare metal server. This operation cannot be reversed. Any floating IPs associated with the bare metal server network interfaces are implicitly disassociated.
This request deletes a bare metal server. This operation cannot be reversed. Any floating IPs associated with the bare metal server network interfaces are implicitly disassociated.
This request deletes a bare metal server. This operation cannot be reversed. Any floating IPs associated with the bare metal server network interfaces are implicitly disassociated.
This request deletes a bare metal server. This operation cannot be reversed. Any floating IPs associated with the bare metal server network interfaces are implicitly disassociated.
DELETE /bare_metal_servers/{id}
(vpc *VpcV1) DeleteBareMetalServer(deleteBareMetalServerOptions *DeleteBareMetalServerOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteBareMetalServerWithContext(ctx context.Context, deleteBareMetalServerOptions *DeleteBareMetalServerOptions) (response *core.DetailedResponse, err error)
delete_bare_metal_server(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteBareMetalServer(DeleteBareMetalServerOptions deleteBareMetalServerOptions)
deleteBareMetalServer(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.bare-metal-server.bare-metal-server.delete
is.bare-metal-server.network-interface.delete
Generated for each network interface on the bare metal server
is.bare-metal-server.network-interface.detach
Generated for each network interface on the bare metal server
is.bare-metal-server.network-attachment.delete
Generated for each network attachment on the bare metal server
is.bare-metal-server.network-attachment.detach
Generated for each network attachment on the bare metal server
is.virtual-network-interface.virtual-network-interface.detach
Generated for:
- each attached virtual network interface
- each virtual network interface that had
auto_delete
set totrue
, for each attached reserved IP
is.virtual-network-interface.virtual-network-interface.delete
Generated for each virtual network interface that had
auto_delete
set totrue
is.floating-ip.floating-ip.detach
Generated for each floating IP that was attached to:
- a network interface on the bare metal server, or
- an virtual network interface that had
auto_delete
set totrue
is.security-group.security-group.detach
Generated for each security group that was attached to:
- a network interface on the bare metal server, or
- an virtual network interface that had
auto_delete
set totrue
is.subnet.reserved-ip.detach
Generated for each reserved IP that was attached to:
- a network interface on the bare metal server, or
- an virtual network interface that had
auto_delete
set totrue
is.subnet.reserved-ip.delete
Generated for each reserved IP that had
auto_delete
set totrue
is.subnet.subnet.update
Generated for each reserved IP that had
auto_delete
set totrue
Retrieve a bare metal server
This request retrieves a single bare metal server specified by the identifier in the URL.
This request retrieves a single bare metal server specified by the identifier in the URL.
This request retrieves a single bare metal server specified by the identifier in the URL.
This request retrieves a single bare metal server specified by the identifier in the URL.
This request retrieves a single bare metal server specified by the identifier in the URL.
GET /bare_metal_servers/{id}
(vpc *VpcV1) GetBareMetalServer(getBareMetalServerOptions *GetBareMetalServerOptions) (result *BareMetalServer, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetBareMetalServerWithContext(ctx context.Context, getBareMetalServerOptions *GetBareMetalServerOptions) (result *BareMetalServer, response *core.DetailedResponse, err error)
get_bare_metal_server(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServer> getBareMetalServer(GetBareMetalServerOptions getBareMetalServerOptions)
getBareMetalServer(params)
Update a bare metal server
This request updates a bare metal server with the information in a provided patch. The bare metal server patch object is structured in the same way as a retrieved bare metal server and contains only the information to be updated.
This request updates a bare metal server with the information in a provided patch. The bare metal server patch object is structured in the same way as a retrieved bare metal server and contains only the information to be updated.
This request updates a bare metal server with the information in a provided patch. The bare metal server patch object is structured in the same way as a retrieved bare metal server and contains only the information to be updated.
This request updates a bare metal server with the information in a provided patch. The bare metal server patch object is structured in the same way as a retrieved bare metal server and contains only the information to be updated.
This request updates a bare metal server with the information in a provided patch. The bare metal server patch object is structured in the same way as a retrieved bare metal server and contains only the information to be updated.
PATCH /bare_metal_servers/{id}
(vpc *VpcV1) UpdateBareMetalServer(updateBareMetalServerOptions *UpdateBareMetalServerOptions) (result *BareMetalServer, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateBareMetalServerWithContext(ctx context.Context, updateBareMetalServerOptions *UpdateBareMetalServerOptions) (result *BareMetalServer, response *core.DetailedResponse, err error)
update_bare_metal_server(
self,
id: str,
bare_metal_server_patch: 'BareMetalServerPatch',
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServer> updateBareMetalServer(UpdateBareMetalServerOptions updateBareMetalServerOptions)
updateBareMetalServer(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.bare-metal-server.bare-metal-server.update
is.bare-metal-server.bare-metal-server.detach
Generated for each server being removed from
reservation_affinity.pool
.is.reservation.reservation.detach
Generated for each reservation being removed from
reservation_affinity.pool
.is.bare-metal-server.bare-metal-server.attach
Generated for each server being added to
reservation_affinity.pool
.is.reservation.reservation.attach
Generated for each reservation being added to
reservation_affinity.pool
.
Update firmware for a bare metal server
This request updates a bare metal server to the latest available firmware. The server must be stopped.
This request updates a bare metal server to the latest available firmware. The server must be stopped.
This request updates a bare metal server to the latest available firmware. The server must be stopped.
This request updates a bare metal server to the latest available firmware. The server must be stopped.
This request updates a bare metal server to the latest available firmware. The server must be stopped.
POST /bare_metal_servers/{id}/firmware/update
(vpc *VpcV1) UpdateFirmwareForBareMetalServer(updateFirmwareForBareMetalServerOptions *UpdateFirmwareForBareMetalServerOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateFirmwareForBareMetalServerWithContext(ctx context.Context, updateFirmwareForBareMetalServerOptions *UpdateFirmwareForBareMetalServerOptions) (response *core.DetailedResponse, err error)
update_firmware_for_bare_metal_server(
self,
id: str,
*,
auto_start: Optional[bool] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> updateFirmwareForBareMetalServer(UpdateFirmwareForBareMetalServerOptions updateFirmwareForBareMetalServerOptions)
updateFirmwareForBareMetalServer(params)
Auditing
Calling this method generates the following auditing events, depending on any listed conditions.
is.bare-metal-server.bare-metal-server-firmware.update
is.bare-metal-server.bare-metal-server.start
Generated when
auto_start
istrue
and the bare metal server is started after the firmware update has successfully completed.
Retrieve initialization configuration for a bare metal server
This request retrieves configuration used to initialize the bare metal server, such as the image used, SSH keys, and any configured usernames and passwords. These can subsequently be changed on the server and therefore may not be current.
This request retrieves configuration used to initialize the bare metal server, such as the image used, SSH keys, and any configured usernames and passwords. These can subsequently be changed on the server and therefore may not be current.
This request retrieves configuration used to initialize the bare metal server, such as the image used, SSH keys, and any configured usernames and passwords. These can subsequently be changed on the server and therefore may not be current.
This request retrieves configuration used to initialize the bare metal server, such as the image used, SSH keys, and any configured usernames and passwords. These can subsequently be changed on the server and therefore may not be current.
This request retrieves configuration used to initialize the bare metal server, such as the image used, SSH keys, and any configured usernames and passwords. These can subsequently be changed on the server and therefore may not be current.
GET /bare_metal_servers/{id}/initialization
(vpc *VpcV1) GetBareMetalServerInitialization(getBareMetalServerInitializationOptions *GetBareMetalServerInitializationOptions) (result *BareMetalServerInitialization, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetBareMetalServerInitializationWithContext(ctx context.Context, getBareMetalServerInitializationOptions *GetBareMetalServerInitializationOptions) (result *BareMetalServerInitialization, response *core.DetailedResponse, err error)
get_bare_metal_server_initialization(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerInitialization> getBareMetalServerInitialization(GetBareMetalServerInitializationOptions getBareMetalServerInitializationOptions)
getBareMetalServerInitialization(params)
Reinitialize a bare metal server
This request reinitializes a bare metal server with the specified image and SSH keys. The server must be stopped. Upon successful reinitiatilization, the bare metal server will be started automatically.
This request reinitializes a bare metal server with the specified image and SSH keys. The server must be stopped. Upon successful reinitiatilization, the bare metal server will be started automatically.
This request reinitializes a bare metal server with the specified image and SSH keys. The server must be stopped. Upon successful reinitiatilization, the bare metal server will be started automatically.
This request reinitializes a bare metal server with the specified image and SSH keys. The server must be stopped. Upon successful reinitiatilization, the bare metal server will be started automatically.
This request reinitializes a bare metal server with the specified image and SSH keys. The server must be stopped. Upon successful reinitiatilization, the bare metal server will be started automatically.
PUT /bare_metal_servers/{id}/initialization
(vpc *VpcV1) ReplaceBareMetalServerInitialization(replaceBareMetalServerInitializationOptions *ReplaceBareMetalServerInitializationOptions) (result *BareMetalServerInitialization, response *core.DetailedResponse, err error)
(vpc *VpcV1) ReplaceBareMetalServerInitializationWithContext(ctx context.Context, replaceBareMetalServerInitializationOptions *ReplaceBareMetalServerInitializationOptions) (result *BareMetalServerInitialization, response *core.DetailedResponse, err error)
replace_bare_metal_server_initialization(
self,
id: str,
image: 'ImageIdentity',
keys: List['KeyIdentity'],
*,
user_data: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<BareMetalServerInitialization> replaceBareMetalServerInitialization(ReplaceBareMetalServerInitializationOptions replaceBareMetalServerInitializationOptions)
replaceBareMetalServerInitialization(params)
Restart a bare metal server
This request immediately restarts a bare metal server. For this request to succeed,
the server must have a status
of running
.
This request immediately restarts a bare metal server. For this request to succeed, the server must have a status
of running
.
This request immediately restarts a bare metal server. For this request to succeed, the server must have a status
of running
.
This request immediately restarts a bare metal server. For this request to succeed, the server must have a status
of running
.
This request immediately restarts a bare metal server. For this request to succeed, the server must have a status
of running
.
POST /bare_metal_servers/{id}/restart
(vpc *VpcV1) RestartBareMetalServer(restartBareMetalServerOptions *RestartBareMetalServerOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) RestartBareMetalServerWithContext(ctx context.Context, restartBareMetalServerOptions *RestartBareMetalServerOptions) (response *core.DetailedResponse, err error)
restart_bare_metal_server(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> restartBareMetalServer(RestartBareMetalServerOptions restartBareMetalServerOptions)
restartBareMetalServer(params)
Start a bare metal server
This request starts a bare metal server. It will run immediately provided the server is stopped.
This request starts a bare metal server. It will run immediately provided the server is stopped.
This request starts a bare metal server. It will run immediately provided the server is stopped.
This request starts a bare metal server. It will run immediately provided the server is stopped.
This request starts a bare metal server. It will run immediately provided the server is stopped.
POST /bare_metal_servers/{id}/start
(vpc *VpcV1) StartBareMetalServer(startBareMetalServerOptions *StartBareMetalServerOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) StartBareMetalServerWithContext(ctx context.Context, startBareMetalServerOptions *StartBareMetalServerOptions) (response *core.DetailedResponse, err error)
start_bare_metal_server(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> startBareMetalServer(StartBareMetalServerOptions startBareMetalServerOptions)
startBareMetalServer(params)
Stop a bare metal server
This request stops a bare metal server. It will run immediately provided the server is running. Note: A soft stop may not complete as it relies on the operating system to perform the operation.
This request stops a bare metal server. It will run immediately provided the server is running. Note: A soft stop may not complete as it relies on the operating system to perform the operation.
This request stops a bare metal server. It will run immediately provided the server is running. Note: A soft stop may not complete as it relies on the operating system to perform the operation.
This request stops a bare metal server. It will run immediately provided the server is running. Note: A soft stop may not complete as it relies on the operating system to perform the operation.
This request stops a bare metal server. It will run immediately provided the server is running. Note: A soft stop may not complete as it relies on the operating system to perform the operation.
POST /bare_metal_servers/{id}/stop
(vpc *VpcV1) StopBareMetalServer(stopBareMetalServerOptions *StopBareMetalServerOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) StopBareMetalServerWithContext(ctx context.Context, stopBareMetalServerOptions *StopBareMetalServerOptions) (response *core.DetailedResponse, err error)
stop_bare_metal_server(
self,
id: str,
type: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> stopBareMetalServer(StopBareMetalServerOptions stopBareMetalServerOptions)
stopBareMetalServer(params)
List volume profiles
This request lists volume profiles available in the region. A volume profile specifies the performance characteristics and pricing model for a volume.
This request lists volume profiles available in the region. A volume profile specifies the performance characteristics and pricing model for a volume.
This request lists volume profiles available in the region. A volume profile specifies the performance characteristics and pricing model for a volume.
This request lists volume profiles available in the region. A volume profile specifies the performance characteristics and pricing model for a volume.
This request lists volume profiles available in the region. A volume profile specifies the performance characteristics and pricing model for a volume.
GET /volume/profiles
(vpc *VpcV1) ListVolumeProfiles(listVolumeProfilesOptions *ListVolumeProfilesOptions) (result *VolumeProfileCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListVolumeProfilesWithContext(ctx context.Context, listVolumeProfilesOptions *ListVolumeProfilesOptions) (result *VolumeProfileCollection, response *core.DetailedResponse, err error)
list_volume_profiles(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<VolumeProfileCollection> listVolumeProfiles(ListVolumeProfilesOptions listVolumeProfilesOptions)
listVolumeProfiles(params)
Retrieve a volume profile
This request retrieves a single volume profile specified by the name in the URL.
This request retrieves a single volume profile specified by the name in the URL.
This request retrieves a single volume profile specified by the name in the URL.
This request retrieves a single volume profile specified by the name in the URL.
This request retrieves a single volume profile specified by the name in the URL.
GET /volume/profiles/{name}
(vpc *VpcV1) GetVolumeProfile(getVolumeProfileOptions *GetVolumeProfileOptions) (result *VolumeProfile, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetVolumeProfileWithContext(ctx context.Context, getVolumeProfileOptions *GetVolumeProfileOptions) (result *VolumeProfile, response *core.DetailedResponse, err error)
get_volume_profile(
self,
name: str,
**kwargs,
) -> DetailedResponse
ServiceCall<VolumeProfile> getVolumeProfile(GetVolumeProfileOptions getVolumeProfileOptions)
getVolumeProfile(params)
List volumes
This request lists volumes in the region. Volumes are network-connected block storage devices that may be attached to one or more instances in the same region.
This request lists volumes in the region. Volumes are network-connected block storage devices that may be attached to one or more instances in the same region.
This request lists volumes in the region. Volumes are network-connected block storage devices that may be attached to one or more instances in the same region.
This request lists volumes in the region. Volumes are network-connected block storage devices that may be attached to one or more instances in the same region.
This request lists volumes in the region. Volumes are network-connected block storage devices that may be attached to one or more instances in the same region.
GET /volumes
(vpc *VpcV1) ListVolumes(listVolumesOptions *ListVolumesOptions) (result *VolumeCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListVolumesWithContext(ctx context.Context, listVolumesOptions *ListVolumesOptions) (result *VolumeCollection, response *core.DetailedResponse, err error)
list_volumes(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
name: Optional[str] = None,
attachment_state: Optional[str] = None,
encryption: Optional[str] = None,
operating_system_family: Optional[str] = None,
operating_system_architecture: Optional[str] = None,
zone_name: Optional[str] = None,
tag: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<VolumeCollection> listVolumes(ListVolumesOptions listVolumesOptions)
listVolumes(params)
Create a volume
This request creates a new volume from a volume prototype object. The prototype object is structured in the same way as a retrieved volume, and contains the information necessary to create the new volume.
This request creates a new volume from a volume prototype object. The prototype object is structured in the same way as a retrieved volume, and contains the information necessary to create the new volume.
This request creates a new volume from a volume prototype object. The prototype object is structured in the same way as a retrieved volume, and contains the information necessary to create the new volume.
This request creates a new volume from a volume prototype object. The prototype object is structured in the same way as a retrieved volume, and contains the information necessary to create the new volume.
This request creates a new volume from a volume prototype object. The prototype object is structured in the same way as a retrieved volume, and contains the information necessary to create the new volume.
POST /volumes
(vpc *VpcV1) CreateVolume(createVolumeOptions *CreateVolumeOptions) (result *Volume, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateVolumeWithContext(ctx context.Context, createVolumeOptions *CreateVolumeOptions) (result *Volume, response *core.DetailedResponse, err error)
create_volume(
self,
volume_prototype: 'VolumePrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<Volume> createVolume(CreateVolumeOptions createVolumeOptions)
createVolume(params)
Delete a volume
This request deletes a volume. This operation cannot be reversed. For this request to succeed, the volume must not be attached to any instances.
This request deletes a volume. This operation cannot be reversed. For this request to succeed, the volume must not be attached to any instances.
This request deletes a volume. This operation cannot be reversed. For this request to succeed, the volume must not be attached to any instances.
This request deletes a volume. This operation cannot be reversed. For this request to succeed, the volume must not be attached to any instances.
This request deletes a volume. This operation cannot be reversed. For this request to succeed, the volume must not be attached to any instances.
DELETE /volumes/{id}
(vpc *VpcV1) DeleteVolume(deleteVolumeOptions *DeleteVolumeOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteVolumeWithContext(ctx context.Context, deleteVolumeOptions *DeleteVolumeOptions) (response *core.DetailedResponse, err error)
delete_volume(
self,
id: str,
*,
if_match: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteVolume(DeleteVolumeOptions deleteVolumeOptions)
deleteVolume(params)
Retrieve a volume
This request retrieves a single volume specified by the identifier in the URL.
This request retrieves a single volume specified by the identifier in the URL.
This request retrieves a single volume specified by the identifier in the URL.
This request retrieves a single volume specified by the identifier in the URL.
This request retrieves a single volume specified by the identifier in the URL.
GET /volumes/{id}
(vpc *VpcV1) GetVolume(getVolumeOptions *GetVolumeOptions) (result *Volume, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetVolumeWithContext(ctx context.Context, getVolumeOptions *GetVolumeOptions) (result *Volume, response *core.DetailedResponse, err error)
get_volume(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Volume> getVolume(GetVolumeOptions getVolumeOptions)
getVolume(params)
Update a volume
This request updates a volume with the information in a provided volume patch. The volume patch object is structured in the same way as a retrieved volume and contains only the information to be updated.
This request updates a volume with the information in a provided volume patch. The volume patch object is structured in the same way as a retrieved volume and contains only the information to be updated.
This request updates a volume with the information in a provided volume patch. The volume patch object is structured in the same way as a retrieved volume and contains only the information to be updated.
This request updates a volume with the information in a provided volume patch. The volume patch object is structured in the same way as a retrieved volume and contains only the information to be updated.
This request updates a volume with the information in a provided volume patch. The volume patch object is structured in the same way as a retrieved volume and contains only the information to be updated.
PATCH /volumes/{id}
(vpc *VpcV1) UpdateVolume(updateVolumeOptions *UpdateVolumeOptions) (result *Volume, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateVolumeWithContext(ctx context.Context, updateVolumeOptions *UpdateVolumeOptions) (result *Volume, response *core.DetailedResponse, err error)
update_volume(
self,
id: str,
volume_patch: 'VolumePatch',
*,
if_match: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<Volume> updateVolume(UpdateVolumeOptions updateVolumeOptions)
updateVolume(params)
List snapshot consistency groups
This request lists snapshot consistency groups in the region. A snapshot consistency group is a collection of individual snapshots taken at the same time.
This request lists snapshot consistency groups in the region. A snapshot consistency group is a collection of individual snapshots taken at the same time.
This request lists snapshot consistency groups in the region. A snapshot consistency group is a collection of individual snapshots taken at the same time.
This request lists snapshot consistency groups in the region. A snapshot consistency group is a collection of individual snapshots taken at the same time.
This request lists snapshot consistency groups in the region. A snapshot consistency group is a collection of individual snapshots taken at the same time.
GET /snapshot_consistency_groups
(vpc *VpcV1) ListSnapshotConsistencyGroups(listSnapshotConsistencyGroupsOptions *ListSnapshotConsistencyGroupsOptions) (result *SnapshotConsistencyGroupCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListSnapshotConsistencyGroupsWithContext(ctx context.Context, listSnapshotConsistencyGroupsOptions *ListSnapshotConsistencyGroupsOptions) (result *SnapshotConsistencyGroupCollection, response *core.DetailedResponse, err error)
list_snapshot_consistency_groups(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
resource_group_id: Optional[str] = None,
name: Optional[str] = None,
sort: Optional[str] = None,
backup_policy_plan_id: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<SnapshotConsistencyGroupCollection> listSnapshotConsistencyGroups(ListSnapshotConsistencyGroupsOptions listSnapshotConsistencyGroupsOptions)
listSnapshotConsistencyGroups(params)
Create a snapshot consistency group
This request creates a new snapshot consistency group from a snapshot consistency group object. The prototype object is structured in the same way as a retrieved consistency group, and contains the information necessary to provision the new snapshot consistency group.
This request creates a new snapshot consistency group from a snapshot consistency group object. The prototype object is structured in the same way as a retrieved consistency group, and contains the information necessary to provision the new snapshot consistency group.
This request creates a new snapshot consistency group from a snapshot consistency group object. The prototype object is structured in the same way as a retrieved consistency group, and contains the information necessary to provision the new snapshot consistency group.
This request creates a new snapshot consistency group from a snapshot consistency group object. The prototype object is structured in the same way as a retrieved consistency group, and contains the information necessary to provision the new snapshot consistency group.
This request creates a new snapshot consistency group from a snapshot consistency group object. The prototype object is structured in the same way as a retrieved consistency group, and contains the information necessary to provision the new snapshot consistency group.
POST /snapshot_consistency_groups
(vpc *VpcV1) CreateSnapshotConsistencyGroup(createSnapshotConsistencyGroupOptions *CreateSnapshotConsistencyGroupOptions) (result *SnapshotConsistencyGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateSnapshotConsistencyGroupWithContext(ctx context.Context, createSnapshotConsistencyGroupOptions *CreateSnapshotConsistencyGroupOptions) (result *SnapshotConsistencyGroup, response *core.DetailedResponse, err error)
create_snapshot_consistency_group(
self,
snapshot_consistency_group_prototype: 'SnapshotConsistencyGroupPrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<SnapshotConsistencyGroup> createSnapshotConsistencyGroup(CreateSnapshotConsistencyGroupOptions createSnapshotConsistencyGroupOptions)
createSnapshotConsistencyGroup(params)
Delete a snapshot consistency group
This request deletes snapshot consistency group. This operation cannot be reversed. If
the delete_snapshots_on_delete
property is true
, all snapshots in the consistency
group will also be deleted.
This request deletes snapshot consistency group. This operation cannot be reversed. If the delete_snapshots_on_delete
property is true
, all snapshots in the consistency group will also be deleted.
This request deletes snapshot consistency group. This operation cannot be reversed. If the delete_snapshots_on_delete
property is true
, all snapshots in the consistency group will also be deleted.
This request deletes snapshot consistency group. This operation cannot be reversed. If the delete_snapshots_on_delete
property is true
, all snapshots in the consistency group will also be deleted.
This request deletes snapshot consistency group. This operation cannot be reversed. If the delete_snapshots_on_delete
property is true
, all snapshots in the consistency group will also be deleted.
DELETE /snapshot_consistency_groups/{id}
(vpc *VpcV1) DeleteSnapshotConsistencyGroup(deleteSnapshotConsistencyGroupOptions *DeleteSnapshotConsistencyGroupOptions) (result *SnapshotConsistencyGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteSnapshotConsistencyGroupWithContext(ctx context.Context, deleteSnapshotConsistencyGroupOptions *DeleteSnapshotConsistencyGroupOptions) (result *SnapshotConsistencyGroup, response *core.DetailedResponse, err error)
delete_snapshot_consistency_group(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<SnapshotConsistencyGroup> deleteSnapshotConsistencyGroup(DeleteSnapshotConsistencyGroupOptions deleteSnapshotConsistencyGroupOptions)
deleteSnapshotConsistencyGroup(params)
Retrieve a snapshot consistency group
This request retrieves a single snapshot consistency group specified by the identifier in the URL.
This request retrieves a single snapshot consistency group specified by the identifier in the URL.
This request retrieves a single snapshot consistency group specified by the identifier in the URL.
This request retrieves a single snapshot consistency group specified by the identifier in the URL.
This request retrieves a single snapshot consistency group specified by the identifier in the URL.
GET /snapshot_consistency_groups/{id}
(vpc *VpcV1) GetSnapshotConsistencyGroup(getSnapshotConsistencyGroupOptions *GetSnapshotConsistencyGroupOptions) (result *SnapshotConsistencyGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) GetSnapshotConsistencyGroupWithContext(ctx context.Context, getSnapshotConsistencyGroupOptions *GetSnapshotConsistencyGroupOptions) (result *SnapshotConsistencyGroup, response *core.DetailedResponse, err error)
get_snapshot_consistency_group(
self,
id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<SnapshotConsistencyGroup> getSnapshotConsistencyGroup(GetSnapshotConsistencyGroupOptions getSnapshotConsistencyGroupOptions)
getSnapshotConsistencyGroup(params)
Update a snapshot consistency group
This request updates a snapshot consistency group with the information in a provided snapshot consistency group patch. The snapshot consistency group patch object is structured in the same way as a retrieved snapshot consistency group and contains only the information to be updated.
This request updates a snapshot consistency group with the information in a provided snapshot consistency group patch. The snapshot consistency group patch object is structured in the same way as a retrieved snapshot consistency group and contains only the information to be updated.
This request updates a snapshot consistency group with the information in a provided snapshot consistency group patch. The snapshot consistency group patch object is structured in the same way as a retrieved snapshot consistency group and contains only the information to be updated.
This request updates a snapshot consistency group with the information in a provided snapshot consistency group patch. The snapshot consistency group patch object is structured in the same way as a retrieved snapshot consistency group and contains only the information to be updated.
This request updates a snapshot consistency group with the information in a provided snapshot consistency group patch. The snapshot consistency group patch object is structured in the same way as a retrieved snapshot consistency group and contains only the information to be updated.
PATCH /snapshot_consistency_groups/{id}
(vpc *VpcV1) UpdateSnapshotConsistencyGroup(updateSnapshotConsistencyGroupOptions *UpdateSnapshotConsistencyGroupOptions) (result *SnapshotConsistencyGroup, response *core.DetailedResponse, err error)
(vpc *VpcV1) UpdateSnapshotConsistencyGroupWithContext(ctx context.Context, updateSnapshotConsistencyGroupOptions *UpdateSnapshotConsistencyGroupOptions) (result *SnapshotConsistencyGroup, response *core.DetailedResponse, err error)
update_snapshot_consistency_group(
self,
id: str,
snapshot_consistency_group_patch: 'SnapshotConsistencyGroupPatch',
*,
if_match: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<SnapshotConsistencyGroup> updateSnapshotConsistencyGroup(UpdateSnapshotConsistencyGroupOptions updateSnapshotConsistencyGroupOptions)
updateSnapshotConsistencyGroup(params)
Delete a filtered collection of snapshots
This request deletes snapshots that match the specified filter. This operation cannot be reversed.
This request deletes snapshots that match the specified filter. This operation cannot be reversed.
This request deletes snapshots that match the specified filter. This operation cannot be reversed.
This request deletes snapshots that match the specified filter. This operation cannot be reversed.
This request deletes snapshots that match the specified filter. This operation cannot be reversed.
DELETE /snapshots
(vpc *VpcV1) DeleteSnapshots(deleteSnapshotsOptions *DeleteSnapshotsOptions) (response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteSnapshotsWithContext(ctx context.Context, deleteSnapshotsOptions *DeleteSnapshotsOptions) (response *core.DetailedResponse, err error)
delete_snapshots(
self,
source_volume_id: str,
**kwargs,
) -> DetailedResponse
ServiceCall<Void> deleteSnapshots(DeleteSnapshotsOptions deleteSnapshotsOptions)
deleteSnapshots(params)
List snapshots
This request lists snapshots in the region. A snapshot preserves the data of a volume at the time the snapshot is created.
This request lists snapshots in the region. A snapshot preserves the data of a volume at the time the snapshot is created.
This request lists snapshots in the region. A snapshot preserves the data of a volume at the time the snapshot is created.
This request lists snapshots in the region. A snapshot preserves the data of a volume at the time the snapshot is created.
This request lists snapshots in the region. A snapshot preserves the data of a volume at the time the snapshot is created.
GET /snapshots
(vpc *VpcV1) ListSnapshots(listSnapshotsOptions *ListSnapshotsOptions) (result *SnapshotCollection, response *core.DetailedResponse, err error)
(vpc *VpcV1) ListSnapshotsWithContext(ctx context.Context, listSnapshotsOptions *ListSnapshotsOptions) (result *SnapshotCollection, response *core.DetailedResponse, err error)
list_snapshots(
self,
*,
start: Optional[str] = None,
limit: Optional[int] = None,
tag: Optional[str] = None,
resource_group_id: Optional[str] = None,
name: Optional[str] = None,
source_volume_id: Optional[str] = None,
source_volume_crn: Optional[str] = None,
source_image_id: Optional[str] = None,
source_image_crn: Optional[str] = None,
sort: Optional[str] = None,
backup_policy_plan_id: Optional[str] = None,
copies_id: Optional[str] = None,
copies_name: Optional[str] = None,
copies_crn: Optional[str] = None,
copies_remote_region_name: Optional[str] = None,
source_snapshot_id: Optional[str] = None,
source_snapshot_remote_region_name: Optional[str] = None,
source_volume_remote_region_name: Optional[str] = None,
source_image_remote_region_name: Optional[str] = None,
clones_zone_name: Optional[str] = None,
snapshot_consistency_group_id: Optional[str] = None,
snapshot_consistency_group_crn: Optional[str] = None,
**kwargs,
) -> DetailedResponse
ServiceCall<SnapshotCollection> listSnapshots(ListSnapshotsOptions listSnapshotsOptions)
listSnapshots(params)
Create a snapshot
This request creates a new snapshot from a snapshot prototype object. The prototype object is structured in the same way as a retrieved snapshot, and contains the information necessary to provision the new snapshot.
This request creates a new snapshot from a snapshot prototype object. The prototype object is structured in the same way as a retrieved snapshot, and contains the information necessary to provision the new snapshot.
This request creates a new snapshot from a snapshot prototype object. The prototype object is structured in the same way as a retrieved snapshot, and contains the information necessary to provision the new snapshot.
This request creates a new snapshot from a snapshot prototype object. The prototype object is structured in the same way as a retrieved snapshot, and contains the information necessary to provision the new snapshot.
This request creates a new snapshot from a snapshot prototype object. The prototype object is structured in the same way as a retrieved snapshot, and contains the information necessary to provision the new snapshot.
POST /snapshots
(vpc *VpcV1) CreateSnapshot(createSnapshotOptions *CreateSnapshotOptions) (result *Snapshot, response *core.DetailedResponse, err error)
(vpc *VpcV1) CreateSnapshotWithContext(ctx context.Context, createSnapshotOptions *CreateSnapshotOptions) (result *Snapshot, response *core.DetailedResponse, err error)
create_snapshot(
self,
snapshot_prototype: 'SnapshotPrototype',
**kwargs,
) -> DetailedResponse
ServiceCall<Snapshot> createSnapshot(CreateSnapshotOptions createSnapshotOptions)
createSnapshot(params)
Delete a snapshot
This request deletes a snapshot. This operation cannot be reversed.
This request deletes a snapshot. This operation cannot be reversed.
This request deletes a snapshot. This operation cannot be reversed.
This request deletes a snapshot. This operation cannot be reversed.
This request deletes a snapshot. This operation cannot be reversed.
DELETE /snapshots/{id}
(vpc *VpcV1) DeleteSnapshot(deleteSnapshotOptions *DeleteSnapshotOptions) (result *Snapshot, response *core.DetailedResponse, err error)
(vpc *VpcV1) DeleteSnapshotWithContext(ctx context.Context, deleteSnapshotOptions *DeleteSnapshotOptions) (result *Snapshot, response *core.DetailedResponse, err error)
delete_snapshot(
self,
id: str,
*,
if_match: Optional[str] = None,
**kwargs,
) -> DetailedResponse