Go to Settings > System Topology > Map View and right-click the Application Server.
In the Edit Settings dialog box, go to Integration Services.
In the Edit Settings- Integration Services Endpoint Configuration configure the TCP/HTTPS/HTTP settings for integration services. You should only check the metadata enabled box during development phase. Otherwise, for security reasons, this option should be unchecked. A restart of the application server is required for the configuration to take effect.
Fill the following details in the Edit Settings- Integration Services Endpoint Configuration dialog box:
Enables the TCP/HTTPS/HTTP protocol if checked.
Symantec recommends the use of the HTTPS protocol for all the APIs for better security.
Enables the metadata if checked.
You must select the checkbox, if you want to use the Integration Services APIs over TCP or HTPPS or HTTP binding.
Lets you type the port number.
The default port for TCP is 1431.
The default port for HTTPS is 12431.
If you change the port number for the HTTPs, you must use the httpcfg (Windows 2003 ) or netsh (Windows 2008) to rebind the certificate to the new port.
Copy the code snippet (attached to this article) in the program.cs window and;
Make sure the Service Reference is included
Make sure the right username/password is provided
The query will search for the attribute "Display Name" i.e. as the assets are shown/isted in the CCS console.
That "Starts With" (operators available: Contains, EndsWith, EqualTo and StartsWith)
CCS in is the example, you could search for "mydomain\\123" - this would return all systems in the mydomain domain that start with 123, make sure to excape the special charecter \ with a \.
Last here is the output, none of the examples in the Control Compliance Suite API Reference Guide actually provide an output to a windows or console - that added "foreach" line of code actually prints what it found to the console.
Next step is to debug, click on the green arrow or press F5
All going well no errors or issues are returned.
Now you could change the bottom window from "debug" to"build" to see the output location and output binary.
Last - you could run the application to see the output.
As you can see, there were two assets that started with CCS in this particular CCS asset system.