Create a system with PAYGO
You can use this workflow to create a new Google Cloud Cloud Volumes ONTAP system 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 a system for a single node
You can use this workflow to create a single node system with PAYGO subscription.
1. Select the region
Perform the workflow Get regions and do the following:
-
Choose the
namevalue of the required region for theregionparameter in step 8. -
Choose one of the VPCs. Choose
nameforvpcIdparameter andsubnets: pathforsubnetIdandsubnetPathparameters 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
nameforpackageNameparameter in step 8. -
Choose the
diskSizeforgcpVolumeSizein step 8. -
Choose the
diskTypeandwritingSpeedStatefor thegcpVolumeTypeandwritingSpeedStateparameters 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 NetApp Console 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
idvalue of the required NSS user.
8. Create the system
| HTTP method | Path |
|---|---|
POST |
/occm/api/gcp/vsa/working-environments |
- curl example
curl --location --request POST 'https://api.bluexp.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 a system for a high availability pair
You can use this workflow to create an HA system with PAYGO subscription.
1. Select the region
Perform the workflow Get regions and do the following:
-
Choose the
namevalue of the required region for theregionparameter in step 8. -
Choose one of the VPCs. Choose
nameforvpcIdparameter andsubnets: pathforsubnetIdandsubnetPathparameters 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
namefor thevpcIdparameter,subnets: pathforsubnetIdandsubnetPath,ha: subnet0NodeAndDataConnectivityparameters andvpcPathfor thevpc0NodeAndDataConnectivityparameter. -
Choose the second vpc and select the
vpcPathforvpc1ClusterConnectivityparameter andsubnets: pathforsubnet1ClusterConnectivityparameter. -
Choose the third vpc and select the
vpcPathforpc2HAConnectivityparameter andsubnets: pathforsubnet2HAConnectivityparameter. -
Choose the fourth vpc and select the
vpcPathforvpc3DataReplicationparameter andsubnets: pathforsubnet3DataReplicationparameter.
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
nameforpackageNameparameter. -
Choose the
diskSizeforgcpVolumeSize. -
Choose the
diskTypeandwritingSpeedStatefor thegcpVolumeTypeandwritingSpeedStateparameters.
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 Console 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
idvalue of the required NSS user.
9. Create the system
| HTTP method | Path |
|---|---|
POST |
/occm/api/gcp/ha/working-environments |
- curl example
curl --location --request POST 'https://api.bluexp.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
}