-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest
More file actions
57 lines (43 loc) · 1.69 KB
/
test
File metadata and controls
57 lines (43 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
vol --create AA00001-B00001-vol2 --perfpolicy "VMware ESX 5" --initiatorgrp AA00001-B00001 --multi_initiator yes --folder AA00001-B00001 --iops_limit 1000 --size 10240
Get-Datastore | Where-Object {$_.Name -match "tepri02"} | Select-Object -first 1 | Select -ExpandProperty Name
iqn.1998-01.com.vmware:nc2-esxi02-29ea59e5
curl -X PATCH 'https://aa00001-b00001-tepri02.gioprivate.biznetgio.net/api/appliance/local-accounts/root' -H 'vmware-api-session-id: ae3105ca5868601b364c97bac4d878a4' -H 'Content-type: application/json' -d '{ "password_expires": false }'
curl --location --request POST 'https://10.154.0.101/api/session' --header 'Authorization: Basic cm9vdDo0ZHkwQHBtUg=='
tenant%5Bname%3D%22".$tenantif[$i]."%22%5D
0a1449e0eb9d23069c000000000000000000000001
curl --location --request POST 'https://10.150.0.20:5392/v1/initiator_groups/' \
--header 'X-Auth-Token: a2aa529d36482fb1c9ea0c2407ebf41a' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"access_protocol": "iscsi",
"host_type": "auto",
"iscsi_initiators": null,
"name": "test2",
"target_subnets": [
{
"id": "1a1449e0eb9d23069c000000000000000000000029",
"label": "aa00001-b00001"
}
]
}
}'
{
"data": {
"name": "AA00001-B00001-vol1",
"perfpolicy_id": "031449e0eb9d23069c00000000000000000000000a",
"size": 10240,
"limit_iops": 1000,
"multi_initiator": true,
"description": "AA00001-B00001"
}
}
https://10.150.0.20:5392/v1/volumes/
X-Auth-Token
https://10.150.0.20:5392/v1/tokens
{
"data":{
"username": "portal",
"password": "Sementara123!"
}
}