Create a working environment with PAYGO
You can use this workflow to create a new Google Cloud Cloud Volumes ONTAP working environment using a pay-as-you-go (PAYGO) subscription.
When using PAYGO subscription:
|
Choose the workflow to use based on the type of Cloud Volumes ONTAP deployment:
Create working environment for single node
You can use this workflow to create a single node working environment with PAYGO subscription.
1. Select the region
Perform the workflow Get regions and do the following:
-
Choose the
name
value of the required region for theregion
parameter in step 8. -
Choose one of the VPCs. Choose
name
forvpcId
parameter andsubnets: path
forsubnetId
andsubnetPath
parameters in step 8.
2. Select the workspace
Perform the workflow Get tenants and choose the workspacePublicId
value for the tenantId
parameter in step 8.
3. Select the project
Perform the workflow Get projects and choose the projectId
value of the required project for project
parameter in step 8.
4. Select the permutations
Perform the workflow Get permutations and choose the ontapVersion
, license: type
, and instanceType
values of the required vsaMetadata
parameter in step 8.
5. Select the packages configuration
Perform the workflow Get packages and search the licenseType
from the various permutations of packages configuration values:
-
Choose the
name
forpackageName
parameter in step 8. -
Choose the
diskSize
forgcpVolumeSize
in step 8. -
Choose the
diskType
andwritingSpeedState
for thegcpVolumeType
andwritingSpeedState
parameters in step 8.
6. Select the service account
Perform the workflow Get service accounts workflow and choose the email
value of the required service accounts for the gcpServiceAccount
parameter in step 8.
7. (Optional) Obtain an NSS key
An NSS key is optional when using PAYGO subscription. If needed, you can create a key or select an existing key, and include the NSS key in the nssAccount
parameter in step 8.
-
To create a new NSS key using the BlueXP web user interface, perform the task Generate NSS user ID and choose the
id
. -
To select an existing NSS key, perform the Get NSS keys workflow and choose the
id
value of the required NSS user.
8. Create the working environment
HTTP method | Path |
---|---|
POST |
/occm/api/gcp/vsa/working-environments |
- curl example
curl --location --request POST 'https://cloudmanager.cloud.netapp.com/occm/api/gcp/vsa/working-environments' --header 'x-agent-id: <AGENT_ID>' --header 'Authorization: Bearer <ACCESS_TOKEN>' ---header 'Content-Type: application/json' --d @JSONinput
- Input
-
The JSON input example includes the minimum list of parameters.
This request uses PAYGO as indicated in the licenseType parameter.
|
- JSON input example
{
"name": "zivgcp01we03",
"svmPassword": "password",
"vpcId": "default",
"region": "us-west1-b",
"tenantId": "tenantID",
"subnetPath": "projects/occm-dev/regions/us-west1/subnetworks/default",
"subnetId": "projects/occm-dev/regions/us-west1/subnetworks/default",
"dataEncryptionType": "GCP",
"vsaMetadata": {
"ontapVersion": "ONTAP-9.9.0X4.T1.gcp",
"licenseType": "gcp-cot-explore-paygo",
"instanceType": "custom-4-16384"
},
"gcpVolumeSize": {
"size": 100,
"unit": "GB"
},
"gcpVolumeType": "pd-ssd",
"gcpLabels": [],
"writingSpeedState": "NORMAL",
"packageName": "gcp_poc",
"gcpServiceAccount": "xxxxx@occm-dev.iam.xxx.com",
"project": "occm-dev",
"backupVolumesToCbs": false
}
- JSON output example
{
"publicId": "vsaworkingenvironment-2qkd75xv",
"name": "zivgcp01we03",
"tenantId": "tenantIDshownhere",
"svmName": "svm_zivgcp01we03",
"creatorUserEmail": "user_email",
"status": null,
"providerProperties": null,
"reservedSize": null,
"clusterProperties": null,
"ontapClusterProperties": null,
"cloudProviderName": "GCP",
"snapshotPolicies": null,
"actionsRequired": null,
"activeActions": null,
"replicationProperties": null,
"schedules": null,
"svms": null,
"workingEnvironmentType": "VSA",
"supportRegistrationProperties": null,
"supportRegistrationInformation": null,
"capacityFeatures": null,
"encryptionProperties": null,
"supportedFeatures": null,
"isHA": false,
"haProperties": null,
"k8sProperties": null,
"fpolicyProperties": null,
"saasProperties": null,
"cbsProperties": null,
"complianceProperties": null,
"monitoringProperties": null
}
Create working environment for high availability pair
You can use this workflow to create an HA working environment with PAYGO subscription.
1. Select the region
Perform the workflow Get regions and do the following:
-
Choose the
name
value of the required region for theregion
parameter in step 8. -
Choose one of the VPCs. Choose
name
forvpcId
parameter andsubnets: path
forsubnetId
andsubnetPath
parameters in step 9.
2. Select the workspace
Perform the workflow Get tenants and choose the workspacePublicId
value for the tenantId
parameter in step 9.
3. Select the project
Perform the workflow Get projects and choose the projectId
value of the required project for project
parameter in step 9.
4. Select the VPC
Perform the Get vpcs workflow and do the following:
-
Choose one of the vpcs. Choose the
name
for thevpcId
parameter,subnets: path
forsubnetId
andsubnetPath
,ha: subnet0NodeAndDataConnectivity
parameters andvpcPath
for thevpc0NodeAndDataConnectivity
parameter. -
Choose the second vpc and select the
vpcPath
forvpc1ClusterConnectivity
parameter andsubnets: path
forsubnet1ClusterConnectivity
parameter. -
Choose the third vpc and select the
vpcPath
forpc2HAConnectivity
parameter andsubnets: path
forsubnet2HAConnectivity
parameter. -
Choose the fourth vpc and select the
vpcPath
forvpc3DataReplication
parameter andsubnets: path
forsubnet3DataReplication
parameter.
5. Select the permutations
Perform the workflow Get permutations and choose the ontapVersion
, license: type
, and instanceType
values of the required vsaMetadata
parameter in step 9.
6. Select the packages configuration
Perform the workflow Get packages and search the licenseType
from permutations:
-
Choose the
name
forpackageName
parameter. -
Choose the
diskSize
forgcpVolumeSize
. -
Choose the
diskType
andwritingSpeedState
for thegcpVolumeType
andwritingSpeedState
parameters.
7. Select the service account
Perform the workflow Get service accounts workflow and choose the email
value of the required service accounts for the gcpServiceAccount
parameter in step 9.
8. (Optional) Obtain an NSS key
An NSS key is optional when using PAYGO subscription. If needed, you can create a key or select an existing key, and include the NSS key in the nssAccount
parameter in step 9.
-
To create a new NSS key using the BlueXP web user interface, perform the task Generate NSS user ID and choose the
id
. -
To select an existing NSS key, perform the Get NSS keys workflow and choose the
id
value of the required NSS user.
9. Create the working environment
HTTP method | Path |
---|---|
POST |
/occm/api/gcp/ha/working-environments |
- curl example
curl --location --request POST 'https://cloudmanager.cloud.netapp.com/occm/api/gcp/ha/working-environments' --header 'x-agent-id: <AGENT_ID>' //<1> --header 'Authorization: Bearer <ACCESS_TOKEN>' //<2> ---header 'Content-Type: application/json' --d @JSONinput
(1) Replace <AGENT_ID> with your agent ID.
(2) Replace <ACCESS_TOKEN> with your obtained bearer access token.
- Input
-
The JSON input example includes the minimum list of parameters.
This request uses PAYGO as indicated in the licenseType parameter.
|
- JSON input example
{
"name": "ziv01we02ha",
"svmPassword": "password",
"vpcId": "default",
"region": "us-west1-a",
"tenantId": "workspace-ced4x9X4",
"subnetPath": "projects/occm-dev/regions/us-west1/subnetworks/default",
"subnetId": "projects/occm-dev/regions/us-west1/subnetworks/default",
"dataEncryptionType": "GCP",
"vsaMetadata": {
"ontapVersion": "ONTAP-9.9.0X5.T1.gcpha",
"licenseType": "gcp-ha-cot-explore-paygo",
"instanceType": "custom-4-16384"
},
"gcpVolumeSize": {
"size": 100,
"unit": "GB"
},
"gcpVolumeType": "pd-ssd",
"gcpLabels": [],
"writingSpeedState": "NORMAL",
"packageName": "gcp_ha_poc",
"gcpServiceAccount": "xxxx@occm-dev.iam.gserviceaccount.com",
"project": "occm-dev",
"haParams": {
"node1Zone": "us-west1-a",
"node2Zone": "us-west1-b",
"mediatorZone": "us-west1-c",
"vpc0NodeAndDataConnectivity": "projects/occm-dev/global/networks/default",
"vpc1ClusterConnectivity": "projects/occm-dev/global/networks/vpc4qa-2",
"vpc2HAConnectivity": "projects/occm-dev/global/networks/vpc4qa-3",
"vpc3DataReplication": "projects/occm-dev/global/networks/vpc4qa-4",
"subnet0NodeAndDataConnectivity": "projects/occm-dev/regions/us-west1/subnetworks/default",
"subnet1ClusterConnectivity": "projects/occm-dev/regions/us-west1/subnetworks/vpc4qa-2-us-west1",
"subnet2HAConnectivity": "projects/occm-dev/regions/us-west1/subnetworks/vpc4qa-3-us-west1",
"subnet3DataReplication": "projects/occm-dev/regions/us-west1/subnetworks/vpc4qa-4-us-west1"
}
}
- JSON output example
{
"publicId": "vsaworkingenvironment-blg9ei6u",
"name": "ziv01we02ha",
"tenantId": "Tenant-xxxvvv",
"svmName": "svm_ziv01we02ha",
"creatorUserEmail": "user_email",
"status": null,
"providerProperties": null,
"reservedSize": null,
"clusterProperties": null,
"ontapClusterProperties": null,
"cloudProviderName": "GCP",
"snapshotPolicies": null,
"actionsRequired": null,
"activeActions": null,
"replicationProperties": null,
"schedules": null,
"svms": null,
"workingEnvironmentType": "VSA",
"supportRegistrationProperties": null,
"supportRegistrationInformation": null,
"capacityFeatures": null,
"encryptionProperties": null,
"supportedFeatures": null,
"isHA": true,
"haProperties": null,
"k8sProperties": null,
"fpolicyProperties": null,
"saasProperties": null,
"cbsProperties": null,
"complianceProperties": null,
"monitoringProperties": null
}