code: public static cmpaction get(nitro_service service, String name) throws Exception{
  		cmpaction obj = new cmpaction();
  		obj.set_name(name);
  		cmpaction response = (cmpaction) obj.get_resource(service);
  		return response;
  	}
docs: Use this API to fetch cmpaction resource of given name .