Skip to content

Oracle launch.json Template

Bradford edited this page Jan 29, 2025 · 1 revision

This is the template for the oci compute instance launch command, documented here.

Command used to generate:

oci compute instance launch --generate-full-command-json-input > launch.json

launch.json

{
  "agentConfig": {
    "areAllPluginsDisabled": true,
    "isManagementDisabled": true,
    "isMonitoringDisabled": true,
    "pluginsConfig": [
      {
        "desiredState": "string",
        "name": "string"
      },
      {
        "desiredState": "string",
        "name": "string"
      }
    ]
  },
  "assignIpv6Ip": true,
  "assignPrivateDnsRecord": true,
  "assignPublicIp": true,
  "availabilityConfig": {
    "isLiveMigrationPreferred": true,
    "recoveryAction": "string"
  },
  "availabilityDomain": "string",
  "bootVolumeSizeInGbs": 0,
  "capacityReservationId": "string",
  "clusterPlacementGroupId": "string",
  "compartmentId": "string",
  "computeClusterId": "string",
  "createVnicDetails": {
    "assignIpv6Ip": true,
    "assignPrivateDnsRecord": true,
    "assignPublicIp": true,
    "definedTags": {
      "tagNamespace1": {
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2"
      },
      "tagNamespace2": {
        "tagKey1": "tagValue1",
        "tagKey2": "tagValue2"
      }
    },
    "displayName": "string",
    "freeformTags": {
      "tagKey1": "tagValue1",
      "tagKey2": "tagValue2"
    },
    "hostnameLabel": "string",
    "ipv6AddressIpv6SubnetCidrPairDetails": [
      {
        "ipv6Address": "string",
        "ipv6SubnetCidr": "string"
      },
      {
        "ipv6Address": "string",
        "ipv6SubnetCidr": "string"
      }
    ],
    "nsgIds": [
      "string",
      "string"
    ],
    "privateIp": "string",
    "securityAttributes": {
      "string1": {
        "string1": {
          "string1": "string",
          "string2": "string"
        },
        "string2": {
          "string1": "string",
          "string2": "string"
        }
      },
      "string2": {
        "string1": {
          "string1": "string",
          "string2": "string"
        },
        "string2": {
          "string1": "string",
          "string2": "string"
        }
      }
    },
    "skipSourceDestCheck": true,
    "subnetId": "string",
    "vlanId": "string"
  },
  "dedicatedVmHostId": "string",
  "definedTags": {
    "tagNamespace1": {
      "tagKey1": "tagValue1",
      "tagKey2": "tagValue2"
    },
    "tagNamespace2": {
      "tagKey1": "tagValue1",
      "tagKey2": "tagValue2"
    }
  },
  "displayName": "string",
  "extendedMetadata": {
    "string1": {
      "string1": "string",
      "string2": "string"
    },
    "string2": {
      "string1": "string",
      "string2": "string"
    }
  },
  "faultDomain": "string",
  "freeformTags": {
    "tagKey1": "tagValue1",
    "tagKey2": "tagValue2"
  },
  "hostnameLabel": "string",
  "imageId": "string",
  "instanceConfigurationId": "string",
  "instanceOptions": {
    "areLegacyImdsEndpointsDisabled": true
  },
  "ipv6AddressSubnetCidrPairs": [
    {
      "ipv6Address": "string",
      "ipv6SubnetCidr": "string"
    },
    {
      "ipv6Address": "string",
      "ipv6SubnetCidr": "string"
    }
  ],
  "ipxeScriptFile": "/path/to/file",
  "isPvEncryptionInTransitEnabled": true,
  "launchOptions": {
    "bootVolumeType": "string",
    "firmware": "string",
    "isConsistentVolumeNamingEnabled": true,
    "isPvEncryptionInTransitEnabled": true,
    "networkType": "string",
    "remoteDataVolumeType": "string"
  },
  "maxWaitSeconds": 0,
  "metadata": {
    "string1": "string",
    "string2": "string"
  },
  "nsgIds": [
    "string",
    "string"
  ],
  "platformConfig": [
    "This parameter should actually be a JSON object rather than an array - pick one of the following object variants to use",
    {
      "areVirtualInstructionsEnabled": true,
      "configMap": {
        "string1": "string",
        "string2": "string"
      },
      "isAccessControlServiceEnabled": true,
      "isInputOutputMemoryManagementUnitEnabled": true,
      "isMeasuredBootEnabled": true,
      "isMemoryEncryptionEnabled": true,
      "isSecureBootEnabled": true,
      "isSymmetricMultiThreadingEnabled": true,
      "isTrustedPlatformModuleEnabled": true,
      "numaNodesPerSocket": "string",
      "type": "AMD_MILAN_BM_GPU"
    },
    {
      "areVirtualInstructionsEnabled": true,
      "configMap": {
        "string1": "string",
        "string2": "string"
      },
      "isAccessControlServiceEnabled": true,
      "isInputOutputMemoryManagementUnitEnabled": true,
      "isMeasuredBootEnabled": true,
      "isMemoryEncryptionEnabled": true,
      "isSecureBootEnabled": true,
      "isSymmetricMultiThreadingEnabled": true,
      "isTrustedPlatformModuleEnabled": true,
      "numaNodesPerSocket": "string",
      "percentageOfCoresEnabled": 0,
      "type": "AMD_MILAN_BM"
    },
    {
      "areVirtualInstructionsEnabled": true,
      "configMap": {
        "string1": "string",
        "string2": "string"
      },
      "isAccessControlServiceEnabled": true,
      "isInputOutputMemoryManagementUnitEnabled": true,
      "isMeasuredBootEnabled": true,
      "isMemoryEncryptionEnabled": true,
      "isSecureBootEnabled": true,
      "isSymmetricMultiThreadingEnabled": true,
      "isTrustedPlatformModuleEnabled": true,
      "numaNodesPerSocket": "string",
      "type": "AMD_ROME_BM_GPU"
    },
    {
      "areVirtualInstructionsEnabled": true,
      "configMap": {
        "string1": "string",
        "string2": "string"
      },
      "isAccessControlServiceEnabled": true,
      "isInputOutputMemoryManagementUnitEnabled": true,
      "isMeasuredBootEnabled": true,
      "isMemoryEncryptionEnabled": true,
      "isSecureBootEnabled": true,
      "isSymmetricMultiThreadingEnabled": true,
      "isTrustedPlatformModuleEnabled": true,
      "numaNodesPerSocket": "string",
      "percentageOfCoresEnabled": 0,
      "type": "AMD_ROME_BM"
    },
    {
      "isMeasuredBootEnabled": true,
      "isMemoryEncryptionEnabled": true,
      "isSecureBootEnabled": true,
      "isSymmetricMultiThreadingEnabled": true,
      "isTrustedPlatformModuleEnabled": true,
      "type": "AMD_VM"
    },
    {
      "areVirtualInstructionsEnabled": true,
      "configMap": {
        "string1": "string",
        "string2": "string"
      },
      "isAccessControlServiceEnabled": true,
      "isInputOutputMemoryManagementUnitEnabled": true,
      "isMeasuredBootEnabled": true,
      "isMemoryEncryptionEnabled": true,
      "isSecureBootEnabled": true,
      "isSymmetricMultiThreadingEnabled": true,
      "isTrustedPlatformModuleEnabled": true,
      "numaNodesPerSocket": "string",
      "percentageOfCoresEnabled": 0,
      "type": "GENERIC_BM"
    },
    {
      "configMap": {
        "string1": "string",
        "string2": "string"
      },
      "isInputOutputMemoryManagementUnitEnabled": true,
      "isMeasuredBootEnabled": true,
      "isMemoryEncryptionEnabled": true,
      "isSecureBootEnabled": true,
      "isSymmetricMultiThreadingEnabled": true,
      "isTrustedPlatformModuleEnabled": true,
      "numaNodesPerSocket": "string",
      "percentageOfCoresEnabled": 0,
      "type": "INTEL_ICELAKE_BM"
    },
    {
      "configMap": {
        "string1": "string",
        "string2": "string"
      },
      "isInputOutputMemoryManagementUnitEnabled": true,
      "isMeasuredBootEnabled": true,
      "isMemoryEncryptionEnabled": true,
      "isSecureBootEnabled": true,
      "isSymmetricMultiThreadingEnabled": true,
      "isTrustedPlatformModuleEnabled": true,
      "numaNodesPerSocket": "string",
      "percentageOfCoresEnabled": 0,
      "type": "INTEL_SKYLAKE_BM"
    },
    {
      "isMeasuredBootEnabled": true,
      "isMemoryEncryptionEnabled": true,
      "isSecureBootEnabled": true,
      "isSymmetricMultiThreadingEnabled": true,
      "isTrustedPlatformModuleEnabled": true,
      "type": "INTEL_VM"
    }
  ],
  "preemptibleInstanceConfig": {
    "preemptionAction": [
      "This parameter should actually be a JSON object rather than an array - pick one of the following object variants to use",
      {
        "preserveBootVolume": true,
        "type": "TERMINATE"
      }
    ]
  },
  "privateIp": "string",
  "shape": "string",
  "shapeConfig": {
    "baselineOcpuUtilization": "string",
    "memoryInGBs": 0.0,
    "nvmes": 0,
    "ocpus": 0.0,
    "vcpus": 0
  },
  "skipSourceDestCheck": true,
  "sourceBootVolumeId": "string",
  "sourceDetails": [
    "This parameter should actually be a JSON object rather than an array - pick one of the following object variants to use",
    {
      "bootVolumeId": "string",
      "sourceType": "bootVolume"
    },
    {
      "bootVolumeSizeInGBs": 0,
      "bootVolumeVpusPerGB": 0,
      "imageId": "string",
      "instanceSourceImageFilterDetails": {
        "compartmentId": "string",
        "definedTagsFilter": {
          "string1": {
            "string1": {
              "string1": "string",
              "string2": "string"
            },
            "string2": {
              "string1": "string",
              "string2": "string"
            }
          },
          "string2": {
            "string1": {
              "string1": "string",
              "string2": "string"
            },
            "string2": {
              "string1": "string",
              "string2": "string"
            }
          }
        },
        "operatingSystem": "string",
        "operatingSystemVersion": "string"
      },
      "kmsKeyId": "string",
      "sourceType": "image"
    }
  ],
  "sshAuthorizedKeysFile": "/path/to/file",
  "subnetId": "string",
  "userDataFile": "/path/to/file",
  "vnicDisplayName": "string",
  "waitForState": [
    "MOVING|PROVISIONING|RUNNING|STARTING|STOPPING|STOPPED|CREATING_IMAGE|TERMINATING|TERMINATED"
  ],
  "waitIntervalSeconds": 0
}

Clone this wiki locally