Example: Automating service requests to create a bucket in Google Cloud Platform
Task 1: To create a Google Cloud Platform connector
- Log in to BMC Helix Innovation Suite.
- On the Administration tab, click Connectors.
- Select Connectors > Google Cloud Platform, and click Add new setting.
Complete the following fields:
Field
Description
Connection Id
Connection ID for the connection.
Name
Name for the connection.
Project Id
Unique identifier of the GCP project.
Client Email
Email address of the associated service account. The service account represents an application.
Client Id
Unique identifier that you get when you register your application with GCP.
Private Key
Cryptographic key that is used to authenticate a service account when the key interacts with GCP services.
Private Key Id
Unique identifier for the private key. It is a key file in JSON format.
- Click Save.
Task 2: To verify that the Google Cloud Create Bucket service is visible
- Log in to BMC Helix Digital Workplace Catalog.
- On the Services tab, click Services.
- In the My Services tab, verify that the Google Cloud Create Bucket service is visible.
Task 3: To define the Google Cloud Create Bucket service workflow
- Log in to BMC Helix Digital Workplace Catalog.
- On the Services tab, click Services.
- In the My Services tab, select the Google Cloud Create Bucket service.
- Click Actions and click Open.
- Under the Service Options pane, click Edit next to the Workflow option.
- In the Workflow and Questions pane, in the Workflow section, click Edit.
The following workflow is displayed in the Workflow designer. It uses the Create GCP Bucket element. - Map the input variables to the service questionnaire so that the user responses to service questions are used as variable values.
The following input variables are available: - Save the changes.
Task 4: To define the Google Cloud Create Bucket service questionnaire
- Log in to BMC Helix Digital Workplace Catalog.
- On the Services tab, click Services.
- In the My Services tab, select the Google Cloud Create Bucket service.
- Click Actions and click Open.
- Under the Service Options pane, click Edit next to the Workflow option.
In the Workflow and Questions pane, in the Questions section, click Edit.
The following questions are displayed in the Questions Designer:Questions
Description
Project Id
The unique identifier of the GCP project.
Bucket Name
A unique name of the bucket that you want to create.
Region
The name of the region in which you want to create the bucket.
Dual Regions
A specific pair of locations that you can select based on the region.
Storage Class Name
The type of bucket you want to create based on the data storage duration and access frequency.
Prevent Public Access
The option to prevent the public from using your storage bucket.
- True—Prevent public access
- False—Allow public access
Uniform Access Control
The option to decide the access control permission for the bucket.
The possible values are:
- Uniform—The object access is controlled through bucket-level permission.
- Fine grained—The object access is controlled through bucket-level and object-level permission.
Max Number of Versions Per Object
The number of versions you can have for every object in your bucket.
Expire Non-Current Versions After Days
(If Maximum Number of Versions Per Object is not selected) The duration to keep the objects in your bucket.
Retention Policy Duration
Select the retention policy parameters only if you have not selected Maximum Number of Versions Per Object.
The duration to keep the objects in your bucket.
Retention Policy Unit
The unit of measurement for the retention policy duration.
The possible values are: seconds, minutes, hours, days, months, years.
- If you have added additional input variables in the workflow to receive inputs from the service requester, add questions that correspond to the variables.
- Save the changes.
Task 5: To publish the Google Cloud Create Bucket service
- Log in to BMC Helix Digital Workplace Catalog.
- On the Services tab, click Services.
- In the My Services tab, select the Google Cloud Create Bucket service.
- Click Actions and click Open.
- Under the Service Options pane, click
, and click Publish.
After you publish the service, the service is available to users.
Task 6: To test the Google Cloud Create Bucket service
- Log in to BMC Helix Digital Workplace application.
- Submit a bucket creation request by using the Google Cloud Create Bucket service.
Result
The Google Cloud Create Bucket service is available to users. Users can submit Google bucket creation requests, which are processed automatically.