Skip to content

Commit d557447

Browse files
authored
chore(examples): use eu01 as example value for region (#3665)
1 parent b5dc18d commit d557447

File tree

33 files changed

+45
-66
lines changed

33 files changed

+45
-66
lines changed

examples/auditlog/auditlog.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ import (
1313
)
1414

1515
func main() {
16-
// Specify the project ID, startTime and endTime
17-
projectId := "PROJECT_ID"
18-
startTime := time.Now().Add(-time.Hour * 24)
19-
endTime := time.Now()
20-
limit := float32(100) // set pagination limit to avoid rate limit
16+
projectId := "PROJECT_ID" // the uuid of your STACKIT project
17+
startTime := time.Now().Add(-time.Hour * 24) // your start time
18+
endTime := time.Now() // your end time
19+
limit := float32(100) // set pagination limit to avoid rate limit
2120

2221
// Create a new API client, that uses default authentication and configuration
2322
auditlogClient, err := auditlog.NewAPIClient()

examples/authentication/authentication.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import (
1010
)
1111

1212
func main() {
13+
projectId := "PROJECT_ID" // the uuid of your STACKIT project
14+
1315
// When creating a new API client without providing any configuration, it will setup default authentication.
1416
// The SDK will search for a valid service account key or token in several locations.
1517
// It will first try to use the key flow, by looking into the variables STACKIT_SERVICE_ACCOUNT_KEY, STACKIT_SERVICE_ACCOUNT_KEY_PATH,
@@ -53,7 +55,7 @@ func main() {
5355
}
5456

5557
// Check that you can make an authenticated request
56-
getZoneResp, err := dnsClient.ListZones(context.Background(), "PROJECT_ID").Execute()
58+
getZoneResp, err := dnsClient.ListZones(context.Background(), projectId).Execute()
5759

5860
if err != nil {
5961
fmt.Fprintf(os.Stderr, "[DNS API] Error when calling `ZoneApi.GetZones`: %v\n", err)

examples/authorization/authorization.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import (
1010
)
1111

1212
func main() {
13-
// Specify the project ID
14-
projectId := "PROJECT_ID"
13+
projectId := "PROJECT_ID" // the uuid of your STACKIT project
1514
yourEmail := "your-email@example.com"
1615
emailToBeAdded := "email@example.com"
1716

examples/backgroundrefresh/backgroundrefresh.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import (
1111
)
1212

1313
func main() {
14-
// Specify the project ID
15-
projectId := "PROJECT_ID"
14+
projectId := "PROJECT_ID" // the uuid of your STACKIT project
1615

1716
// Create a cancellable context
1817
ctx := context.Background()

examples/dns/dns.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import (
1010
)
1111

1212
func main() {
13-
// Specify the project ID
14-
projectId := "PROJECT_ID"
13+
projectId := "PROJECT_ID" // the uuid of your STACKIT project
1514

1615
// Create a new API client, that uses default authentication and configuration
1716
dnsClient, err := dns.NewAPIClient()

examples/iaas/attach_nic/attach_nic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
func main() {
1616
// Specify the organization ID and project ID
17-
projectId := "PROJECT_ID"
17+
projectId := "PROJECT_ID" // the uuid of your STACKIT project
1818
serverId := "SERVER_ID"
1919
nicId := "NIC_ID"
2020

examples/iaas/attach_public_ip/attach_public_ip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
func main() {
1616
// Specify the organization ID and project ID
17-
projectId := "PROJECT_ID"
17+
projectId := "PROJECT_ID" // the uuid of your STACKIT project
1818
serverId := "SERVER_ID"
1919
publicIpId := "PUBLIC_IP_ID"
2020

examples/iaas/attach_security_group/attach_security_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
func main() {
1616
// Specify the organization ID and project ID
17-
projectId := "PROJECT_ID"
17+
projectId := "PROJECT_ID" // the uuid of your STACKIT project
1818
serverId := "SERVER_ID"
1919
securityGroupId := "SECURITY_GROUP_ID"
2020

examples/iaas/attach_service_account/attach_service_account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
func main() {
1616
// Specify the organization ID and project ID
17-
projectId := "PROJECT_ID"
17+
projectId := "PROJECT_ID" // the uuid of your STACKIT project
1818
serverId := "SERVER_ID"
1919
serviceAccountMail := "SERVICE_ACCOUNT_MAIL"
2020

examples/iaas/attach_volume/attach_volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
func main() {
1414
// Specify the organization ID and project ID
15-
projectId := "PROJECT_ID"
15+
projectId := "PROJECT_ID" // the uuid of your STACKIT project
1616
serverId := "SERVER_ID"
1717
volumeId := "VOLUME_ID"
1818

0 commit comments

Comments
 (0)