All URIs are relative to https://api.hyperone.com/v2
| Method | HTTP request | Description |
|---|---|---|
| ComputeProjectReplicaCreate | Post /compute/{locationId}/project/{projectId}/replica | Create compute/replica |
| ComputeProjectReplicaDelete | Delete /compute/{locationId}/project/{projectId}/replica/{replicaId} | Delete compute/replica |
| ComputeProjectReplicaDiskList | Get /compute/{locationId}/project/{projectId}/replica/{replicaId}/disk | List compute/replica.disk |
| ComputeProjectReplicaEventGet | Get /compute/{locationId}/project/{projectId}/replica/{replicaId}/event/{eventId} | Get compute/replica.event |
| ComputeProjectReplicaEventList | Get /compute/{locationId}/project/{projectId}/replica/{replicaId}/event | List compute/replica.event |
| ComputeProjectReplicaGet | Get /compute/{locationId}/project/{projectId}/replica/{replicaId} | Get compute/replica |
| ComputeProjectReplicaList | Get /compute/{locationId}/project/{projectId}/replica | List compute/replica |
| ComputeProjectReplicaServiceGet | Get /compute/{locationId}/project/{projectId}/replica/{replicaId}/service/{serviceId} | Get compute/replica.service |
| ComputeProjectReplicaServiceList | Get /compute/{locationId}/project/{projectId}/replica/{replicaId}/service | List compute/replica.service |
| ComputeProjectReplicaTagCreate | Post /compute/{locationId}/project/{projectId}/replica/{replicaId}/tag | Create compute/replica.tag |
| ComputeProjectReplicaTagDelete | Delete /compute/{locationId}/project/{projectId}/replica/{replicaId}/tag/{tagId} | Delete compute/replica.tag |
| ComputeProjectReplicaTagGet | Get /compute/{locationId}/project/{projectId}/replica/{replicaId}/tag/{tagId} | Get compute/replica.tag |
| ComputeProjectReplicaTagList | Get /compute/{locationId}/project/{projectId}/replica/{replicaId}/tag | List compute/replica.tag |
| ComputeProjectReplicaTagPut | Put /compute/{locationId}/project/{projectId}/replica/{replicaId}/tag | Replace compute/replica.tag |
Replica ComputeProjectReplicaCreate(ctx, projectId, locationId).ComputeProjectReplicaCreate(computeProjectReplicaCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Create compute/replica
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
computeProjectReplicaCreate := *openapiclient.NewComputeProjectReplicaCreate("Hostname_example", "Secret_example") // ComputeProjectReplicaCreate |
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaCreate(context.Background(), projectId, locationId).ComputeProjectReplicaCreate(computeProjectReplicaCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaCreate`: Replica
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaCreate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id |
Other parameters are passed through a pointer to a apiComputeProjectReplicaCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
computeProjectReplicaCreate | ComputeProjectReplicaCreate | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Replica ComputeProjectReplicaDelete(ctx, projectId, locationId, replicaId).Execute()
Delete compute/replica
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaDelete(context.Background(), projectId, locationId, replicaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaDelete`: Replica
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaDelete`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id |
Other parameters are passed through a pointer to a apiComputeProjectReplicaDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Disk ComputeProjectReplicaDiskList(ctx, projectId, locationId, replicaId).Execute()
List compute/replica.disk
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaDiskList(context.Background(), projectId, locationId, replicaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaDiskList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaDiskList`: []Disk
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaDiskList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id |
Other parameters are passed through a pointer to a apiComputeProjectReplicaDiskListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Event ComputeProjectReplicaEventGet(ctx, projectId, locationId, replicaId, eventId).Execute()
Get compute/replica.event
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
eventId := "eventId_example" // string | eventId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaEventGet(context.Background(), projectId, locationId, replicaId, eventId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaEventGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaEventGet`: Event
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaEventGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id | |
| eventId | string | eventId |
Other parameters are passed through a pointer to a apiComputeProjectReplicaEventGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Event ComputeProjectReplicaEventList(ctx, projectId, locationId, replicaId).Limit(limit).Skip(skip).Execute()
List compute/replica.event
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
limit := float32(8.14) // float32 | $limit (optional) (default to 100)
skip := float32(8.14) // float32 | $skip (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaEventList(context.Background(), projectId, locationId, replicaId).Limit(limit).Skip(skip).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaEventList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaEventList`: []Event
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaEventList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id |
Other parameters are passed through a pointer to a apiComputeProjectReplicaEventListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
limit | float32 | $limit | [default to 100] skip | float32 | $skip |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Replica ComputeProjectReplicaGet(ctx, projectId, locationId, replicaId).Execute()
Get compute/replica
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaGet(context.Background(), projectId, locationId, replicaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaGet`: Replica
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id |
Other parameters are passed through a pointer to a apiComputeProjectReplicaGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Replica ComputeProjectReplicaList(ctx, projectId, locationId).Name(name).Execute()
List compute/replica
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
name := "name_example" // string | Filter by name (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaList(context.Background(), projectId, locationId).Name(name).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaList`: []Replica
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id |
Other parameters are passed through a pointer to a apiComputeProjectReplicaListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
name | string | Filter by name |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourceService ComputeProjectReplicaServiceGet(ctx, projectId, locationId, replicaId, serviceId).Execute()
Get compute/replica.service
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
serviceId := "serviceId_example" // string | serviceId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaServiceGet(context.Background(), projectId, locationId, replicaId, serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaServiceGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaServiceGet`: ResourceService
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaServiceGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id | |
| serviceId | string | serviceId |
Other parameters are passed through a pointer to a apiComputeProjectReplicaServiceGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResourceService ComputeProjectReplicaServiceList(ctx, projectId, locationId, replicaId).Execute()
List compute/replica.service
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaServiceList(context.Background(), projectId, locationId, replicaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaServiceList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaServiceList`: []ResourceService
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaServiceList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id |
Other parameters are passed through a pointer to a apiComputeProjectReplicaServiceListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Tag ComputeProjectReplicaTagCreate(ctx, projectId, locationId, replicaId).Tag(tag).Execute()
Create compute/replica.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
tag := *openapiclient.NewTag("Id_example", "Key_example", "Value_example") // Tag |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaTagCreate(context.Background(), projectId, locationId, replicaId).Tag(tag).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaTagCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaTagCreate`: Tag
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaTagCreate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id |
Other parameters are passed through a pointer to a apiComputeProjectReplicaTagCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
tag | Tag | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ComputeProjectReplicaTagDelete(ctx, projectId, locationId, replicaId, tagId).Execute()
Delete compute/replica.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
tagId := "tagId_example" // string | tagId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaTagDelete(context.Background(), projectId, locationId, replicaId, tagId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaTagDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id | |
| tagId | string | tagId |
Other parameters are passed through a pointer to a apiComputeProjectReplicaTagDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Tag ComputeProjectReplicaTagGet(ctx, projectId, locationId, replicaId, tagId).Execute()
Get compute/replica.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
tagId := "tagId_example" // string | tagId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaTagGet(context.Background(), projectId, locationId, replicaId, tagId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaTagGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaTagGet`: Tag
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaTagGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id | |
| tagId | string | tagId |
Other parameters are passed through a pointer to a apiComputeProjectReplicaTagGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Tag ComputeProjectReplicaTagList(ctx, projectId, locationId, replicaId).Execute()
List compute/replica.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaTagList(context.Background(), projectId, locationId, replicaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaTagList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaTagList`: []Tag
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaTagList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id |
Other parameters are passed through a pointer to a apiComputeProjectReplicaTagListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Tag ComputeProjectReplicaTagPut(ctx, projectId, locationId, replicaId).Tag(tag).Execute()
Replace compute/replica.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
locationId := "locationId_example" // string | Location Id
replicaId := "replicaId_example" // string | Replica Id
tag := []openapiclient.Tag{*openapiclient.NewTag("Id_example", "Key_example", "Value_example")} // []Tag |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ComputeProjectReplicaApi.ComputeProjectReplicaTagPut(context.Background(), projectId, locationId, replicaId).Tag(tag).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ComputeProjectReplicaApi.ComputeProjectReplicaTagPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ComputeProjectReplicaTagPut`: []Tag
fmt.Fprintf(os.Stdout, "Response from `ComputeProjectReplicaApi.ComputeProjectReplicaTagPut`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project Id | |
| locationId | string | Location Id | |
| replicaId | string | Replica Id |
Other parameters are passed through a pointer to a apiComputeProjectReplicaTagPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
tag | []Tag | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]