HP Matrix Operating Environment Software manual Sample VisualStudio/.NET/C# Client

Page 82

XmlNode securityNode = headersNode.ChildNodes[1];

//change the timestamp token securityNode.FirstChild.FirstChild.InnerText =

String.Format("{0:s}", DateTime.Now);

securityNode.FirstChild.LastChild.InnerText = String.Format("{0:s}", DateTime.Now.AddMinutes(30));

//change the username token with username and password securityNode.LastChild.FirstChild.InnerText = "administrator"; securityNode.LastChild.ChildNodes[1].InnerText = "password";

//save the timestamp token and the username token xmlDoc.Save(

AppDomain.CurrentDomain.SetupInformation.ConfigurationFile);

//create object from the service proxy IOService.OClient wcfClient = new IOService.OClient();

//Trust the certificate ServicePointManager.ServerCertificateValidationCallback =

new RemoteCertificateValidationCallback( delegate

{

return true;

});

//call the IO API and write the returned version Console.WriteLine("The version: " + wcfClient.getVersion());

//call the IO API and write the returned template nnames Console.WriteLine("The templates:"); IOService.TemplateInfo[] template = wcfClient.listTemplates(); for (int i = 0; i < template.Length; i++)

{

Console.WriteLine(template[i].name);

}

}

catch (Exception ex)

{

Console.WriteLine(ex.Message);

}

Open the app.config file and find the endpoint tag inside client tag:

<endpoint address=" " binding="basicHttpBinding" bindingConfiguration="IOSoapBinding" contract="IOService.IO" name="IOSoapServicePort" >

//Paste the configurations in the following step here </endpoint>

Insert this content inside the endpoint tag from the previous step:

<headers>

<wsa:Action xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <wsa:To>https://127.0.0.1:51443/hpio/controller/soap/v5</wsa:To>

</wsa:Action>

<wsse:Security s:mustUnderstand="1" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

<wsu:Created></wsu:Created>

<wsu:Expires></wsu:Expires>

</wsu:Timestamp>

<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

<wsse:Username></wsse:Username>

<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"></wsse:Password>

<wsse:Nonce></wsse:Nonce>

</wsse:UsernameToken>

</wsse:Security>

</headers>

82 Sample VisualStudio/.NET/C# Client

