@@ -17,17 +17,17 @@ import (
17
17
func main () {
18
18
//session Inputs
19
19
// < IAM TOKEN >
20
- // token := ""
21
- region := "dal "
22
- zone := "dal10 "
23
- accountID := "efe5e8b9d3f04b948790fe5499bd18bc "
20
+ token := ""
21
+ region := " < REGION > "
22
+ zone := " < ZONE > "
23
+ accountID := " < ACCOUNT ID > "
24
24
url := region + ".power-iaas.test.cloud.ibm.com"
25
25
26
26
// volume inputs
27
27
rand .Seed (time .Now ().UnixNano ())
28
28
randomNumber := rand .Intn (100 ) + 1
29
29
randomNumber2 := rand .Intn (100 ) + 1
30
- piID := "a1a23e24-220d-4a20-a678-c8c5e84056bd "
30
+ piID := " < POWER INSTANCE ID > "
31
31
name := fmt .Sprintf ("power-go-test-volume-%d" , randomNumber )
32
32
name2 := fmt .Sprintf ("power-go-test-volume-%d" , randomNumber2 )
33
33
size := 20.0
@@ -44,14 +44,14 @@ func main() {
44
44
procType := "shared"
45
45
sysType := "s922"
46
46
47
- // authenticator := &core.BearerTokenAuthenticator{
48
- // BearerToken: token,
49
- // }
50
- authenticator := & core.IamAuthenticator {
51
- ApiKey : "PaBXQ7QI6AyBm86Bqo0C45o_6LmW9I76csCkWLojdZLQ" ,
52
- // Uncomment for test environment
53
- URL : "https://iam.test.cloud.ibm.com" ,
47
+ authenticator := & core.BearerTokenAuthenticator {
48
+ BearerToken : token ,
54
49
}
50
+ // authenticator := &core.IamAuthenticator{
51
+ // ApiKey: "< API KEY >",
52
+ // // Uncomment for test environment
53
+ // URL: "https://iam.test.cloud.ibm.com",
54
+ // }
55
55
// Create the session
56
56
options := & ps.IBMPIOptions {
57
57
Authenticator : authenticator ,
@@ -103,7 +103,7 @@ func main() {
103
103
log .Printf ("***************[3]****************** %+v\n " , * createRespOk2 )
104
104
105
105
volumeID2 := * createRespOk2 .VolumeID
106
- getResp2 , err := powerClientVolume .Get (volumeID )
106
+ getResp2 , err := powerClientVolume .Get (volumeID2 )
107
107
if err != nil {
108
108
log .Fatal (err )
109
109
}
0 commit comments