The Now Platform® Washington DC release is live. Watch now!
on 08-04-2019 04:01 PM
By default, CMP shows a set of CI classes in the end user portal. Sometimes, we might want to show more classes in there.
This article shows how you can add more.
Get to the Resource Type list table “sn_capi_resource_type”. https://your_server/sn_capi_resource_type_list.do
Let us say that we want to show the 'AWS Datacenter' class in the end user portal.
Search for the CI class in the that table.
Look for the ‘Service Category’ and ‘Visible’ column. Make sure the 'Service Category' is set to an appropriate value. In this case we can set it to 'Compute'. Set the 'Visible' to true.
Now go to User Portal ==> Stacks ==> Resources. You will see that the ‘AWS Datacenter’ will now show up.
It will show those 'AWS Datacenter' records to which the user has access to. If the is a non-admin user, then unless the record is assigned to her, no records will show up. The user needs to be the assinged_to for that record or be a group admin. If the user is an admin, then all the aws datacenter records will show up.
In a similar way, any CI class can be displayed here.
In some cases the CI class is a new one. Follow the same step and you might have to create the record in the sn_capi_resource_type table as well.
Hi Ashok,
Thank you for this Post. however, just take an example of AWS datacenter, it is not cloud agnostic table and what if customer is only using Cloud user portal for Azure cloud provider then what is the use of showing AWS datacenter table. because the way, you provided steps, it is always visible on Cloud user portal no matter table is used for AWS, Azure or Google.
The CI class need not be cloud agnostic. It can be specific CI classes as well.
By showing the aws datacenters here, the next steps could be that we can show additional Day-2 operations that can be performed. Like adding tags to a set of VMs belonging to that datacenter.
Basically, showing comes first. then comes Day-2 ops on it.
Hi Jain,
Am planning to do a follow up with a another article on a day-2 operation on a AWS Region which would tag multiple resources.
Thanks for the comments. Keep it coming. It will keep us in solving your problems better.
regards
Ashok Madhavan
Hi Ashok,
When I'm setting the Service Category to Compute and unfortunately the system is still showing it as empty. I tried by setting the AWS Datacenter Resource block to draft mode but still, the Service Category is set to empty. I even changed the scope of the application from Cloud Management to Cloud API Application.
Could you please help me?
The scope should be Cloud API as this record is in Cloud API scope.
Open up that record (https://itomgcp2.service-now.com/sn_capi_resource_type.do?sys_id=6ccf2188eb81320047f6a5115206fec5) and set the 'Product' to 'AWS Elastic Compute Cloud' and then save.
The Product selection would set the service category for you.
regards
Ashok Madhavan
Working. Thanks
Is there any possibility to know which AWS accounts these locations belongs to? Since the Portal shows the Location Name, we are unable to find which AWS account this Location belongs to perform start/stop