Image 82
Contents API and CLI Operations Reference Guide Abstract7.1 Update 1 7.1Contents CMS Data Model Contents Exceptions Example UsageAccessing the Chargeback Web Service Interfaces Sample Java ClientRequiredParameterException Part I Matrix API Introduction Integration interface overview New features in 7.1 UpdateIntroduction PowerCycleLogicalServers New featuresNew features in 7.1 LogicalServerGroupDetails EditLogicalServers RemoveLogicalServersQuiesceCms UnquiesceCms GetCmsQuiesceStatus LogicalServerInfoRequestInfo ServiceInfoChargeback TemplateInfoCommand Line Interface Accessing the Web Service InterfacesAccessing Wsdl SecurityExportTemplate OperationsImportTemplate List TemplateInfoGetService ServiceListServices CreateServiceDeleteService DeactivateServiceChangeServiceLease ActivateServicePowerOffService Request PowerOnServiceDeleteReplicaService ListRequestsSetRequestApprovalState GetRequestInfoGetRequest ContinueRequestGetLogicalServerGroup CancelRequestLogical Server Group AddServersToLogicalServerGroupAddDiskToLogicalServerGroup AddNewDiskToLogicalServerGroupSetLogicalServerGroupActiveServerCount RawMappingTypeEnumLogicalServerInfo GetLogicalServerDeactivateLogicalServers LogicalServerDetailsActivateLogicalServers PowerOffLogicalServersPowerOnLogicalServers LogicalServerNotFound Exception Logical ServerRemoveLogicalServers PowerCycleLogicalServersEditLogicalServers ByteSizeEnumGetServerPool Server PoolListServerPools CreateServerPoolMoveServerToServerPool DeleteServerPoolAssignUsersToServerPool GetComputeServer ServerUnassignUsersFromServerPool GetVmHostSoftware SubnetListSanVolumeTemplates ListSanVolumesGetSanVolume GetSanVolumeTemplateGetOrganization OrganizationListOrganizations AssignTemplateToOrganizationUnassignServerFromOrganization By a Service Provider AdministratorAssignServerToOrganization OrganizationName Returns None ExceptionsUnassignSubnetFromOrganization AssignSubnetToOrganizationAssignSoftwareToOrganization UnassignSoftwareFromOrganization BeginCmsMaintenanceSyncOrganizations AddCms EndCmsMaintenanceCountRunningRequestsForCms QuiesceCmsListLoadBalancers LoadBalancerGetCmsQuiesceStatus AddLoadBalancerAddLoadBalancerCertificate SetLoadBalancerPasswordRemoveLoadBalancer RemoveLoadBalancerCertificateCreateLogicalLoadBalancerGroup UnsetLoadBalancerPasswordLogicalLoadBalancer DeleteLogicalLoadBalancerGroupRemoveLogicalLoadBalancerGroupMember FirewallRuleGroupAddLogicalLoadBalancerGroupMember GetFirewallRuleGroupSyncFirewallRuleGroups AddRuleToFirewallRuleGroupRemoveRuleFromFirewallRuleGroup Name AddRuleToFirewallRuleMoveFloatingIPAddress FloatingIPAddressAddFloatingIPAddress RemoveFloatingIPAddressListUnassociatedFloatingIPAddresses ServerSnapshotReleaseFloatingIPAddress ListServerSnapshotsRevertServerSnapshot CreateServerSnapshotDeleteServerSnapshot Snapshot, recursively. Defaults to false Data Model Data ModelCidrIpRange ByteSizeByteSizeEnum CmsQuiesceStateCostFrequencyEnum CostCostFrequency CustomAddressAssignmentTypeAttributeCustomSubnetBindingAttribute CustomStorageVolumeAttributeCustomProcessorAttribute CustomTemplateAttributesDeploymentServiceTypeEnum DeploymentServiceDeploymentServiceType DrModeFirewallRuleGroupDetails FirewallRuleFirewallRuleGroupInfo ImageTypeLeasePeriod IPTypeIPTypeEnum LoadBalancerInfoLogicalFirewallRuleGroup LogicalDiskLogicalIPAddress LogicalLoadBalancerGroupInfo LogicalLoadBalancerDetailsLogicalLoadBalancerGroupDetails LogicalLoadBalancerGroupMemberLogicalNetworkInterface LogicalLoadBalancerProtocolLogicalLoadBalancerProtocolEnum LogicalServerDetailsLogicalServerGroupInfo ServiceEntityStatus statusLogicalServerInfo LogicalSoftware LogicalSubnetNatEntry MessageSeverityMessageSeverityEnum NatTypeProcessorArchitecture PacketProtocolPacketProtocolEnum ProcessorArchitectureEnumRequestHistoryItemLevel RequestDetailsRequestHistoryItem RequestHistoryItemLevelEnumRequestType RequestStatusRequestStatusEnum RequestTypeEnumSanVolumeState SanVolumeSanVolumeStateEnum State cannot be determined SanVolumeTemplateServerPool IDs of the cloud capacity pools in the server poolServerPoolResourceNote ServiceActionServiceActionTrigger trigger ServerResourceServiceDetails ServiceActionTriggerServiceActionTriggerEnum ServiceEntityStatusSoftwareType ServiceInfoSoftwareDiskDefinition SoftwareTypeEnumStorageType StorageProvisioningTypeStorageProvisioningTypeEnum StorageTypeEnumVirtualizationType TemplateInfoVirtualizationTypeEnum VmHostDataStore VirtualSwitchVmHost WorkflowExceptions ServiceNotFoundException SanVolumeNotFoundExceptionSanVolumeTemplateNotFoundException OrganizationNotFoundExceptionTemplateNotFoundException SoftwareNotFoundExceptionSubnetNotFoundException UserNotFoundExceptionPhysical Server Maintenance Example Physical Server Maintenance ExampleExample Usage Sample Code Sample Java ClientSample Java Client Sample Code Sample Java Client IOClientPasswordHandler.java Sample Java Client Sample VisualStudio/.NET/C# Client Add this codeSample VisualStudio/.NET/C# Client String.Format0s, DateTime.NowPage Part II Chargeback API Chargeback Soap API Chargeback Soap APIAccessing the Chargeback Web Service Interfaces Accessing the Chargeback Web Service InterfacesHttps//cms-ip-address55443/hpio/chargeback/soap/v1?wsdl Summary Usage Report OperationsDetailed Usage Report Aggregated Usage Report List ServiceFilterOne entry with consolidated data for the entire period ServiceUsagePage Data Model FilterConnector enum ServiceFilterServiceFilterAttribute enum PeriodServerUsageSummary ServiceInformationResourceUsageSummary DiskUsageSummaryAggregateServiceUsage ServiceUsagePageServiceUsageSummary ServiceUsageDetailPageDiskUsageDetail IpAddressUsageDetailChargebackDataBaseException AuthenticationExceptionAuthorizationException ChargebackExceptionRequiredParameterException PeriodStartDateGreaterThanEndDateExceptionPeriodStartDateTooOldException PeriodStartDateGreaterThanEndDateExceptionSample Python Client Sample Python ClientPage Example 2 reports.py Pageindex =Page Sample Python Client 101 Sample Python Client Example 3 GUI.py 103Sample Python Client 105 Example 4 reportsfile.py Sample Chargeback Usage Report 107References ReferencesInformation to collect before contacting HP How to contact HPSupport and other resources Information to collect before contacting HPDocumentation feedback Warranty informationHP authorized resellers Subscribing to security bulletinsDocumentation and support Related informationRelated information
Related manuals
Manual 79 pages 57.42 Kb Manual 12 pages 7.25 Kb

