pulumi-harness 0.8.0a1755712204__py3-none-any.whl → 0.8.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-harness might be problematic. Click here for more details.
- pulumi_harness/__init__.py +75 -0
- pulumi_harness/add_user_to_group.py +4 -0
- pulumi_harness/application.py +4 -0
- pulumi_harness/application_git_sync.py +4 -0
- pulumi_harness/chaos/__init__.py +21 -0
- pulumi_harness/chaos/_inputs.py +2702 -0
- pulumi_harness/chaos/get_hub.py +324 -0
- pulumi_harness/chaos/get_image_registry.py +339 -0
- pulumi_harness/chaos/get_infrastructure_v2.py +684 -0
- pulumi_harness/chaos/get_security_governance_condition.py +261 -0
- pulumi_harness/chaos/get_security_governance_rule.py +261 -0
- pulumi_harness/chaos/hub.py +806 -0
- pulumi_harness/chaos/hub_sync.py +274 -0
- pulumi_harness/chaos/image_registry.py +730 -0
- pulumi_harness/chaos/infrastructure_v2.py +1670 -0
- pulumi_harness/chaos/outputs.py +2276 -0
- pulumi_harness/chaos/security_governance_condition.py +795 -0
- pulumi_harness/chaos/security_governance_rule.py +688 -0
- pulumi_harness/chaos_infrastructure.py +10 -4
- pulumi_harness/cloudprovider/aws.py +4 -0
- pulumi_harness/cloudprovider/azure.py +4 -0
- pulumi_harness/cloudprovider/datacenter.py +4 -0
- pulumi_harness/cloudprovider/kubernetes.py +4 -0
- pulumi_harness/cloudprovider/spot.py +4 -0
- pulumi_harness/cloudprovider/tanzu.py +4 -0
- pulumi_harness/cluster/_inputs.py +540 -0
- pulumi_harness/cluster/get_orchestrator_config.py +46 -6
- pulumi_harness/cluster/orchestrator.py +0 -16
- pulumi_harness/cluster/orchestrator_config.py +253 -5
- pulumi_harness/cluster/outputs.py +394 -0
- pulumi_harness/delegate_approval.py +4 -0
- pulumi_harness/encrypted_text.py +4 -0
- pulumi_harness/environment.py +4 -0
- pulumi_harness/get_current_account.py +3 -3
- pulumi_harness/git_connector.py +4 -0
- pulumi_harness/governance/rule.py +4 -0
- pulumi_harness/governance/rule_enforcement.py +4 -0
- pulumi_harness/infrastructure_definition.py +4 -0
- pulumi_harness/platform/__init__.py +2 -0
- pulumi_harness/platform/_inputs.py +2780 -416
- pulumi_harness/platform/app_dynamics_connector.py +4 -0
- pulumi_harness/platform/artifactory_connector.py +4 -0
- pulumi_harness/platform/aws_cc_connector.py +4 -0
- pulumi_harness/platform/aws_connector.py +11 -7
- pulumi_harness/platform/aws_kms_connector.py +70 -20
- pulumi_harness/platform/aws_secret_manager_connector.py +13 -9
- pulumi_harness/platform/azure_cloud_cost_connector.py +69 -0
- pulumi_harness/platform/azure_cloud_provider_connector.py +4 -0
- pulumi_harness/platform/azure_key_vault_connector.py +8 -0
- pulumi_harness/platform/bitbucket_connector.py +4 -0
- pulumi_harness/platform/connector_azure_artifacts.py +4 -2
- pulumi_harness/platform/connector_azure_repo.py +11 -16
- pulumi_harness/platform/connector_custom_secret_manager.py +51 -156
- pulumi_harness/platform/connector_customhealthsource.py +4 -0
- pulumi_harness/platform/connector_gcp_kms.py +4 -0
- pulumi_harness/platform/connector_jdbc.py +4 -0
- pulumi_harness/platform/connector_pdc.py +13 -13
- pulumi_harness/platform/connector_rancher.py +4 -0
- pulumi_harness/platform/dashboard_folders.py +2 -2
- pulumi_harness/platform/dashboards.py +10 -14
- pulumi_harness/platform/datadog_connector.py +4 -0
- pulumi_harness/platform/db_instance.py +4 -0
- pulumi_harness/platform/db_schema.py +25 -21
- pulumi_harness/platform/default_notification_template_set.py +495 -0
- pulumi_harness/platform/docker_connector.py +4 -4
- pulumi_harness/platform/dynatrace_connector.py +4 -0
- pulumi_harness/platform/elasticsearch_connector.py +19 -15
- pulumi_harness/platform/environment.py +25 -530
- pulumi_harness/platform/environment_clusters_mapping.py +8 -0
- pulumi_harness/platform/environment_group.py +13 -100
- pulumi_harness/platform/environment_service_overrides.py +20 -186
- pulumi_harness/platform/feature_flag_target_group.py +8 -8
- pulumi_harness/platform/file_store_file.py +11 -7
- pulumi_harness/platform/file_store_folder.py +11 -7
- pulumi_harness/platform/filters.py +8 -0
- pulumi_harness/platform/gcp_cloud_cost_connector.py +4 -0
- pulumi_harness/platform/gcp_connector.py +4 -0
- pulumi_harness/platform/gcp_secret_manager_connector.py +6 -92
- pulumi_harness/platform/get_api_key.py +8 -38
- pulumi_harness/platform/get_aws_kms_connector.py +16 -1
- pulumi_harness/platform/get_aws_secret_manager_connector.py +7 -3
- pulumi_harness/platform/get_azure_cloud_cost_connector.py +15 -1
- pulumi_harness/platform/get_connector_azure_repo.py +53 -2
- pulumi_harness/platform/get_connector_custom_secret_manager.py +28 -32
- pulumi_harness/platform/get_connector_pdc.py +3 -3
- pulumi_harness/platform/get_current_account.py +2 -20
- pulumi_harness/platform/get_dashboard_folders.py +16 -5
- pulumi_harness/platform/get_dashboards.py +15 -7
- pulumi_harness/platform/get_db_instance.py +5 -0
- pulumi_harness/platform/get_db_schema.py +12 -15
- pulumi_harness/platform/get_default_notification_template_set.py +244 -0
- pulumi_harness/platform/get_environment.py +5 -0
- pulumi_harness/platform/get_environment_list.py +12 -58
- pulumi_harness/platform/get_environment_service_overrides.py +6 -6
- pulumi_harness/platform/get_filters.py +4 -0
- pulumi_harness/platform/get_gcp_secret_manager_connector.py +4 -0
- pulumi_harness/platform/get_github_connector.py +3 -0
- pulumi_harness/platform/get_gitops_applications.py +8 -0
- pulumi_harness/platform/get_gitops_filters.py +25 -10
- pulumi_harness/platform/get_gitx_webhook.py +3 -3
- pulumi_harness/platform/get_har_registry.py +46 -10
- pulumi_harness/platform/get_iacm_default_pipeline.py +24 -0
- pulumi_harness/platform/get_infra_variable_set.py +34 -25
- pulumi_harness/platform/get_infrastructure.py +5 -0
- pulumi_harness/platform/get_manual_freeze.py +0 -24
- pulumi_harness/platform/get_monitored_service.py +22 -0
- pulumi_harness/platform/get_organization.py +4 -0
- pulumi_harness/platform/get_overrides.py +66 -2
- pulumi_harness/platform/get_pagerduty_connector.py +4 -0
- pulumi_harness/platform/get_pipeline_list.py +18 -63
- pulumi_harness/platform/get_project.py +4 -0
- pulumi_harness/platform/get_project_list.py +18 -63
- pulumi_harness/platform/get_provider.py +11 -2
- pulumi_harness/platform/get_resource_group.py +4 -0
- pulumi_harness/platform/get_role_assignments.py +6 -2
- pulumi_harness/platform/get_roles.py +4 -0
- pulumi_harness/platform/get_secret_file.py +4 -0
- pulumi_harness/platform/get_secret_sshkey.py +4 -0
- pulumi_harness/platform/get_service.py +5 -0
- pulumi_harness/platform/get_service_account.py +4 -0
- pulumi_harness/platform/get_service_list.py +22 -58
- pulumi_harness/platform/get_service_overrides_v2.py +42 -0
- pulumi_harness/platform/get_slo.py +22 -0
- pulumi_harness/platform/get_token.py +2 -0
- pulumi_harness/platform/get_user.py +4 -0
- pulumi_harness/platform/get_usergroup.py +4 -0
- pulumi_harness/platform/get_variables.py +4 -0
- pulumi_harness/platform/get_vault_connector.py +5 -1
- pulumi_harness/platform/get_workspace.py +8 -3
- pulumi_harness/platform/git_connector.py +4 -0
- pulumi_harness/platform/git_ops_agent.py +4 -0
- pulumi_harness/platform/git_ops_applications.py +4 -0
- pulumi_harness/platform/git_ops_cluster.py +51 -0
- pulumi_harness/platform/git_ops_gnupg.py +4 -0
- pulumi_harness/platform/git_ops_repo_cert.py +4 -0
- pulumi_harness/platform/git_ops_repo_cred.py +4 -0
- pulumi_harness/platform/git_ops_repository.py +4 -0
- pulumi_harness/platform/github_connector.py +11 -7
- pulumi_harness/platform/gitlab_connector.py +4 -0
- pulumi_harness/platform/gitops_app_project.py +4 -0
- pulumi_harness/platform/gitops_app_project_mapping.py +4 -0
- pulumi_harness/platform/gitops_applicationset.py +98 -0
- pulumi_harness/platform/gitops_filters.py +51 -179
- pulumi_harness/platform/gitx_webhook.py +4 -0
- pulumi_harness/platform/har_registry.py +42 -43
- pulumi_harness/platform/helm_connector.py +4 -0
- pulumi_harness/platform/iacm_default_pipeline.py +28 -0
- pulumi_harness/platform/infra_module.py +6 -2
- pulumi_harness/platform/infra_variable_set.py +38 -22
- pulumi_harness/platform/infrastructure.py +18 -240
- pulumi_harness/platform/input_set.py +4 -0
- pulumi_harness/platform/jenkins_connector.py +8 -0
- pulumi_harness/platform/jira_connector.py +4 -2
- pulumi_harness/platform/kubernetes_cloud_cost_connector.py +35 -11
- pulumi_harness/platform/kubernetes_connector.py +4 -0
- pulumi_harness/platform/manual_freeze.py +6 -154
- pulumi_harness/platform/monitored_service.py +16 -12
- pulumi_harness/platform/newrelic_connector.py +4 -0
- pulumi_harness/platform/nexus_connector.py +4 -4
- pulumi_harness/platform/notification_rule.py +4 -0
- pulumi_harness/platform/oci_helm_connector.py +4 -0
- pulumi_harness/platform/organization.py +8 -0
- pulumi_harness/platform/outputs.py +2085 -219
- pulumi_harness/platform/overrides.py +48 -2
- pulumi_harness/platform/pagerduty_connector.py +8 -0
- pulumi_harness/platform/pipeline.py +18 -2
- pulumi_harness/platform/pipeline_filters.py +4 -0
- pulumi_harness/platform/policy.py +6 -26
- pulumi_harness/platform/policy_set.py +4 -0
- pulumi_harness/platform/project.py +8 -0
- pulumi_harness/platform/prometheus_connector.py +4 -0
- pulumi_harness/platform/provider.py +4 -2
- pulumi_harness/platform/repo.py +40 -0
- pulumi_harness/platform/resource_group.py +15 -7
- pulumi_harness/platform/role_assignments.py +20 -16
- pulumi_harness/platform/roles.py +8 -0
- pulumi_harness/platform/secret_file.py +8 -0
- pulumi_harness/platform/secret_sshkey.py +6 -2
- pulumi_harness/platform/secret_text.py +78 -0
- pulumi_harness/platform/service.py +13 -494
- pulumi_harness/platform/service_account.py +8 -0
- pulumi_harness/platform/service_now_connector.py +4 -2
- pulumi_harness/platform/service_overrides_v2.py +4 -204
- pulumi_harness/platform/slo.py +12 -18
- pulumi_harness/platform/splunk_connector.py +4 -0
- pulumi_harness/platform/spot_connector.py +4 -0
- pulumi_harness/platform/sumologic_connector.py +4 -0
- pulumi_harness/platform/tas_connector.py +4 -0
- pulumi_harness/platform/template.py +25 -21
- pulumi_harness/platform/template_filters.py +4 -0
- pulumi_harness/platform/terraform_cloud_connector.py +4 -0
- pulumi_harness/platform/token.py +6 -2
- pulumi_harness/platform/triggers.py +8 -0
- pulumi_harness/platform/user.py +13 -9
- pulumi_harness/platform/usergroup.py +71 -7
- pulumi_harness/platform/variables.py +8 -0
- pulumi_harness/platform/vault_connector.py +15 -7
- pulumi_harness/platform/workspace.py +19 -7
- pulumi_harness/platform_api_key.py +6 -66
- pulumi_harness/platform_ccm_filters.py +11 -7
- pulumi_harness/pulumi-plugin.json +1 -1
- pulumi_harness/service/__init__.py +4 -0
- pulumi_harness/service/_inputs.py +1729 -0
- pulumi_harness/service/ami.py +4 -0
- pulumi_harness/service/codedeploy.py +4 -0
- pulumi_harness/service/discovery_agent.py +1211 -0
- pulumi_harness/service/discovery_setting.py +384 -0
- pulumi_harness/service/ecs.py +4 -0
- pulumi_harness/service/get_discovery_agent.py +443 -0
- pulumi_harness/service/get_discovery_setting.py +199 -0
- pulumi_harness/service/helm.py +4 -0
- pulumi_harness/service/kubernetes.py +4 -0
- pulumi_harness/service/lambda_.py +4 -0
- pulumi_harness/service/outputs.py +2367 -117
- pulumi_harness/service/ssh.py +4 -0
- pulumi_harness/service/tanzu.py +4 -0
- pulumi_harness/service/winrm.py +4 -0
- pulumi_harness/ssh_credential.py +4 -0
- pulumi_harness/user.py +4 -0
- pulumi_harness/user_group.py +4 -0
- pulumi_harness/yaml_config.py +4 -0
- {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.1.dist-info}/METADATA +1 -1
- pulumi_harness-0.8.1.dist-info/RECORD +357 -0
- pulumi_harness-0.8.0a1755712204.dist-info/RECORD +0 -337
- {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.1.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,684 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
'GetInfrastructureV2Result',
|
|
21
|
+
'AwaitableGetInfrastructureV2Result',
|
|
22
|
+
'get_infrastructure_v2',
|
|
23
|
+
'get_infrastructure_v2_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetInfrastructureV2Result:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getInfrastructureV2.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, annotation=None, containers=None, created_at=None, created_by=None, description=None, environment_id=None, id=None, identifier=None, identity=None, image_registries=None, infra_id=None, infra_scope=None, infra_type=None, insecure_skip_verify=None, is_ai_enabled=None, is_chaos_enabled=None, label=None, last_heartbeat=None, last_workflow_timestamp=None, mtls=None, name=None, namespace=None, no_of_schedules=None, no_of_workflows=None, node_selector=None, org_id=None, project_id=None, proxy=None, run_as_group=None, run_as_user=None, service_account=None, status=None, tags=None, tolerations=None, update_status=None, updated_at=None, updated_by=None, volume_mounts=None, volumes=None):
|
|
32
|
+
if annotation and not isinstance(annotation, dict):
|
|
33
|
+
raise TypeError("Expected argument 'annotation' to be a dict")
|
|
34
|
+
pulumi.set(__self__, "annotation", annotation)
|
|
35
|
+
if containers and not isinstance(containers, str):
|
|
36
|
+
raise TypeError("Expected argument 'containers' to be a str")
|
|
37
|
+
pulumi.set(__self__, "containers", containers)
|
|
38
|
+
if created_at and not isinstance(created_at, str):
|
|
39
|
+
raise TypeError("Expected argument 'created_at' to be a str")
|
|
40
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
41
|
+
if created_by and not isinstance(created_by, str):
|
|
42
|
+
raise TypeError("Expected argument 'created_by' to be a str")
|
|
43
|
+
pulumi.set(__self__, "created_by", created_by)
|
|
44
|
+
if description and not isinstance(description, str):
|
|
45
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
46
|
+
pulumi.set(__self__, "description", description)
|
|
47
|
+
if environment_id and not isinstance(environment_id, str):
|
|
48
|
+
raise TypeError("Expected argument 'environment_id' to be a str")
|
|
49
|
+
pulumi.set(__self__, "environment_id", environment_id)
|
|
50
|
+
if id and not isinstance(id, str):
|
|
51
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
52
|
+
pulumi.set(__self__, "id", id)
|
|
53
|
+
if identifier and not isinstance(identifier, str):
|
|
54
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
55
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
56
|
+
if identity and not isinstance(identity, str):
|
|
57
|
+
raise TypeError("Expected argument 'identity' to be a str")
|
|
58
|
+
pulumi.set(__self__, "identity", identity)
|
|
59
|
+
if image_registries and not isinstance(image_registries, list):
|
|
60
|
+
raise TypeError("Expected argument 'image_registries' to be a list")
|
|
61
|
+
pulumi.set(__self__, "image_registries", image_registries)
|
|
62
|
+
if infra_id and not isinstance(infra_id, str):
|
|
63
|
+
raise TypeError("Expected argument 'infra_id' to be a str")
|
|
64
|
+
pulumi.set(__self__, "infra_id", infra_id)
|
|
65
|
+
if infra_scope and not isinstance(infra_scope, str):
|
|
66
|
+
raise TypeError("Expected argument 'infra_scope' to be a str")
|
|
67
|
+
pulumi.set(__self__, "infra_scope", infra_scope)
|
|
68
|
+
if infra_type and not isinstance(infra_type, str):
|
|
69
|
+
raise TypeError("Expected argument 'infra_type' to be a str")
|
|
70
|
+
pulumi.set(__self__, "infra_type", infra_type)
|
|
71
|
+
if insecure_skip_verify and not isinstance(insecure_skip_verify, bool):
|
|
72
|
+
raise TypeError("Expected argument 'insecure_skip_verify' to be a bool")
|
|
73
|
+
pulumi.set(__self__, "insecure_skip_verify", insecure_skip_verify)
|
|
74
|
+
if is_ai_enabled and not isinstance(is_ai_enabled, bool):
|
|
75
|
+
raise TypeError("Expected argument 'is_ai_enabled' to be a bool")
|
|
76
|
+
pulumi.set(__self__, "is_ai_enabled", is_ai_enabled)
|
|
77
|
+
if is_chaos_enabled and not isinstance(is_chaos_enabled, bool):
|
|
78
|
+
raise TypeError("Expected argument 'is_chaos_enabled' to be a bool")
|
|
79
|
+
pulumi.set(__self__, "is_chaos_enabled", is_chaos_enabled)
|
|
80
|
+
if label and not isinstance(label, dict):
|
|
81
|
+
raise TypeError("Expected argument 'label' to be a dict")
|
|
82
|
+
pulumi.set(__self__, "label", label)
|
|
83
|
+
if last_heartbeat and not isinstance(last_heartbeat, int):
|
|
84
|
+
raise TypeError("Expected argument 'last_heartbeat' to be a int")
|
|
85
|
+
pulumi.set(__self__, "last_heartbeat", last_heartbeat)
|
|
86
|
+
if last_workflow_timestamp and not isinstance(last_workflow_timestamp, str):
|
|
87
|
+
raise TypeError("Expected argument 'last_workflow_timestamp' to be a str")
|
|
88
|
+
pulumi.set(__self__, "last_workflow_timestamp", last_workflow_timestamp)
|
|
89
|
+
if mtls and not isinstance(mtls, dict):
|
|
90
|
+
raise TypeError("Expected argument 'mtls' to be a dict")
|
|
91
|
+
pulumi.set(__self__, "mtls", mtls)
|
|
92
|
+
if name and not isinstance(name, str):
|
|
93
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
94
|
+
pulumi.set(__self__, "name", name)
|
|
95
|
+
if namespace and not isinstance(namespace, str):
|
|
96
|
+
raise TypeError("Expected argument 'namespace' to be a str")
|
|
97
|
+
pulumi.set(__self__, "namespace", namespace)
|
|
98
|
+
if no_of_schedules and not isinstance(no_of_schedules, int):
|
|
99
|
+
raise TypeError("Expected argument 'no_of_schedules' to be a int")
|
|
100
|
+
pulumi.set(__self__, "no_of_schedules", no_of_schedules)
|
|
101
|
+
if no_of_workflows and not isinstance(no_of_workflows, int):
|
|
102
|
+
raise TypeError("Expected argument 'no_of_workflows' to be a int")
|
|
103
|
+
pulumi.set(__self__, "no_of_workflows", no_of_workflows)
|
|
104
|
+
if node_selector and not isinstance(node_selector, dict):
|
|
105
|
+
raise TypeError("Expected argument 'node_selector' to be a dict")
|
|
106
|
+
pulumi.set(__self__, "node_selector", node_selector)
|
|
107
|
+
if org_id and not isinstance(org_id, str):
|
|
108
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
109
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
110
|
+
if project_id and not isinstance(project_id, str):
|
|
111
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
112
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
113
|
+
if proxy and not isinstance(proxy, dict):
|
|
114
|
+
raise TypeError("Expected argument 'proxy' to be a dict")
|
|
115
|
+
pulumi.set(__self__, "proxy", proxy)
|
|
116
|
+
if run_as_group and not isinstance(run_as_group, int):
|
|
117
|
+
raise TypeError("Expected argument 'run_as_group' to be a int")
|
|
118
|
+
pulumi.set(__self__, "run_as_group", run_as_group)
|
|
119
|
+
if run_as_user and not isinstance(run_as_user, int):
|
|
120
|
+
raise TypeError("Expected argument 'run_as_user' to be a int")
|
|
121
|
+
pulumi.set(__self__, "run_as_user", run_as_user)
|
|
122
|
+
if service_account and not isinstance(service_account, str):
|
|
123
|
+
raise TypeError("Expected argument 'service_account' to be a str")
|
|
124
|
+
pulumi.set(__self__, "service_account", service_account)
|
|
125
|
+
if status and not isinstance(status, str):
|
|
126
|
+
raise TypeError("Expected argument 'status' to be a str")
|
|
127
|
+
pulumi.set(__self__, "status", status)
|
|
128
|
+
if tags and not isinstance(tags, list):
|
|
129
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
130
|
+
pulumi.set(__self__, "tags", tags)
|
|
131
|
+
if tolerations and not isinstance(tolerations, list):
|
|
132
|
+
raise TypeError("Expected argument 'tolerations' to be a list")
|
|
133
|
+
pulumi.set(__self__, "tolerations", tolerations)
|
|
134
|
+
if update_status and not isinstance(update_status, str):
|
|
135
|
+
raise TypeError("Expected argument 'update_status' to be a str")
|
|
136
|
+
pulumi.set(__self__, "update_status", update_status)
|
|
137
|
+
if updated_at and not isinstance(updated_at, str):
|
|
138
|
+
raise TypeError("Expected argument 'updated_at' to be a str")
|
|
139
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
140
|
+
if updated_by and not isinstance(updated_by, str):
|
|
141
|
+
raise TypeError("Expected argument 'updated_by' to be a str")
|
|
142
|
+
pulumi.set(__self__, "updated_by", updated_by)
|
|
143
|
+
if volume_mounts and not isinstance(volume_mounts, list):
|
|
144
|
+
raise TypeError("Expected argument 'volume_mounts' to be a list")
|
|
145
|
+
pulumi.set(__self__, "volume_mounts", volume_mounts)
|
|
146
|
+
if volumes and not isinstance(volumes, list):
|
|
147
|
+
raise TypeError("Expected argument 'volumes' to be a list")
|
|
148
|
+
pulumi.set(__self__, "volumes", volumes)
|
|
149
|
+
|
|
150
|
+
@_builtins.property
|
|
151
|
+
@pulumi.getter
|
|
152
|
+
def annotation(self) -> Mapping[str, _builtins.str]:
|
|
153
|
+
return pulumi.get(self, "annotation")
|
|
154
|
+
|
|
155
|
+
@_builtins.property
|
|
156
|
+
@pulumi.getter
|
|
157
|
+
def containers(self) -> _builtins.str:
|
|
158
|
+
"""
|
|
159
|
+
List of containers in the infrastructure.
|
|
160
|
+
"""
|
|
161
|
+
return pulumi.get(self, "containers")
|
|
162
|
+
|
|
163
|
+
@_builtins.property
|
|
164
|
+
@pulumi.getter(name="createdAt")
|
|
165
|
+
def created_at(self) -> _builtins.str:
|
|
166
|
+
"""
|
|
167
|
+
Created at of the infrastructure.
|
|
168
|
+
"""
|
|
169
|
+
return pulumi.get(self, "created_at")
|
|
170
|
+
|
|
171
|
+
@_builtins.property
|
|
172
|
+
@pulumi.getter(name="createdBy")
|
|
173
|
+
def created_by(self) -> _builtins.str:
|
|
174
|
+
"""
|
|
175
|
+
Created by of the infrastructure.
|
|
176
|
+
"""
|
|
177
|
+
return pulumi.get(self, "created_by")
|
|
178
|
+
|
|
179
|
+
@_builtins.property
|
|
180
|
+
@pulumi.getter
|
|
181
|
+
def description(self) -> _builtins.str:
|
|
182
|
+
"""
|
|
183
|
+
Description of the infrastructure.
|
|
184
|
+
"""
|
|
185
|
+
return pulumi.get(self, "description")
|
|
186
|
+
|
|
187
|
+
@_builtins.property
|
|
188
|
+
@pulumi.getter(name="environmentId")
|
|
189
|
+
def environment_id(self) -> _builtins.str:
|
|
190
|
+
"""
|
|
191
|
+
The ID of the environment.
|
|
192
|
+
"""
|
|
193
|
+
return pulumi.get(self, "environment_id")
|
|
194
|
+
|
|
195
|
+
@_builtins.property
|
|
196
|
+
@pulumi.getter
|
|
197
|
+
def id(self) -> _builtins.str:
|
|
198
|
+
"""
|
|
199
|
+
The provider-assigned unique ID for this managed resource.
|
|
200
|
+
"""
|
|
201
|
+
return pulumi.get(self, "id")
|
|
202
|
+
|
|
203
|
+
@_builtins.property
|
|
204
|
+
@pulumi.getter
|
|
205
|
+
def identifier(self) -> _builtins.str:
|
|
206
|
+
"""
|
|
207
|
+
Identifier of the infrastructure.
|
|
208
|
+
"""
|
|
209
|
+
return pulumi.get(self, "identifier")
|
|
210
|
+
|
|
211
|
+
@_builtins.property
|
|
212
|
+
@pulumi.getter
|
|
213
|
+
def identity(self) -> _builtins.str:
|
|
214
|
+
"""
|
|
215
|
+
Identity of the infrastructure.
|
|
216
|
+
"""
|
|
217
|
+
return pulumi.get(self, "identity")
|
|
218
|
+
|
|
219
|
+
@_builtins.property
|
|
220
|
+
@pulumi.getter(name="imageRegistries")
|
|
221
|
+
def image_registries(self) -> Sequence['outputs.GetInfrastructureV2ImageRegistryResult']:
|
|
222
|
+
"""
|
|
223
|
+
Configuration for the container image registry.
|
|
224
|
+
"""
|
|
225
|
+
return pulumi.get(self, "image_registries")
|
|
226
|
+
|
|
227
|
+
@_builtins.property
|
|
228
|
+
@pulumi.getter(name="infraId")
|
|
229
|
+
def infra_id(self) -> _builtins.str:
|
|
230
|
+
"""
|
|
231
|
+
The ID of the infrastructure.
|
|
232
|
+
"""
|
|
233
|
+
return pulumi.get(self, "infra_id")
|
|
234
|
+
|
|
235
|
+
@_builtins.property
|
|
236
|
+
@pulumi.getter(name="infraScope")
|
|
237
|
+
def infra_scope(self) -> _builtins.str:
|
|
238
|
+
"""
|
|
239
|
+
Scope of the infrastructure.
|
|
240
|
+
"""
|
|
241
|
+
return pulumi.get(self, "infra_scope")
|
|
242
|
+
|
|
243
|
+
@_builtins.property
|
|
244
|
+
@pulumi.getter(name="infraType")
|
|
245
|
+
def infra_type(self) -> _builtins.str:
|
|
246
|
+
"""
|
|
247
|
+
Type of the infrastructure.
|
|
248
|
+
"""
|
|
249
|
+
return pulumi.get(self, "infra_type")
|
|
250
|
+
|
|
251
|
+
@_builtins.property
|
|
252
|
+
@pulumi.getter(name="insecureSkipVerify")
|
|
253
|
+
def insecure_skip_verify(self) -> _builtins.bool:
|
|
254
|
+
return pulumi.get(self, "insecure_skip_verify")
|
|
255
|
+
|
|
256
|
+
@_builtins.property
|
|
257
|
+
@pulumi.getter(name="isAiEnabled")
|
|
258
|
+
def is_ai_enabled(self) -> _builtins.bool:
|
|
259
|
+
return pulumi.get(self, "is_ai_enabled")
|
|
260
|
+
|
|
261
|
+
@_builtins.property
|
|
262
|
+
@pulumi.getter(name="isChaosEnabled")
|
|
263
|
+
def is_chaos_enabled(self) -> _builtins.bool:
|
|
264
|
+
return pulumi.get(self, "is_chaos_enabled")
|
|
265
|
+
|
|
266
|
+
@_builtins.property
|
|
267
|
+
@pulumi.getter
|
|
268
|
+
def label(self) -> Mapping[str, _builtins.str]:
|
|
269
|
+
return pulumi.get(self, "label")
|
|
270
|
+
|
|
271
|
+
@_builtins.property
|
|
272
|
+
@pulumi.getter(name="lastHeartbeat")
|
|
273
|
+
def last_heartbeat(self) -> _builtins.int:
|
|
274
|
+
"""
|
|
275
|
+
Last heartbeat of the infrastructure.
|
|
276
|
+
"""
|
|
277
|
+
return pulumi.get(self, "last_heartbeat")
|
|
278
|
+
|
|
279
|
+
@_builtins.property
|
|
280
|
+
@pulumi.getter(name="lastWorkflowTimestamp")
|
|
281
|
+
def last_workflow_timestamp(self) -> _builtins.str:
|
|
282
|
+
"""
|
|
283
|
+
Last workflow timestamp of the infrastructure.
|
|
284
|
+
"""
|
|
285
|
+
return pulumi.get(self, "last_workflow_timestamp")
|
|
286
|
+
|
|
287
|
+
@_builtins.property
|
|
288
|
+
@pulumi.getter
|
|
289
|
+
def mtls(self) -> Optional['outputs.GetInfrastructureV2MtlsResult']:
|
|
290
|
+
"""
|
|
291
|
+
mTLS configuration for the infrastructure.
|
|
292
|
+
"""
|
|
293
|
+
return pulumi.get(self, "mtls")
|
|
294
|
+
|
|
295
|
+
@_builtins.property
|
|
296
|
+
@pulumi.getter
|
|
297
|
+
def name(self) -> _builtins.str:
|
|
298
|
+
"""
|
|
299
|
+
Name of the infrastructure.
|
|
300
|
+
"""
|
|
301
|
+
return pulumi.get(self, "name")
|
|
302
|
+
|
|
303
|
+
@_builtins.property
|
|
304
|
+
@pulumi.getter
|
|
305
|
+
def namespace(self) -> _builtins.str:
|
|
306
|
+
"""
|
|
307
|
+
Kubernetes namespace for the infrastructure.
|
|
308
|
+
"""
|
|
309
|
+
return pulumi.get(self, "namespace")
|
|
310
|
+
|
|
311
|
+
@_builtins.property
|
|
312
|
+
@pulumi.getter(name="noOfSchedules")
|
|
313
|
+
def no_of_schedules(self) -> _builtins.int:
|
|
314
|
+
"""
|
|
315
|
+
Number of schedules for the infrastructure.
|
|
316
|
+
"""
|
|
317
|
+
return pulumi.get(self, "no_of_schedules")
|
|
318
|
+
|
|
319
|
+
@_builtins.property
|
|
320
|
+
@pulumi.getter(name="noOfWorkflows")
|
|
321
|
+
def no_of_workflows(self) -> _builtins.int:
|
|
322
|
+
"""
|
|
323
|
+
Number of workflows for the infrastructure.
|
|
324
|
+
"""
|
|
325
|
+
return pulumi.get(self, "no_of_workflows")
|
|
326
|
+
|
|
327
|
+
@_builtins.property
|
|
328
|
+
@pulumi.getter(name="nodeSelector")
|
|
329
|
+
def node_selector(self) -> Mapping[str, _builtins.str]:
|
|
330
|
+
return pulumi.get(self, "node_selector")
|
|
331
|
+
|
|
332
|
+
@_builtins.property
|
|
333
|
+
@pulumi.getter(name="orgId")
|
|
334
|
+
def org_id(self) -> _builtins.str:
|
|
335
|
+
"""
|
|
336
|
+
The ID of the organization.
|
|
337
|
+
"""
|
|
338
|
+
return pulumi.get(self, "org_id")
|
|
339
|
+
|
|
340
|
+
@_builtins.property
|
|
341
|
+
@pulumi.getter(name="projectId")
|
|
342
|
+
def project_id(self) -> _builtins.str:
|
|
343
|
+
"""
|
|
344
|
+
The ID of the project.
|
|
345
|
+
"""
|
|
346
|
+
return pulumi.get(self, "project_id")
|
|
347
|
+
|
|
348
|
+
@_builtins.property
|
|
349
|
+
@pulumi.getter
|
|
350
|
+
def proxy(self) -> Optional['outputs.GetInfrastructureV2ProxyResult']:
|
|
351
|
+
"""
|
|
352
|
+
Proxy configuration for the infrastructure.
|
|
353
|
+
"""
|
|
354
|
+
return pulumi.get(self, "proxy")
|
|
355
|
+
|
|
356
|
+
@_builtins.property
|
|
357
|
+
@pulumi.getter(name="runAsGroup")
|
|
358
|
+
def run_as_group(self) -> _builtins.int:
|
|
359
|
+
return pulumi.get(self, "run_as_group")
|
|
360
|
+
|
|
361
|
+
@_builtins.property
|
|
362
|
+
@pulumi.getter(name="runAsUser")
|
|
363
|
+
def run_as_user(self) -> _builtins.int:
|
|
364
|
+
return pulumi.get(self, "run_as_user")
|
|
365
|
+
|
|
366
|
+
@_builtins.property
|
|
367
|
+
@pulumi.getter(name="serviceAccount")
|
|
368
|
+
def service_account(self) -> _builtins.str:
|
|
369
|
+
"""
|
|
370
|
+
Service account used by the infrastructure.
|
|
371
|
+
"""
|
|
372
|
+
return pulumi.get(self, "service_account")
|
|
373
|
+
|
|
374
|
+
@_builtins.property
|
|
375
|
+
@pulumi.getter
|
|
376
|
+
def status(self) -> _builtins.str:
|
|
377
|
+
"""
|
|
378
|
+
Status of the infrastructure.
|
|
379
|
+
"""
|
|
380
|
+
return pulumi.get(self, "status")
|
|
381
|
+
|
|
382
|
+
@_builtins.property
|
|
383
|
+
@pulumi.getter
|
|
384
|
+
def tags(self) -> Sequence[_builtins.str]:
|
|
385
|
+
"""
|
|
386
|
+
Tags of the infrastructure.
|
|
387
|
+
"""
|
|
388
|
+
return pulumi.get(self, "tags")
|
|
389
|
+
|
|
390
|
+
@_builtins.property
|
|
391
|
+
@pulumi.getter
|
|
392
|
+
def tolerations(self) -> Optional[Sequence['outputs.GetInfrastructureV2TolerationResult']]:
|
|
393
|
+
"""
|
|
394
|
+
If specified, the pod's tolerations.
|
|
395
|
+
"""
|
|
396
|
+
return pulumi.get(self, "tolerations")
|
|
397
|
+
|
|
398
|
+
@_builtins.property
|
|
399
|
+
@pulumi.getter(name="updateStatus")
|
|
400
|
+
def update_status(self) -> _builtins.str:
|
|
401
|
+
"""
|
|
402
|
+
Update status of the infrastructure.
|
|
403
|
+
"""
|
|
404
|
+
return pulumi.get(self, "update_status")
|
|
405
|
+
|
|
406
|
+
@_builtins.property
|
|
407
|
+
@pulumi.getter(name="updatedAt")
|
|
408
|
+
def updated_at(self) -> _builtins.str:
|
|
409
|
+
"""
|
|
410
|
+
Updated at of the infrastructure.
|
|
411
|
+
"""
|
|
412
|
+
return pulumi.get(self, "updated_at")
|
|
413
|
+
|
|
414
|
+
@_builtins.property
|
|
415
|
+
@pulumi.getter(name="updatedBy")
|
|
416
|
+
def updated_by(self) -> _builtins.str:
|
|
417
|
+
"""
|
|
418
|
+
Updated by of the infrastructure.
|
|
419
|
+
"""
|
|
420
|
+
return pulumi.get(self, "updated_by")
|
|
421
|
+
|
|
422
|
+
@_builtins.property
|
|
423
|
+
@pulumi.getter(name="volumeMounts")
|
|
424
|
+
def volume_mounts(self) -> Optional[Sequence['outputs.GetInfrastructureV2VolumeMountResult']]:
|
|
425
|
+
"""
|
|
426
|
+
Volume mounts for the container.
|
|
427
|
+
"""
|
|
428
|
+
return pulumi.get(self, "volume_mounts")
|
|
429
|
+
|
|
430
|
+
@_builtins.property
|
|
431
|
+
@pulumi.getter
|
|
432
|
+
def volumes(self) -> Optional[Sequence['outputs.GetInfrastructureV2VolumeResult']]:
|
|
433
|
+
"""
|
|
434
|
+
Volumes to be created in the infrastructure.
|
|
435
|
+
"""
|
|
436
|
+
return pulumi.get(self, "volumes")
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
class AwaitableGetInfrastructureV2Result(GetInfrastructureV2Result):
|
|
440
|
+
# pylint: disable=using-constant-test
|
|
441
|
+
def __await__(self):
|
|
442
|
+
if False:
|
|
443
|
+
yield self
|
|
444
|
+
return GetInfrastructureV2Result(
|
|
445
|
+
annotation=self.annotation,
|
|
446
|
+
containers=self.containers,
|
|
447
|
+
created_at=self.created_at,
|
|
448
|
+
created_by=self.created_by,
|
|
449
|
+
description=self.description,
|
|
450
|
+
environment_id=self.environment_id,
|
|
451
|
+
id=self.id,
|
|
452
|
+
identifier=self.identifier,
|
|
453
|
+
identity=self.identity,
|
|
454
|
+
image_registries=self.image_registries,
|
|
455
|
+
infra_id=self.infra_id,
|
|
456
|
+
infra_scope=self.infra_scope,
|
|
457
|
+
infra_type=self.infra_type,
|
|
458
|
+
insecure_skip_verify=self.insecure_skip_verify,
|
|
459
|
+
is_ai_enabled=self.is_ai_enabled,
|
|
460
|
+
is_chaos_enabled=self.is_chaos_enabled,
|
|
461
|
+
label=self.label,
|
|
462
|
+
last_heartbeat=self.last_heartbeat,
|
|
463
|
+
last_workflow_timestamp=self.last_workflow_timestamp,
|
|
464
|
+
mtls=self.mtls,
|
|
465
|
+
name=self.name,
|
|
466
|
+
namespace=self.namespace,
|
|
467
|
+
no_of_schedules=self.no_of_schedules,
|
|
468
|
+
no_of_workflows=self.no_of_workflows,
|
|
469
|
+
node_selector=self.node_selector,
|
|
470
|
+
org_id=self.org_id,
|
|
471
|
+
project_id=self.project_id,
|
|
472
|
+
proxy=self.proxy,
|
|
473
|
+
run_as_group=self.run_as_group,
|
|
474
|
+
run_as_user=self.run_as_user,
|
|
475
|
+
service_account=self.service_account,
|
|
476
|
+
status=self.status,
|
|
477
|
+
tags=self.tags,
|
|
478
|
+
tolerations=self.tolerations,
|
|
479
|
+
update_status=self.update_status,
|
|
480
|
+
updated_at=self.updated_at,
|
|
481
|
+
updated_by=self.updated_by,
|
|
482
|
+
volume_mounts=self.volume_mounts,
|
|
483
|
+
volumes=self.volumes)
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
def get_infrastructure_v2(environment_id: Optional[_builtins.str] = None,
|
|
487
|
+
image_registries: Optional[Sequence[Union['GetInfrastructureV2ImageRegistryArgs', 'GetInfrastructureV2ImageRegistryArgsDict']]] = None,
|
|
488
|
+
infra_id: Optional[_builtins.str] = None,
|
|
489
|
+
mtls: Optional[Union['GetInfrastructureV2MtlsArgs', 'GetInfrastructureV2MtlsArgsDict']] = None,
|
|
490
|
+
org_id: Optional[_builtins.str] = None,
|
|
491
|
+
project_id: Optional[_builtins.str] = None,
|
|
492
|
+
proxy: Optional[Union['GetInfrastructureV2ProxyArgs', 'GetInfrastructureV2ProxyArgsDict']] = None,
|
|
493
|
+
tolerations: Optional[Sequence[Union['GetInfrastructureV2TolerationArgs', 'GetInfrastructureV2TolerationArgsDict']]] = None,
|
|
494
|
+
volume_mounts: Optional[Sequence[Union['GetInfrastructureV2VolumeMountArgs', 'GetInfrastructureV2VolumeMountArgsDict']]] = None,
|
|
495
|
+
volumes: Optional[Sequence[Union['GetInfrastructureV2VolumeArgs', 'GetInfrastructureV2VolumeArgsDict']]] = None,
|
|
496
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetInfrastructureV2Result:
|
|
497
|
+
"""
|
|
498
|
+
Data source for retrieving a Harness Chaos Infrastructure V2.
|
|
499
|
+
|
|
500
|
+
## Example Usage
|
|
501
|
+
|
|
502
|
+
```python
|
|
503
|
+
import pulumi
|
|
504
|
+
import pulumi_harness as harness
|
|
505
|
+
|
|
506
|
+
# Data source to fetch a specific agent by name
|
|
507
|
+
by_name = harness.service.get_discovery_agent(name="example-agent",
|
|
508
|
+
org_identifier=org_identifier,
|
|
509
|
+
project_identifier=project_identifier,
|
|
510
|
+
environment_identifier=environment_identifier)
|
|
511
|
+
pulumi.export("agentDetailsByName", by_name)
|
|
512
|
+
# Data source to fetch a specific agent by identity
|
|
513
|
+
by_identity = harness.service.get_discovery_agent(identity="example-infra",
|
|
514
|
+
org_identifier=org_identifier,
|
|
515
|
+
project_identifier=project_identifier,
|
|
516
|
+
environment_identifier=environment_identifier)
|
|
517
|
+
pulumi.export("agentDetailsByIdentity", by_identity)
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
:param _builtins.str environment_id: The ID of the environment.
|
|
522
|
+
:param Sequence[Union['GetInfrastructureV2ImageRegistryArgs', 'GetInfrastructureV2ImageRegistryArgsDict']] image_registries: Configuration for the container image registry.
|
|
523
|
+
:param _builtins.str infra_id: The ID of the infrastructure.
|
|
524
|
+
:param Union['GetInfrastructureV2MtlsArgs', 'GetInfrastructureV2MtlsArgsDict'] mtls: mTLS configuration for the infrastructure.
|
|
525
|
+
:param _builtins.str org_id: The ID of the organization.
|
|
526
|
+
:param _builtins.str project_id: The ID of the project.
|
|
527
|
+
:param Union['GetInfrastructureV2ProxyArgs', 'GetInfrastructureV2ProxyArgsDict'] proxy: Proxy configuration for the infrastructure.
|
|
528
|
+
:param Sequence[Union['GetInfrastructureV2TolerationArgs', 'GetInfrastructureV2TolerationArgsDict']] tolerations: If specified, the pod's tolerations.
|
|
529
|
+
:param Sequence[Union['GetInfrastructureV2VolumeMountArgs', 'GetInfrastructureV2VolumeMountArgsDict']] volume_mounts: Volume mounts for the container.
|
|
530
|
+
:param Sequence[Union['GetInfrastructureV2VolumeArgs', 'GetInfrastructureV2VolumeArgsDict']] volumes: Volumes to be created in the infrastructure.
|
|
531
|
+
"""
|
|
532
|
+
__args__ = dict()
|
|
533
|
+
__args__['environmentId'] = environment_id
|
|
534
|
+
__args__['imageRegistries'] = image_registries
|
|
535
|
+
__args__['infraId'] = infra_id
|
|
536
|
+
__args__['mtls'] = mtls
|
|
537
|
+
__args__['orgId'] = org_id
|
|
538
|
+
__args__['projectId'] = project_id
|
|
539
|
+
__args__['proxy'] = proxy
|
|
540
|
+
__args__['tolerations'] = tolerations
|
|
541
|
+
__args__['volumeMounts'] = volume_mounts
|
|
542
|
+
__args__['volumes'] = volumes
|
|
543
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
544
|
+
__ret__ = pulumi.runtime.invoke('harness:chaos/getInfrastructureV2:getInfrastructureV2', __args__, opts=opts, typ=GetInfrastructureV2Result).value
|
|
545
|
+
|
|
546
|
+
return AwaitableGetInfrastructureV2Result(
|
|
547
|
+
annotation=pulumi.get(__ret__, 'annotation'),
|
|
548
|
+
containers=pulumi.get(__ret__, 'containers'),
|
|
549
|
+
created_at=pulumi.get(__ret__, 'created_at'),
|
|
550
|
+
created_by=pulumi.get(__ret__, 'created_by'),
|
|
551
|
+
description=pulumi.get(__ret__, 'description'),
|
|
552
|
+
environment_id=pulumi.get(__ret__, 'environment_id'),
|
|
553
|
+
id=pulumi.get(__ret__, 'id'),
|
|
554
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
555
|
+
identity=pulumi.get(__ret__, 'identity'),
|
|
556
|
+
image_registries=pulumi.get(__ret__, 'image_registries'),
|
|
557
|
+
infra_id=pulumi.get(__ret__, 'infra_id'),
|
|
558
|
+
infra_scope=pulumi.get(__ret__, 'infra_scope'),
|
|
559
|
+
infra_type=pulumi.get(__ret__, 'infra_type'),
|
|
560
|
+
insecure_skip_verify=pulumi.get(__ret__, 'insecure_skip_verify'),
|
|
561
|
+
is_ai_enabled=pulumi.get(__ret__, 'is_ai_enabled'),
|
|
562
|
+
is_chaos_enabled=pulumi.get(__ret__, 'is_chaos_enabled'),
|
|
563
|
+
label=pulumi.get(__ret__, 'label'),
|
|
564
|
+
last_heartbeat=pulumi.get(__ret__, 'last_heartbeat'),
|
|
565
|
+
last_workflow_timestamp=pulumi.get(__ret__, 'last_workflow_timestamp'),
|
|
566
|
+
mtls=pulumi.get(__ret__, 'mtls'),
|
|
567
|
+
name=pulumi.get(__ret__, 'name'),
|
|
568
|
+
namespace=pulumi.get(__ret__, 'namespace'),
|
|
569
|
+
no_of_schedules=pulumi.get(__ret__, 'no_of_schedules'),
|
|
570
|
+
no_of_workflows=pulumi.get(__ret__, 'no_of_workflows'),
|
|
571
|
+
node_selector=pulumi.get(__ret__, 'node_selector'),
|
|
572
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
573
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
574
|
+
proxy=pulumi.get(__ret__, 'proxy'),
|
|
575
|
+
run_as_group=pulumi.get(__ret__, 'run_as_group'),
|
|
576
|
+
run_as_user=pulumi.get(__ret__, 'run_as_user'),
|
|
577
|
+
service_account=pulumi.get(__ret__, 'service_account'),
|
|
578
|
+
status=pulumi.get(__ret__, 'status'),
|
|
579
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
580
|
+
tolerations=pulumi.get(__ret__, 'tolerations'),
|
|
581
|
+
update_status=pulumi.get(__ret__, 'update_status'),
|
|
582
|
+
updated_at=pulumi.get(__ret__, 'updated_at'),
|
|
583
|
+
updated_by=pulumi.get(__ret__, 'updated_by'),
|
|
584
|
+
volume_mounts=pulumi.get(__ret__, 'volume_mounts'),
|
|
585
|
+
volumes=pulumi.get(__ret__, 'volumes'))
|
|
586
|
+
def get_infrastructure_v2_output(environment_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
587
|
+
image_registries: Optional[pulumi.Input[Optional[Sequence[Union['GetInfrastructureV2ImageRegistryArgs', 'GetInfrastructureV2ImageRegistryArgsDict']]]]] = None,
|
|
588
|
+
infra_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
589
|
+
mtls: Optional[pulumi.Input[Optional[Union['GetInfrastructureV2MtlsArgs', 'GetInfrastructureV2MtlsArgsDict']]]] = None,
|
|
590
|
+
org_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
591
|
+
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
592
|
+
proxy: Optional[pulumi.Input[Optional[Union['GetInfrastructureV2ProxyArgs', 'GetInfrastructureV2ProxyArgsDict']]]] = None,
|
|
593
|
+
tolerations: Optional[pulumi.Input[Optional[Sequence[Union['GetInfrastructureV2TolerationArgs', 'GetInfrastructureV2TolerationArgsDict']]]]] = None,
|
|
594
|
+
volume_mounts: Optional[pulumi.Input[Optional[Sequence[Union['GetInfrastructureV2VolumeMountArgs', 'GetInfrastructureV2VolumeMountArgsDict']]]]] = None,
|
|
595
|
+
volumes: Optional[pulumi.Input[Optional[Sequence[Union['GetInfrastructureV2VolumeArgs', 'GetInfrastructureV2VolumeArgsDict']]]]] = None,
|
|
596
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetInfrastructureV2Result]:
|
|
597
|
+
"""
|
|
598
|
+
Data source for retrieving a Harness Chaos Infrastructure V2.
|
|
599
|
+
|
|
600
|
+
## Example Usage
|
|
601
|
+
|
|
602
|
+
```python
|
|
603
|
+
import pulumi
|
|
604
|
+
import pulumi_harness as harness
|
|
605
|
+
|
|
606
|
+
# Data source to fetch a specific agent by name
|
|
607
|
+
by_name = harness.service.get_discovery_agent(name="example-agent",
|
|
608
|
+
org_identifier=org_identifier,
|
|
609
|
+
project_identifier=project_identifier,
|
|
610
|
+
environment_identifier=environment_identifier)
|
|
611
|
+
pulumi.export("agentDetailsByName", by_name)
|
|
612
|
+
# Data source to fetch a specific agent by identity
|
|
613
|
+
by_identity = harness.service.get_discovery_agent(identity="example-infra",
|
|
614
|
+
org_identifier=org_identifier,
|
|
615
|
+
project_identifier=project_identifier,
|
|
616
|
+
environment_identifier=environment_identifier)
|
|
617
|
+
pulumi.export("agentDetailsByIdentity", by_identity)
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
:param _builtins.str environment_id: The ID of the environment.
|
|
622
|
+
:param Sequence[Union['GetInfrastructureV2ImageRegistryArgs', 'GetInfrastructureV2ImageRegistryArgsDict']] image_registries: Configuration for the container image registry.
|
|
623
|
+
:param _builtins.str infra_id: The ID of the infrastructure.
|
|
624
|
+
:param Union['GetInfrastructureV2MtlsArgs', 'GetInfrastructureV2MtlsArgsDict'] mtls: mTLS configuration for the infrastructure.
|
|
625
|
+
:param _builtins.str org_id: The ID of the organization.
|
|
626
|
+
:param _builtins.str project_id: The ID of the project.
|
|
627
|
+
:param Union['GetInfrastructureV2ProxyArgs', 'GetInfrastructureV2ProxyArgsDict'] proxy: Proxy configuration for the infrastructure.
|
|
628
|
+
:param Sequence[Union['GetInfrastructureV2TolerationArgs', 'GetInfrastructureV2TolerationArgsDict']] tolerations: If specified, the pod's tolerations.
|
|
629
|
+
:param Sequence[Union['GetInfrastructureV2VolumeMountArgs', 'GetInfrastructureV2VolumeMountArgsDict']] volume_mounts: Volume mounts for the container.
|
|
630
|
+
:param Sequence[Union['GetInfrastructureV2VolumeArgs', 'GetInfrastructureV2VolumeArgsDict']] volumes: Volumes to be created in the infrastructure.
|
|
631
|
+
"""
|
|
632
|
+
__args__ = dict()
|
|
633
|
+
__args__['environmentId'] = environment_id
|
|
634
|
+
__args__['imageRegistries'] = image_registries
|
|
635
|
+
__args__['infraId'] = infra_id
|
|
636
|
+
__args__['mtls'] = mtls
|
|
637
|
+
__args__['orgId'] = org_id
|
|
638
|
+
__args__['projectId'] = project_id
|
|
639
|
+
__args__['proxy'] = proxy
|
|
640
|
+
__args__['tolerations'] = tolerations
|
|
641
|
+
__args__['volumeMounts'] = volume_mounts
|
|
642
|
+
__args__['volumes'] = volumes
|
|
643
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
644
|
+
__ret__ = pulumi.runtime.invoke_output('harness:chaos/getInfrastructureV2:getInfrastructureV2', __args__, opts=opts, typ=GetInfrastructureV2Result)
|
|
645
|
+
return __ret__.apply(lambda __response__: GetInfrastructureV2Result(
|
|
646
|
+
annotation=pulumi.get(__response__, 'annotation'),
|
|
647
|
+
containers=pulumi.get(__response__, 'containers'),
|
|
648
|
+
created_at=pulumi.get(__response__, 'created_at'),
|
|
649
|
+
created_by=pulumi.get(__response__, 'created_by'),
|
|
650
|
+
description=pulumi.get(__response__, 'description'),
|
|
651
|
+
environment_id=pulumi.get(__response__, 'environment_id'),
|
|
652
|
+
id=pulumi.get(__response__, 'id'),
|
|
653
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
654
|
+
identity=pulumi.get(__response__, 'identity'),
|
|
655
|
+
image_registries=pulumi.get(__response__, 'image_registries'),
|
|
656
|
+
infra_id=pulumi.get(__response__, 'infra_id'),
|
|
657
|
+
infra_scope=pulumi.get(__response__, 'infra_scope'),
|
|
658
|
+
infra_type=pulumi.get(__response__, 'infra_type'),
|
|
659
|
+
insecure_skip_verify=pulumi.get(__response__, 'insecure_skip_verify'),
|
|
660
|
+
is_ai_enabled=pulumi.get(__response__, 'is_ai_enabled'),
|
|
661
|
+
is_chaos_enabled=pulumi.get(__response__, 'is_chaos_enabled'),
|
|
662
|
+
label=pulumi.get(__response__, 'label'),
|
|
663
|
+
last_heartbeat=pulumi.get(__response__, 'last_heartbeat'),
|
|
664
|
+
last_workflow_timestamp=pulumi.get(__response__, 'last_workflow_timestamp'),
|
|
665
|
+
mtls=pulumi.get(__response__, 'mtls'),
|
|
666
|
+
name=pulumi.get(__response__, 'name'),
|
|
667
|
+
namespace=pulumi.get(__response__, 'namespace'),
|
|
668
|
+
no_of_schedules=pulumi.get(__response__, 'no_of_schedules'),
|
|
669
|
+
no_of_workflows=pulumi.get(__response__, 'no_of_workflows'),
|
|
670
|
+
node_selector=pulumi.get(__response__, 'node_selector'),
|
|
671
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
672
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
673
|
+
proxy=pulumi.get(__response__, 'proxy'),
|
|
674
|
+
run_as_group=pulumi.get(__response__, 'run_as_group'),
|
|
675
|
+
run_as_user=pulumi.get(__response__, 'run_as_user'),
|
|
676
|
+
service_account=pulumi.get(__response__, 'service_account'),
|
|
677
|
+
status=pulumi.get(__response__, 'status'),
|
|
678
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
679
|
+
tolerations=pulumi.get(__response__, 'tolerations'),
|
|
680
|
+
update_status=pulumi.get(__response__, 'update_status'),
|
|
681
|
+
updated_at=pulumi.get(__response__, 'updated_at'),
|
|
682
|
+
updated_by=pulumi.get(__response__, 'updated_by'),
|
|
683
|
+
volume_mounts=pulumi.get(__response__, 'volume_mounts'),
|
|
684
|
+
volumes=pulumi.get(__response__, 'volumes')))
|