display_name="some hpc instance name", shape="BM.HPC2.36", source_details=InstanceConfigurationInstanceSourceViaImageDetails( image_id=args.image_id ), create_vnic_details=InstanceConfigurationCreateVnicDetails() ) instance_details = ComputeInstanceDetails( launch_details=launch_details, block_volumes=[ _create_block_volume_details(args.compartment_id, args.availability_domain) ]) create_instance_config_details = CreateInstanceConfigurationDetails( display_name="sample instance config name", compartment_id=args.compartment_id, instance_details=instance_details) try: # Creates an hpc instance configuration to use with cluster network instance_config = compute_management_client.create_instance_configuration( create_instance_config_details).data print("Created instanceConfiguration: ", instance_config) # Creates a placement configuration to be used when creating a pool placement_config = \ ClusterNetworkPlacementConfigurationDetails() placement_config.availability_domain = args.availability_domain placement_config.primary_subnet_id = args.subnet_id instance_pool_def = CreateClusterNetworkInstancePoolDetails()
compartment_id=args.compartment_id, display_name="some instance name", shape="VM.Standard2.1", source_details=InstanceConfigurationInstanceSourceViaImageDetails( image_id=args.image_id), create_vnic_details=InstanceConfigurationCreateVnicDetails()) instance_details = ComputeInstanceDetails(launch_details=launch_details, block_volumes=[ _create_block_volume_details( args.compartment_id, args.availability_domain) ]) create_instance_config_details = CreateInstanceConfigurationDetails( display_name="instance config from input", compartment_id=args.compartment_id, instance_details=instance_details) launch_instance_details = InstanceConfigurationLaunchInstanceDetails( availability_domain=args.availability_domain, create_vnic_details=InstanceConfigurationCreateVnicDetails( subnet_id=args.subnet_id)) try: # Creates an instance configuration from input instance_config = compute_management_client.create_instance_configuration( create_instance_config_details).data print("Created instanceConfiguration: ", instance_config) instance = compute_management_client.launch_instance_configuration( instance_configuration_id=instance_config.id,