pulumi-harness 0.8.0a1755712204__py3-none-any.whl → 0.9.0a1755842147__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 +67 -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/_inputs.py +537 -469
- 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 +51 -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/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 +12 -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_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 +96 -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 +481 -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.9.0a1755842147.dist-info}/METADATA +1 -1
- pulumi_harness-0.9.0a1755842147.dist-info/RECORD +355 -0
- pulumi_harness-0.8.0a1755712204.dist-info/RECORD +0 -337
- {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.9.0a1755842147.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.9.0a1755842147.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,443 @@
|
|
|
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
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetDiscoveryAgentResult',
|
|
20
|
+
'AwaitableGetDiscoveryAgentResult',
|
|
21
|
+
'get_discovery_agent',
|
|
22
|
+
'get_discovery_agent_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetDiscoveryAgentResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getDiscoveryAgent.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, configs=None, correlation_id=None, created_at=None, created_by=None, description=None, environment_identifier=None, id=None, identity=None, installation_details=None, installation_type=None, name=None, network_map_count=None, org_identifier=None, permanent_installation=None, project_identifier=None, removed=None, removed_at=None, service_count=None, tags=None, updated_at=None, updated_by=None, webhook_url=None):
|
|
31
|
+
if configs and not isinstance(configs, list):
|
|
32
|
+
raise TypeError("Expected argument 'configs' to be a list")
|
|
33
|
+
pulumi.set(__self__, "configs", configs)
|
|
34
|
+
if correlation_id and not isinstance(correlation_id, str):
|
|
35
|
+
raise TypeError("Expected argument 'correlation_id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "correlation_id", correlation_id)
|
|
37
|
+
if created_at and not isinstance(created_at, str):
|
|
38
|
+
raise TypeError("Expected argument 'created_at' to be a str")
|
|
39
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
40
|
+
if created_by and not isinstance(created_by, str):
|
|
41
|
+
raise TypeError("Expected argument 'created_by' to be a str")
|
|
42
|
+
pulumi.set(__self__, "created_by", created_by)
|
|
43
|
+
if description and not isinstance(description, str):
|
|
44
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
45
|
+
pulumi.set(__self__, "description", description)
|
|
46
|
+
if environment_identifier and not isinstance(environment_identifier, str):
|
|
47
|
+
raise TypeError("Expected argument 'environment_identifier' to be a str")
|
|
48
|
+
pulumi.set(__self__, "environment_identifier", environment_identifier)
|
|
49
|
+
if id and not isinstance(id, str):
|
|
50
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
51
|
+
pulumi.set(__self__, "id", id)
|
|
52
|
+
if identity and not isinstance(identity, str):
|
|
53
|
+
raise TypeError("Expected argument 'identity' to be a str")
|
|
54
|
+
pulumi.set(__self__, "identity", identity)
|
|
55
|
+
if installation_details and not isinstance(installation_details, list):
|
|
56
|
+
raise TypeError("Expected argument 'installation_details' to be a list")
|
|
57
|
+
pulumi.set(__self__, "installation_details", installation_details)
|
|
58
|
+
if installation_type and not isinstance(installation_type, str):
|
|
59
|
+
raise TypeError("Expected argument 'installation_type' to be a str")
|
|
60
|
+
pulumi.set(__self__, "installation_type", installation_type)
|
|
61
|
+
if name and not isinstance(name, str):
|
|
62
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
63
|
+
pulumi.set(__self__, "name", name)
|
|
64
|
+
if network_map_count and not isinstance(network_map_count, int):
|
|
65
|
+
raise TypeError("Expected argument 'network_map_count' to be a int")
|
|
66
|
+
pulumi.set(__self__, "network_map_count", network_map_count)
|
|
67
|
+
if org_identifier and not isinstance(org_identifier, str):
|
|
68
|
+
raise TypeError("Expected argument 'org_identifier' to be a str")
|
|
69
|
+
pulumi.set(__self__, "org_identifier", org_identifier)
|
|
70
|
+
if permanent_installation and not isinstance(permanent_installation, bool):
|
|
71
|
+
raise TypeError("Expected argument 'permanent_installation' to be a bool")
|
|
72
|
+
pulumi.set(__self__, "permanent_installation", permanent_installation)
|
|
73
|
+
if project_identifier and not isinstance(project_identifier, str):
|
|
74
|
+
raise TypeError("Expected argument 'project_identifier' to be a str")
|
|
75
|
+
pulumi.set(__self__, "project_identifier", project_identifier)
|
|
76
|
+
if removed and not isinstance(removed, bool):
|
|
77
|
+
raise TypeError("Expected argument 'removed' to be a bool")
|
|
78
|
+
pulumi.set(__self__, "removed", removed)
|
|
79
|
+
if removed_at and not isinstance(removed_at, str):
|
|
80
|
+
raise TypeError("Expected argument 'removed_at' to be a str")
|
|
81
|
+
pulumi.set(__self__, "removed_at", removed_at)
|
|
82
|
+
if service_count and not isinstance(service_count, int):
|
|
83
|
+
raise TypeError("Expected argument 'service_count' to be a int")
|
|
84
|
+
pulumi.set(__self__, "service_count", service_count)
|
|
85
|
+
if tags and not isinstance(tags, list):
|
|
86
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
87
|
+
pulumi.set(__self__, "tags", tags)
|
|
88
|
+
if updated_at and not isinstance(updated_at, str):
|
|
89
|
+
raise TypeError("Expected argument 'updated_at' to be a str")
|
|
90
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
91
|
+
if updated_by and not isinstance(updated_by, str):
|
|
92
|
+
raise TypeError("Expected argument 'updated_by' to be a str")
|
|
93
|
+
pulumi.set(__self__, "updated_by", updated_by)
|
|
94
|
+
if webhook_url and not isinstance(webhook_url, str):
|
|
95
|
+
raise TypeError("Expected argument 'webhook_url' to be a str")
|
|
96
|
+
pulumi.set(__self__, "webhook_url", webhook_url)
|
|
97
|
+
|
|
98
|
+
@_builtins.property
|
|
99
|
+
@pulumi.getter
|
|
100
|
+
def configs(self) -> Sequence['outputs.GetDiscoveryAgentConfigResult']:
|
|
101
|
+
"""
|
|
102
|
+
Configuration for the agent.
|
|
103
|
+
"""
|
|
104
|
+
return pulumi.get(self, "configs")
|
|
105
|
+
|
|
106
|
+
@_builtins.property
|
|
107
|
+
@pulumi.getter(name="correlationId")
|
|
108
|
+
def correlation_id(self) -> _builtins.str:
|
|
109
|
+
"""
|
|
110
|
+
Correlation ID for the agent.
|
|
111
|
+
"""
|
|
112
|
+
return pulumi.get(self, "correlation_id")
|
|
113
|
+
|
|
114
|
+
@_builtins.property
|
|
115
|
+
@pulumi.getter(name="createdAt")
|
|
116
|
+
def created_at(self) -> _builtins.str:
|
|
117
|
+
"""
|
|
118
|
+
Timestamp when the agent was created.
|
|
119
|
+
"""
|
|
120
|
+
return pulumi.get(self, "created_at")
|
|
121
|
+
|
|
122
|
+
@_builtins.property
|
|
123
|
+
@pulumi.getter(name="createdBy")
|
|
124
|
+
def created_by(self) -> _builtins.str:
|
|
125
|
+
"""
|
|
126
|
+
User who created the agent.
|
|
127
|
+
"""
|
|
128
|
+
return pulumi.get(self, "created_by")
|
|
129
|
+
|
|
130
|
+
@_builtins.property
|
|
131
|
+
@pulumi.getter
|
|
132
|
+
def description(self) -> _builtins.str:
|
|
133
|
+
"""
|
|
134
|
+
Description of the agent.
|
|
135
|
+
"""
|
|
136
|
+
return pulumi.get(self, "description")
|
|
137
|
+
|
|
138
|
+
@_builtins.property
|
|
139
|
+
@pulumi.getter(name="environmentIdentifier")
|
|
140
|
+
def environment_identifier(self) -> _builtins.str:
|
|
141
|
+
"""
|
|
142
|
+
The environment identifier of the agent. This is a required field.
|
|
143
|
+
"""
|
|
144
|
+
return pulumi.get(self, "environment_identifier")
|
|
145
|
+
|
|
146
|
+
@_builtins.property
|
|
147
|
+
@pulumi.getter
|
|
148
|
+
def id(self) -> _builtins.str:
|
|
149
|
+
"""
|
|
150
|
+
The unique identifier of the agent.
|
|
151
|
+
"""
|
|
152
|
+
return pulumi.get(self, "id")
|
|
153
|
+
|
|
154
|
+
@_builtins.property
|
|
155
|
+
@pulumi.getter
|
|
156
|
+
def identity(self) -> Optional[_builtins.str]:
|
|
157
|
+
"""
|
|
158
|
+
The unique identity of the agent. Either this or 'name' must be provided.
|
|
159
|
+
"""
|
|
160
|
+
return pulumi.get(self, "identity")
|
|
161
|
+
|
|
162
|
+
@_builtins.property
|
|
163
|
+
@pulumi.getter(name="installationDetails")
|
|
164
|
+
def installation_details(self) -> Sequence['outputs.GetDiscoveryAgentInstallationDetailResult']:
|
|
165
|
+
"""
|
|
166
|
+
Installation details of the agent.
|
|
167
|
+
"""
|
|
168
|
+
return pulumi.get(self, "installation_details")
|
|
169
|
+
|
|
170
|
+
@_builtins.property
|
|
171
|
+
@pulumi.getter(name="installationType")
|
|
172
|
+
def installation_type(self) -> _builtins.str:
|
|
173
|
+
"""
|
|
174
|
+
Type of installation for the agent.
|
|
175
|
+
"""
|
|
176
|
+
return pulumi.get(self, "installation_type")
|
|
177
|
+
|
|
178
|
+
@_builtins.property
|
|
179
|
+
@pulumi.getter
|
|
180
|
+
def name(self) -> Optional[_builtins.str]:
|
|
181
|
+
"""
|
|
182
|
+
The name of the agent. Either this or 'identity' must be provided.
|
|
183
|
+
"""
|
|
184
|
+
return pulumi.get(self, "name")
|
|
185
|
+
|
|
186
|
+
@_builtins.property
|
|
187
|
+
@pulumi.getter(name="networkMapCount")
|
|
188
|
+
def network_map_count(self) -> _builtins.int:
|
|
189
|
+
"""
|
|
190
|
+
Number of network maps associated with this agent.
|
|
191
|
+
"""
|
|
192
|
+
return pulumi.get(self, "network_map_count")
|
|
193
|
+
|
|
194
|
+
@_builtins.property
|
|
195
|
+
@pulumi.getter(name="orgIdentifier")
|
|
196
|
+
def org_identifier(self) -> Optional[_builtins.str]:
|
|
197
|
+
"""
|
|
198
|
+
The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
|
|
199
|
+
"""
|
|
200
|
+
return pulumi.get(self, "org_identifier")
|
|
201
|
+
|
|
202
|
+
@_builtins.property
|
|
203
|
+
@pulumi.getter(name="permanentInstallation")
|
|
204
|
+
def permanent_installation(self) -> _builtins.bool:
|
|
205
|
+
"""
|
|
206
|
+
Whether this is a permanent installation.
|
|
207
|
+
"""
|
|
208
|
+
return pulumi.get(self, "permanent_installation")
|
|
209
|
+
|
|
210
|
+
@_builtins.property
|
|
211
|
+
@pulumi.getter(name="projectIdentifier")
|
|
212
|
+
def project_identifier(self) -> Optional[_builtins.str]:
|
|
213
|
+
"""
|
|
214
|
+
The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
|
|
215
|
+
"""
|
|
216
|
+
return pulumi.get(self, "project_identifier")
|
|
217
|
+
|
|
218
|
+
@_builtins.property
|
|
219
|
+
@pulumi.getter
|
|
220
|
+
def removed(self) -> _builtins.bool:
|
|
221
|
+
"""
|
|
222
|
+
Whether the agent has been removed.
|
|
223
|
+
"""
|
|
224
|
+
return pulumi.get(self, "removed")
|
|
225
|
+
|
|
226
|
+
@_builtins.property
|
|
227
|
+
@pulumi.getter(name="removedAt")
|
|
228
|
+
def removed_at(self) -> _builtins.str:
|
|
229
|
+
"""
|
|
230
|
+
Timestamp when the agent was removed.
|
|
231
|
+
"""
|
|
232
|
+
return pulumi.get(self, "removed_at")
|
|
233
|
+
|
|
234
|
+
@_builtins.property
|
|
235
|
+
@pulumi.getter(name="serviceCount")
|
|
236
|
+
def service_count(self) -> _builtins.int:
|
|
237
|
+
"""
|
|
238
|
+
Number of services managed by this agent.
|
|
239
|
+
"""
|
|
240
|
+
return pulumi.get(self, "service_count")
|
|
241
|
+
|
|
242
|
+
@_builtins.property
|
|
243
|
+
@pulumi.getter
|
|
244
|
+
def tags(self) -> Sequence[_builtins.str]:
|
|
245
|
+
"""
|
|
246
|
+
Key-value list of resource tags for the agent.
|
|
247
|
+
"""
|
|
248
|
+
return pulumi.get(self, "tags")
|
|
249
|
+
|
|
250
|
+
@_builtins.property
|
|
251
|
+
@pulumi.getter(name="updatedAt")
|
|
252
|
+
def updated_at(self) -> _builtins.str:
|
|
253
|
+
"""
|
|
254
|
+
Timestamp when the agent was last updated.
|
|
255
|
+
"""
|
|
256
|
+
return pulumi.get(self, "updated_at")
|
|
257
|
+
|
|
258
|
+
@_builtins.property
|
|
259
|
+
@pulumi.getter(name="updatedBy")
|
|
260
|
+
def updated_by(self) -> _builtins.str:
|
|
261
|
+
"""
|
|
262
|
+
User who last updated the agent.
|
|
263
|
+
"""
|
|
264
|
+
return pulumi.get(self, "updated_by")
|
|
265
|
+
|
|
266
|
+
@_builtins.property
|
|
267
|
+
@pulumi.getter(name="webhookUrl")
|
|
268
|
+
def webhook_url(self) -> _builtins.str:
|
|
269
|
+
"""
|
|
270
|
+
Webhook URL for the agent.
|
|
271
|
+
"""
|
|
272
|
+
return pulumi.get(self, "webhook_url")
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
class AwaitableGetDiscoveryAgentResult(GetDiscoveryAgentResult):
|
|
276
|
+
# pylint: disable=using-constant-test
|
|
277
|
+
def __await__(self):
|
|
278
|
+
if False:
|
|
279
|
+
yield self
|
|
280
|
+
return GetDiscoveryAgentResult(
|
|
281
|
+
configs=self.configs,
|
|
282
|
+
correlation_id=self.correlation_id,
|
|
283
|
+
created_at=self.created_at,
|
|
284
|
+
created_by=self.created_by,
|
|
285
|
+
description=self.description,
|
|
286
|
+
environment_identifier=self.environment_identifier,
|
|
287
|
+
id=self.id,
|
|
288
|
+
identity=self.identity,
|
|
289
|
+
installation_details=self.installation_details,
|
|
290
|
+
installation_type=self.installation_type,
|
|
291
|
+
name=self.name,
|
|
292
|
+
network_map_count=self.network_map_count,
|
|
293
|
+
org_identifier=self.org_identifier,
|
|
294
|
+
permanent_installation=self.permanent_installation,
|
|
295
|
+
project_identifier=self.project_identifier,
|
|
296
|
+
removed=self.removed,
|
|
297
|
+
removed_at=self.removed_at,
|
|
298
|
+
service_count=self.service_count,
|
|
299
|
+
tags=self.tags,
|
|
300
|
+
updated_at=self.updated_at,
|
|
301
|
+
updated_by=self.updated_by,
|
|
302
|
+
webhook_url=self.webhook_url)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def get_discovery_agent(environment_identifier: Optional[_builtins.str] = None,
|
|
306
|
+
identity: Optional[_builtins.str] = None,
|
|
307
|
+
name: Optional[_builtins.str] = None,
|
|
308
|
+
org_identifier: Optional[_builtins.str] = None,
|
|
309
|
+
project_identifier: Optional[_builtins.str] = None,
|
|
310
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDiscoveryAgentResult:
|
|
311
|
+
"""
|
|
312
|
+
Data source for retrieving a Harness Service Discovery Agent.
|
|
313
|
+
|
|
314
|
+
This data source allows you to fetch details of a Service Discovery Agent using either its unique identifier or name.
|
|
315
|
+
|
|
316
|
+
## Example Usage
|
|
317
|
+
|
|
318
|
+
```python
|
|
319
|
+
import pulumi
|
|
320
|
+
import pulumi_harness as harness
|
|
321
|
+
|
|
322
|
+
# Data source to fetch a specific agent by name
|
|
323
|
+
by_name = harness.service.get_discovery_agent(name="example-agent",
|
|
324
|
+
org_identifier=org_identifier,
|
|
325
|
+
project_identifier=project_identifier,
|
|
326
|
+
environment_identifier=environment_identifier)
|
|
327
|
+
pulumi.export("agentDetailsByName", by_name)
|
|
328
|
+
# Data source to fetch a specific agent by identity
|
|
329
|
+
by_identity = harness.service.get_discovery_agent(identity="example-infra",
|
|
330
|
+
org_identifier=org_identifier,
|
|
331
|
+
project_identifier=project_identifier,
|
|
332
|
+
environment_identifier=environment_identifier)
|
|
333
|
+
pulumi.export("agentDetailsByIdentity", by_identity)
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
:param _builtins.str environment_identifier: The environment identifier of the agent. This is a required field.
|
|
338
|
+
:param _builtins.str identity: The unique identity of the agent. Either this or 'name' must be provided.
|
|
339
|
+
:param _builtins.str name: The name of the agent. Either this or 'identity' must be provided.
|
|
340
|
+
:param _builtins.str org_identifier: The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
|
|
341
|
+
:param _builtins.str project_identifier: The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
|
|
342
|
+
"""
|
|
343
|
+
__args__ = dict()
|
|
344
|
+
__args__['environmentIdentifier'] = environment_identifier
|
|
345
|
+
__args__['identity'] = identity
|
|
346
|
+
__args__['name'] = name
|
|
347
|
+
__args__['orgIdentifier'] = org_identifier
|
|
348
|
+
__args__['projectIdentifier'] = project_identifier
|
|
349
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
350
|
+
__ret__ = pulumi.runtime.invoke('harness:service/getDiscoveryAgent:getDiscoveryAgent', __args__, opts=opts, typ=GetDiscoveryAgentResult).value
|
|
351
|
+
|
|
352
|
+
return AwaitableGetDiscoveryAgentResult(
|
|
353
|
+
configs=pulumi.get(__ret__, 'configs'),
|
|
354
|
+
correlation_id=pulumi.get(__ret__, 'correlation_id'),
|
|
355
|
+
created_at=pulumi.get(__ret__, 'created_at'),
|
|
356
|
+
created_by=pulumi.get(__ret__, 'created_by'),
|
|
357
|
+
description=pulumi.get(__ret__, 'description'),
|
|
358
|
+
environment_identifier=pulumi.get(__ret__, 'environment_identifier'),
|
|
359
|
+
id=pulumi.get(__ret__, 'id'),
|
|
360
|
+
identity=pulumi.get(__ret__, 'identity'),
|
|
361
|
+
installation_details=pulumi.get(__ret__, 'installation_details'),
|
|
362
|
+
installation_type=pulumi.get(__ret__, 'installation_type'),
|
|
363
|
+
name=pulumi.get(__ret__, 'name'),
|
|
364
|
+
network_map_count=pulumi.get(__ret__, 'network_map_count'),
|
|
365
|
+
org_identifier=pulumi.get(__ret__, 'org_identifier'),
|
|
366
|
+
permanent_installation=pulumi.get(__ret__, 'permanent_installation'),
|
|
367
|
+
project_identifier=pulumi.get(__ret__, 'project_identifier'),
|
|
368
|
+
removed=pulumi.get(__ret__, 'removed'),
|
|
369
|
+
removed_at=pulumi.get(__ret__, 'removed_at'),
|
|
370
|
+
service_count=pulumi.get(__ret__, 'service_count'),
|
|
371
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
372
|
+
updated_at=pulumi.get(__ret__, 'updated_at'),
|
|
373
|
+
updated_by=pulumi.get(__ret__, 'updated_by'),
|
|
374
|
+
webhook_url=pulumi.get(__ret__, 'webhook_url'))
|
|
375
|
+
def get_discovery_agent_output(environment_identifier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
376
|
+
identity: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
377
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
378
|
+
org_identifier: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
379
|
+
project_identifier: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
380
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDiscoveryAgentResult]:
|
|
381
|
+
"""
|
|
382
|
+
Data source for retrieving a Harness Service Discovery Agent.
|
|
383
|
+
|
|
384
|
+
This data source allows you to fetch details of a Service Discovery Agent using either its unique identifier or name.
|
|
385
|
+
|
|
386
|
+
## Example Usage
|
|
387
|
+
|
|
388
|
+
```python
|
|
389
|
+
import pulumi
|
|
390
|
+
import pulumi_harness as harness
|
|
391
|
+
|
|
392
|
+
# Data source to fetch a specific agent by name
|
|
393
|
+
by_name = harness.service.get_discovery_agent(name="example-agent",
|
|
394
|
+
org_identifier=org_identifier,
|
|
395
|
+
project_identifier=project_identifier,
|
|
396
|
+
environment_identifier=environment_identifier)
|
|
397
|
+
pulumi.export("agentDetailsByName", by_name)
|
|
398
|
+
# Data source to fetch a specific agent by identity
|
|
399
|
+
by_identity = harness.service.get_discovery_agent(identity="example-infra",
|
|
400
|
+
org_identifier=org_identifier,
|
|
401
|
+
project_identifier=project_identifier,
|
|
402
|
+
environment_identifier=environment_identifier)
|
|
403
|
+
pulumi.export("agentDetailsByIdentity", by_identity)
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
:param _builtins.str environment_identifier: The environment identifier of the agent. This is a required field.
|
|
408
|
+
:param _builtins.str identity: The unique identity of the agent. Either this or 'name' must be provided.
|
|
409
|
+
:param _builtins.str name: The name of the agent. Either this or 'identity' must be provided.
|
|
410
|
+
:param _builtins.str org_identifier: The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
|
|
411
|
+
:param _builtins.str project_identifier: The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
|
|
412
|
+
"""
|
|
413
|
+
__args__ = dict()
|
|
414
|
+
__args__['environmentIdentifier'] = environment_identifier
|
|
415
|
+
__args__['identity'] = identity
|
|
416
|
+
__args__['name'] = name
|
|
417
|
+
__args__['orgIdentifier'] = org_identifier
|
|
418
|
+
__args__['projectIdentifier'] = project_identifier
|
|
419
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
420
|
+
__ret__ = pulumi.runtime.invoke_output('harness:service/getDiscoveryAgent:getDiscoveryAgent', __args__, opts=opts, typ=GetDiscoveryAgentResult)
|
|
421
|
+
return __ret__.apply(lambda __response__: GetDiscoveryAgentResult(
|
|
422
|
+
configs=pulumi.get(__response__, 'configs'),
|
|
423
|
+
correlation_id=pulumi.get(__response__, 'correlation_id'),
|
|
424
|
+
created_at=pulumi.get(__response__, 'created_at'),
|
|
425
|
+
created_by=pulumi.get(__response__, 'created_by'),
|
|
426
|
+
description=pulumi.get(__response__, 'description'),
|
|
427
|
+
environment_identifier=pulumi.get(__response__, 'environment_identifier'),
|
|
428
|
+
id=pulumi.get(__response__, 'id'),
|
|
429
|
+
identity=pulumi.get(__response__, 'identity'),
|
|
430
|
+
installation_details=pulumi.get(__response__, 'installation_details'),
|
|
431
|
+
installation_type=pulumi.get(__response__, 'installation_type'),
|
|
432
|
+
name=pulumi.get(__response__, 'name'),
|
|
433
|
+
network_map_count=pulumi.get(__response__, 'network_map_count'),
|
|
434
|
+
org_identifier=pulumi.get(__response__, 'org_identifier'),
|
|
435
|
+
permanent_installation=pulumi.get(__response__, 'permanent_installation'),
|
|
436
|
+
project_identifier=pulumi.get(__response__, 'project_identifier'),
|
|
437
|
+
removed=pulumi.get(__response__, 'removed'),
|
|
438
|
+
removed_at=pulumi.get(__response__, 'removed_at'),
|
|
439
|
+
service_count=pulumi.get(__response__, 'service_count'),
|
|
440
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
441
|
+
updated_at=pulumi.get(__response__, 'updated_at'),
|
|
442
|
+
updated_by=pulumi.get(__response__, 'updated_by'),
|
|
443
|
+
webhook_url=pulumi.get(__response__, 'webhook_url')))
|
|
@@ -0,0 +1,199 @@
|
|
|
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
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetDiscoverySettingResult',
|
|
20
|
+
'AwaitableGetDiscoverySettingResult',
|
|
21
|
+
'get_discovery_setting',
|
|
22
|
+
'get_discovery_setting_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetDiscoverySettingResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getDiscoverySetting.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, correlation_id=None, created_at=None, id=None, image_registries=None, org_identifier=None, project_identifier=None, updated_at=None):
|
|
31
|
+
if correlation_id and not isinstance(correlation_id, str):
|
|
32
|
+
raise TypeError("Expected argument 'correlation_id' to be a str")
|
|
33
|
+
pulumi.set(__self__, "correlation_id", correlation_id)
|
|
34
|
+
if created_at and not isinstance(created_at, str):
|
|
35
|
+
raise TypeError("Expected argument 'created_at' to be a str")
|
|
36
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
37
|
+
if id and not isinstance(id, str):
|
|
38
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
39
|
+
pulumi.set(__self__, "id", id)
|
|
40
|
+
if image_registries and not isinstance(image_registries, list):
|
|
41
|
+
raise TypeError("Expected argument 'image_registries' to be a list")
|
|
42
|
+
pulumi.set(__self__, "image_registries", image_registries)
|
|
43
|
+
if org_identifier and not isinstance(org_identifier, str):
|
|
44
|
+
raise TypeError("Expected argument 'org_identifier' to be a str")
|
|
45
|
+
pulumi.set(__self__, "org_identifier", org_identifier)
|
|
46
|
+
if project_identifier and not isinstance(project_identifier, str):
|
|
47
|
+
raise TypeError("Expected argument 'project_identifier' to be a str")
|
|
48
|
+
pulumi.set(__self__, "project_identifier", project_identifier)
|
|
49
|
+
if updated_at and not isinstance(updated_at, str):
|
|
50
|
+
raise TypeError("Expected argument 'updated_at' to be a str")
|
|
51
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
52
|
+
|
|
53
|
+
@_builtins.property
|
|
54
|
+
@pulumi.getter(name="correlationId")
|
|
55
|
+
def correlation_id(self) -> Optional[_builtins.str]:
|
|
56
|
+
"""
|
|
57
|
+
Correlation ID for the request.
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "correlation_id")
|
|
60
|
+
|
|
61
|
+
@_builtins.property
|
|
62
|
+
@pulumi.getter(name="createdAt")
|
|
63
|
+
def created_at(self) -> _builtins.str:
|
|
64
|
+
"""
|
|
65
|
+
Timestamp when the setting was created.
|
|
66
|
+
"""
|
|
67
|
+
return pulumi.get(self, "created_at")
|
|
68
|
+
|
|
69
|
+
@_builtins.property
|
|
70
|
+
@pulumi.getter
|
|
71
|
+
def id(self) -> _builtins.str:
|
|
72
|
+
"""
|
|
73
|
+
The provider-assigned unique ID for this managed resource.
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "id")
|
|
76
|
+
|
|
77
|
+
@_builtins.property
|
|
78
|
+
@pulumi.getter(name="imageRegistries")
|
|
79
|
+
def image_registries(self) -> Sequence['outputs.GetDiscoverySettingImageRegistryResult']:
|
|
80
|
+
"""
|
|
81
|
+
Image registry configuration.
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "image_registries")
|
|
84
|
+
|
|
85
|
+
@_builtins.property
|
|
86
|
+
@pulumi.getter(name="orgIdentifier")
|
|
87
|
+
def org_identifier(self) -> Optional[_builtins.str]:
|
|
88
|
+
"""
|
|
89
|
+
The organization identifier.
|
|
90
|
+
"""
|
|
91
|
+
return pulumi.get(self, "org_identifier")
|
|
92
|
+
|
|
93
|
+
@_builtins.property
|
|
94
|
+
@pulumi.getter(name="projectIdentifier")
|
|
95
|
+
def project_identifier(self) -> Optional[_builtins.str]:
|
|
96
|
+
"""
|
|
97
|
+
The project identifier.
|
|
98
|
+
"""
|
|
99
|
+
return pulumi.get(self, "project_identifier")
|
|
100
|
+
|
|
101
|
+
@_builtins.property
|
|
102
|
+
@pulumi.getter(name="updatedAt")
|
|
103
|
+
def updated_at(self) -> _builtins.str:
|
|
104
|
+
"""
|
|
105
|
+
Timestamp when the setting was last updated.
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "updated_at")
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class AwaitableGetDiscoverySettingResult(GetDiscoverySettingResult):
|
|
111
|
+
# pylint: disable=using-constant-test
|
|
112
|
+
def __await__(self):
|
|
113
|
+
if False:
|
|
114
|
+
yield self
|
|
115
|
+
return GetDiscoverySettingResult(
|
|
116
|
+
correlation_id=self.correlation_id,
|
|
117
|
+
created_at=self.created_at,
|
|
118
|
+
id=self.id,
|
|
119
|
+
image_registries=self.image_registries,
|
|
120
|
+
org_identifier=self.org_identifier,
|
|
121
|
+
project_identifier=self.project_identifier,
|
|
122
|
+
updated_at=self.updated_at)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def get_discovery_setting(correlation_id: Optional[_builtins.str] = None,
|
|
126
|
+
org_identifier: Optional[_builtins.str] = None,
|
|
127
|
+
project_identifier: Optional[_builtins.str] = None,
|
|
128
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDiscoverySettingResult:
|
|
129
|
+
"""
|
|
130
|
+
Data source for retrieving service discovery settings.
|
|
131
|
+
|
|
132
|
+
## Example Usage
|
|
133
|
+
|
|
134
|
+
```python
|
|
135
|
+
import pulumi
|
|
136
|
+
import pulumi_harness as harness
|
|
137
|
+
|
|
138
|
+
# Data source to fetch service discovery setting by name
|
|
139
|
+
example = harness.service.get_discovery_setting(org_identifier="<org_identifier>",
|
|
140
|
+
project_identifier="<project_identifier>")
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:param _builtins.str correlation_id: Correlation ID for the request.
|
|
145
|
+
:param _builtins.str org_identifier: The organization identifier.
|
|
146
|
+
:param _builtins.str project_identifier: The project identifier.
|
|
147
|
+
"""
|
|
148
|
+
__args__ = dict()
|
|
149
|
+
__args__['correlationId'] = correlation_id
|
|
150
|
+
__args__['orgIdentifier'] = org_identifier
|
|
151
|
+
__args__['projectIdentifier'] = project_identifier
|
|
152
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
153
|
+
__ret__ = pulumi.runtime.invoke('harness:service/getDiscoverySetting:getDiscoverySetting', __args__, opts=opts, typ=GetDiscoverySettingResult).value
|
|
154
|
+
|
|
155
|
+
return AwaitableGetDiscoverySettingResult(
|
|
156
|
+
correlation_id=pulumi.get(__ret__, 'correlation_id'),
|
|
157
|
+
created_at=pulumi.get(__ret__, 'created_at'),
|
|
158
|
+
id=pulumi.get(__ret__, 'id'),
|
|
159
|
+
image_registries=pulumi.get(__ret__, 'image_registries'),
|
|
160
|
+
org_identifier=pulumi.get(__ret__, 'org_identifier'),
|
|
161
|
+
project_identifier=pulumi.get(__ret__, 'project_identifier'),
|
|
162
|
+
updated_at=pulumi.get(__ret__, 'updated_at'))
|
|
163
|
+
def get_discovery_setting_output(correlation_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
164
|
+
org_identifier: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
165
|
+
project_identifier: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
166
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDiscoverySettingResult]:
|
|
167
|
+
"""
|
|
168
|
+
Data source for retrieving service discovery settings.
|
|
169
|
+
|
|
170
|
+
## Example Usage
|
|
171
|
+
|
|
172
|
+
```python
|
|
173
|
+
import pulumi
|
|
174
|
+
import pulumi_harness as harness
|
|
175
|
+
|
|
176
|
+
# Data source to fetch service discovery setting by name
|
|
177
|
+
example = harness.service.get_discovery_setting(org_identifier="<org_identifier>",
|
|
178
|
+
project_identifier="<project_identifier>")
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param _builtins.str correlation_id: Correlation ID for the request.
|
|
183
|
+
:param _builtins.str org_identifier: The organization identifier.
|
|
184
|
+
:param _builtins.str project_identifier: The project identifier.
|
|
185
|
+
"""
|
|
186
|
+
__args__ = dict()
|
|
187
|
+
__args__['correlationId'] = correlation_id
|
|
188
|
+
__args__['orgIdentifier'] = org_identifier
|
|
189
|
+
__args__['projectIdentifier'] = project_identifier
|
|
190
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
191
|
+
__ret__ = pulumi.runtime.invoke_output('harness:service/getDiscoverySetting:getDiscoverySetting', __args__, opts=opts, typ=GetDiscoverySettingResult)
|
|
192
|
+
return __ret__.apply(lambda __response__: GetDiscoverySettingResult(
|
|
193
|
+
correlation_id=pulumi.get(__response__, 'correlation_id'),
|
|
194
|
+
created_at=pulumi.get(__response__, 'created_at'),
|
|
195
|
+
id=pulumi.get(__response__, 'id'),
|
|
196
|
+
image_registries=pulumi.get(__response__, 'image_registries'),
|
|
197
|
+
org_identifier=pulumi.get(__response__, 'org_identifier'),
|
|
198
|
+
project_identifier=pulumi.get(__response__, 'project_identifier'),
|
|
199
|
+
updated_at=pulumi.get(__response__, 'updated_at')))
|
pulumi_harness/service/helm.py
CHANGED
|
@@ -190,6 +190,8 @@ class Helm(pulumi.CustomResource):
|
|
|
190
190
|
|
|
191
191
|
## Import
|
|
192
192
|
|
|
193
|
+
The `pulumi import` command can be used, for example:
|
|
194
|
+
|
|
193
195
|
Import using the Harness application id and service id
|
|
194
196
|
|
|
195
197
|
```sh
|
|
@@ -227,6 +229,8 @@ class Helm(pulumi.CustomResource):
|
|
|
227
229
|
|
|
228
230
|
## Import
|
|
229
231
|
|
|
232
|
+
The `pulumi import` command can be used, for example:
|
|
233
|
+
|
|
230
234
|
Import using the Harness application id and service id
|
|
231
235
|
|
|
232
236
|
```sh
|
|
@@ -236,6 +236,8 @@ class Kubernetes(pulumi.CustomResource):
|
|
|
236
236
|
|
|
237
237
|
## Import
|
|
238
238
|
|
|
239
|
+
The `pulumi import` command can be used, for example:
|
|
240
|
+
|
|
239
241
|
Import using the Harness application id and service id
|
|
240
242
|
|
|
241
243
|
```sh
|
|
@@ -287,6 +289,8 @@ class Kubernetes(pulumi.CustomResource):
|
|
|
287
289
|
|
|
288
290
|
## Import
|
|
289
291
|
|
|
292
|
+
The `pulumi import` command can be used, for example:
|
|
293
|
+
|
|
290
294
|
Import using the Harness application id and service id
|
|
291
295
|
|
|
292
296
|
```sh
|