Package com.morpheusdata.core.providers
Interface IacResourceMappingProvider
- All Superinterfaces:
PluginProvider
Provides methods for interacting Infrastructure as Code provisioning via Morpheus, e.g. the Terraform provision type
- Since:
- 0.15.10
-
Method Summary
Modifier and TypeMethodDescriptionProvides a list of string codes for provision types that this plug supports mapping and provisioning for, e.g "terraform"resolveContainer
(Workload workload, AccountResource resource, Map resourceResult, String iacProvider, String iacProviderType, String iacType) Deprecated.resolveInstance
(Instance instance, AccountResource resource, Map resourceResult, String iacProvider, String iacProviderType, String iacType) Handles mapping an IaC resource to a Morpheus Instance.resolveWorkload
(Workload workload, AccountResource resource, Map resourceResult, String iacProvider, String iacProviderType, String iacType) Handles mapping an IaC resource to a Morpheus Workload.Methods inherited from interface com.morpheusdata.core.providers.PluginProvider
getCode, getMorpheus, getName, getPlugin, isPlugin
-
Method Details
-
getIacProvisionTypeCodes
Provides a list of string codes for provision types that this plug supports mapping and provisioning for, e.g "terraform"- Returns:
- A list of ProvisionType codes
- Since:
- 0.15.3
-
resolveInstance
ServiceResponse<InstanceResourceMappingResponse> resolveInstance(Instance instance, AccountResource resource, Map resourceResult, String iacProvider, String iacProviderType, String iacType) Handles mapping an IaC resource to a Morpheus Instance. Should set externalId on all instance servers as well as any other fields desired- Parameters:
instance
- The MorpheusInstance
to updateresource
- The MorpheusAccountResource
for referenceresourceResult
- The response from the IaC serviceiacProvider
- The IaC provider, e.g. terraformiacProviderType
- The IaC provider type, e.g. awsiacType
- The IaC type, e.g. aws_instance- Returns:
- A ServiceResponse with a
WorkloadResourceMappingResponse
as the data - Since:
- 0.15.10
-
resolveWorkload
ServiceResponse<WorkloadResourceMappingResponse> resolveWorkload(Workload workload, AccountResource resource, Map resourceResult, String iacProvider, String iacProviderType, String iacType) Handles mapping an IaC resource to a Morpheus Workload. Should set externalId the workload server as well as any other fields desired- Parameters:
workload
- The MorpheusWorkload
to updateresource
- The MorpheusAccountResource
for referenceresourceResult
- The response from the IaC serviceiacProvider
- The IaC provider, e.g. terraformiacProviderType
- The IaC provider type, e.g. awsiacType
- The IaC type, e.g. aws_instance- Returns:
- A ServiceResponse with a
WorkloadResourceMappingResponse
as the data - Since:
- 0.15.11
-
resolveContainer
@Deprecated default ServiceResponse<WorkloadResourceMappingResponse> resolveContainer(Workload workload, AccountResource resource, Map resourceResult, String iacProvider, String iacProviderType, String iacType) Deprecated.Handles mapping an IaC resource to a Morpheus Workload. Should set externalId the workload server as well as any other fields desired- Parameters:
workload
- The MorpheusWorkload
to updateresource
- The MorpheusAccountResource
for referenceresourceResult
- The response from the IaC serviceiacProvider
- The IaC provider, e.g. terraformiacProviderType
- The IaC provider type, e.g. awsiacType
- The IaC type, e.g. aws_instance- Returns:
- A ServiceResponse with a
WorkloadResourceMappingResponse
as the data - Since:
- 0.15.10
-
resolveWorkload(Workload workload, AccountResource resource, Map resourceResult, String iacProvider, String iacProviderType, String iacType)
instead