Matrix Operating Environment Software specifications

HP Matrix Operating Environment (MOE) is an innovative software platform designed to deliver efficient management and orchestration of IT resources across physical, virtual, and cloud infrastructures. It provides a comprehensive solution for organizations that require a robust and flexible environment to manage their IT operations seamlessly.

One of the main features of HP MOE is its ability to optimize resource utilization by automating the provisioning and management of infrastructure components. This includes the ability to rapidly deploy servers, storage, and networking resources in a manner that meets the dynamic needs of modern businesses. This automation significantly reduces the time and effort required for manual configurations, enabling IT teams to focus on strategic initiatives rather than routine tasks.

The software offers a unified management interface that provides visibility into the entire IT environment. Users can monitor performance metrics, track resource allocation, and manage workflows through a single dashboard. This centralized control not only simplifies operations but also enhances decision-making capabilities by providing real-time insights into system health and performance.

Another critical characteristic of HP MOE is its support for both physical and virtual resources. The platform is designed to seamlessly integrate with existing infrastructure, making it easier for organizations to adopt virtualization and hybrid cloud strategies. Its compatibility with industry-standard hypervisors allows businesses to leverage their current investments while taking advantage of the benefits of virtualization.

HP MOE incorporates advanced technologies such as automation scripts, APIs, and tools for workload balancing. This technological backbone enables organizations to implement elasticity in their environments, allowing them to scale resources up or down based on demand. The software also supports a service-oriented architecture, facilitating integration with other enterprise applications and systems.

Security is a top priority in the design of HP MOE. The software provides robust security features that ensure data integrity and protect against unauthorized access. This includes role-based access controls, encryption, and compliance reporting, all of which contribute to a secure operating environment.

In summary, HP Matrix Operating Environment Software is a powerful solution that addresses the complexities of managing modern IT resources. Its key features include automation, unified management, support for physical and virtual environments, and strong security measures. With its ability to enhance efficiency and streamline operations, HP MOE is an essential tool for organizations looking to stay competitive in an increasingly digital landscape.