pulumi-newrelic 5.26.0a1717726440__tar.gz → 5.26.0a1718085513__tar.gz
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.
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/PKG-INFO +1 -1
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_entity.py +24 -121
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/pulumi-plugin.json +1 -1
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic.egg-info/PKG-INFO +1 -1
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pyproject.toml +1 -1
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/README.md +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/__init__.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/_inputs.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/_utilities.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/account_management.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/alert_channel.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/alert_condition.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/alert_muting_rule.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/alert_policy.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/alert_policy_channel.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/api_access_key.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/browser_application.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/cloud/__init__.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/cloud/_inputs.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/cloud/aws_govcloud_integrations.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/cloud/aws_govcloud_link_account.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/cloud/aws_integrations.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/cloud/aws_link_account.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/cloud/azure_integrations.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/cloud/azure_link_account.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/cloud/gcp_integrations.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/cloud/gcp_link_account.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/cloud/outputs.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/config/__init__.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/config/__init__.pyi +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/config/vars.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/data_partition_rule.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/entity_tags.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/events_to_metrics_rule.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_account.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_alert_channel.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_alert_policy.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_application.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_authentication_domain.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_cloud_account.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_group.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_key_transaction.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_notification_destination.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_obfuscation_expression.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_service_level_alert_helper.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_test_grok_pattern.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_user.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/group.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/infra_alert_condition.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/insights/__init__.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/insights/_inputs.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/insights/event.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/insights/outputs.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/log_parsing_rule.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/monitor_downtime.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/notification_channel.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/notification_destination.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/nrql_alert_condition.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/nrql_drop_rule.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/obfuscation_expression.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/obfuscation_rule.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/one_dashboard.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/one_dashboard_json.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/one_dashboard_raw.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/outputs.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/plugins/__init__.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/plugins/_inputs.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/plugins/application_settings.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/plugins/outputs.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/plugins/workload.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/provider.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/py.typed +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/service_level.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/__init__.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/_inputs.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/alert_condition.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/broken_links_monitor.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/cert_check_monitor.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/get_private_location.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/get_secure_credential.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/monitor.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/multi_location_alert_condition.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/outputs.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/private_location.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/script_monitor.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/secure_credential.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/synthetics/step_monitor.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/user.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/workflow.py +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic.egg-info/SOURCES.txt +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic.egg-info/dependency_links.txt +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic.egg-info/requires.txt +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic.egg-info/top_level.txt +0 -0
- {pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/setup.cfg +0 -0
@@ -23,7 +23,7 @@ class GetEntityResult:
|
|
23
23
|
"""
|
24
24
|
A collection of values returned by getEntity.
|
25
25
|
"""
|
26
|
-
def __init__(__self__, account_id=None, application_id=None, domain=None, guid=None, id=None, ignore_case=None, ignore_not_found=None, name=None, serving_apm_application_id=None, tags=None, type=None):
|
26
|
+
def __init__(__self__, account_id=None, application_id=None, domain=None, entity_tags=None, guid=None, id=None, ignore_case=None, ignore_not_found=None, name=None, serving_apm_application_id=None, tags=None, type=None):
|
27
27
|
if account_id and not isinstance(account_id, str):
|
28
28
|
raise TypeError("Expected argument 'account_id' to be a str")
|
29
29
|
pulumi.set(__self__, "account_id", account_id)
|
@@ -33,6 +33,9 @@ class GetEntityResult:
|
|
33
33
|
if domain and not isinstance(domain, str):
|
34
34
|
raise TypeError("Expected argument 'domain' to be a str")
|
35
35
|
pulumi.set(__self__, "domain", domain)
|
36
|
+
if entity_tags and not isinstance(entity_tags, str):
|
37
|
+
raise TypeError("Expected argument 'entity_tags' to be a str")
|
38
|
+
pulumi.set(__self__, "entity_tags", entity_tags)
|
36
39
|
if guid and not isinstance(guid, str):
|
37
40
|
raise TypeError("Expected argument 'guid' to be a str")
|
38
41
|
pulumi.set(__self__, "guid", guid)
|
@@ -76,6 +79,15 @@ class GetEntityResult:
|
|
76
79
|
def domain(self) -> str:
|
77
80
|
return pulumi.get(self, "domain")
|
78
81
|
|
82
|
+
@property
|
83
|
+
@pulumi.getter(name="entityTags")
|
84
|
+
def entity_tags(self) -> str:
|
85
|
+
"""
|
86
|
+
A JSON-encoded string, comprising tags associated with the entity fetched.
|
87
|
+
* See the **Additional Examples** section below, for an illustration depicting the usage of `jsondecode` with the attribute `entity_tags`, to get the tags associated with the entity fetched.
|
88
|
+
"""
|
89
|
+
return pulumi.get(self, "entity_tags")
|
90
|
+
|
79
91
|
@property
|
80
92
|
@pulumi.getter
|
81
93
|
def guid(self) -> str:
|
@@ -135,6 +147,7 @@ class AwaitableGetEntityResult(GetEntityResult):
|
|
135
147
|
account_id=self.account_id,
|
136
148
|
application_id=self.application_id,
|
137
149
|
domain=self.domain,
|
150
|
+
entity_tags=self.entity_tags,
|
138
151
|
guid=self.guid,
|
139
152
|
id=self.id,
|
140
153
|
ignore_case=self.ignore_case,
|
@@ -147,6 +160,7 @@ class AwaitableGetEntityResult(GetEntityResult):
|
|
147
160
|
|
148
161
|
def get_entity(account_id: Optional[str] = None,
|
149
162
|
domain: Optional[str] = None,
|
163
|
+
entity_tags: Optional[str] = None,
|
150
164
|
ignore_case: Optional[bool] = None,
|
151
165
|
ignore_not_found: Optional[bool] = None,
|
152
166
|
name: Optional[str] = None,
|
@@ -154,69 +168,12 @@ def get_entity(account_id: Optional[str] = None,
|
|
154
168
|
type: Optional[str] = None,
|
155
169
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEntityResult:
|
156
170
|
"""
|
157
|
-
Use this data source to
|
158
|
-
|
159
|
-
### Example: Filter By Account ID
|
160
|
-
|
161
|
-
The default behaviour of this data source is to retrieve entities matching the specified parameters (such as `name`, `domain`, `type`) from NerdGraph with the credentials specified in the configuration of the provider (account ID and API Key), filter them by the account ID specified in the configuration of the provider, and return the first match.
|
162
|
-
|
163
|
-
This would mean, if no entity with the specified search parameters is found associated with the account ID in the configuration of the provider, i.e. `NEW_RELIC_ACCOUNT_ID`, an error is thrown, stating that no matching entity has been found.
|
164
|
-
|
165
|
-
```python
|
166
|
-
import pulumi
|
167
|
-
import pulumi_newrelic as newrelic
|
168
|
-
|
169
|
-
# The entity returned by this configuration would have to
|
170
|
-
# belong to the account_id specified in the provider
|
171
|
-
# configuration, i.e. NEW_RELIC_ACCOUNT_ID.
|
172
|
-
app = newrelic.get_entity(name="my-app",
|
173
|
-
domain="APM",
|
174
|
-
type="APPLICATION")
|
175
|
-
```
|
176
|
-
However, in order to cater to scenarios in which it could be necessary to retrieve an entity belonging to a subaccount using the account ID and API Key of the parent account (for instance, when entities with identical names are present in both the parent account and subaccounts, since matching entities from subaccounts too are returned by NerdGraph), the `account_id` attribute of this data source may be availed. This ensures that the account ID in the configuration of the provider, used to filter entities returned by the API is now overridden by the `account_id` specified in the configuration; i.e., in the below example, the data source would now return an entity matching the specified `name`, belonging to the account with the ID `account_id`.
|
177
|
-
```python
|
178
|
-
import pulumi
|
179
|
-
import pulumi_newrelic as newrelic
|
180
|
-
|
181
|
-
# The entity returned by this configuration, unlike in
|
182
|
-
# the above example, would have to belong to the account_id
|
183
|
-
# specified in the configuration below, i.e. 654321.
|
184
|
-
app = newrelic.get_entity(name="my-app",
|
185
|
-
account_id="654321",
|
186
|
-
domain="APM",
|
187
|
-
type="APPLICATION")
|
188
|
-
```
|
189
|
-
The following example explains a use case along the lines of the aforementioned; using the `account_id` argument in the data source to allow the filtering criteria to be the `account_id` specified (of the subaccount), and not the account ID in the provider configuration.
|
190
|
-
|
191
|
-
In simpler terms, when entities are queried from the parent account, entities with matching names are returned from subaccounts too, hence, specifying the `account_id` of the subaccount in the configuration allows the entity returned to belong to the subaccount with `account_id`.
|
192
|
-
### Query for an OTEL entity
|
193
|
-
|
194
|
-
```python
|
195
|
-
import pulumi
|
196
|
-
import pulumi_newrelic as newrelic
|
197
|
-
|
198
|
-
app = newrelic.get_entity(name="my-otel-app",
|
199
|
-
domain="EXT",
|
200
|
-
type="SERVICE",
|
201
|
-
tags=[newrelic.GetEntityTagArgs(
|
202
|
-
key="accountID",
|
203
|
-
value="12345",
|
204
|
-
)])
|
205
|
-
```
|
206
|
-
|
207
|
-
### Query for an entity by type (AWS Lambda entity in this example)
|
208
|
-
|
209
|
-
```python
|
210
|
-
import pulumi
|
211
|
-
import pulumi_newrelic as newrelic
|
212
|
-
|
213
|
-
app = newrelic.get_entity(name="my_lambda_trace",
|
214
|
-
type="AWSLAMBDAFUNCTION")
|
215
|
-
```
|
216
|
-
|
171
|
+
Use this data source to access information about an existing resource.
|
217
172
|
|
218
173
|
:param str account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
|
219
174
|
:param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
|
175
|
+
:param str entity_tags: A JSON-encoded string, comprising tags associated with the entity fetched.
|
176
|
+
* See the **Additional Examples** section below, for an illustration depicting the usage of `jsondecode` with the attribute `entity_tags`, to get the tags associated with the entity fetched.
|
220
177
|
:param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
|
221
178
|
:param bool ignore_not_found: A boolean argument that, when set to true, prevents an error from being thrown when the queried entity is not found. Instead, a warning is displayed. Defaults to `false`.
|
222
179
|
|
@@ -228,6 +185,7 @@ def get_entity(account_id: Optional[str] = None,
|
|
228
185
|
__args__ = dict()
|
229
186
|
__args__['accountId'] = account_id
|
230
187
|
__args__['domain'] = domain
|
188
|
+
__args__['entityTags'] = entity_tags
|
231
189
|
__args__['ignoreCase'] = ignore_case
|
232
190
|
__args__['ignoreNotFound'] = ignore_not_found
|
233
191
|
__args__['name'] = name
|
@@ -240,6 +198,7 @@ def get_entity(account_id: Optional[str] = None,
|
|
240
198
|
account_id=pulumi.get(__ret__, 'account_id'),
|
241
199
|
application_id=pulumi.get(__ret__, 'application_id'),
|
242
200
|
domain=pulumi.get(__ret__, 'domain'),
|
201
|
+
entity_tags=pulumi.get(__ret__, 'entity_tags'),
|
243
202
|
guid=pulumi.get(__ret__, 'guid'),
|
244
203
|
id=pulumi.get(__ret__, 'id'),
|
245
204
|
ignore_case=pulumi.get(__ret__, 'ignore_case'),
|
@@ -253,6 +212,7 @@ def get_entity(account_id: Optional[str] = None,
|
|
253
212
|
@_utilities.lift_output_func(get_entity)
|
254
213
|
def get_entity_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
255
214
|
domain: Optional[pulumi.Input[Optional[str]]] = None,
|
215
|
+
entity_tags: Optional[pulumi.Input[Optional[str]]] = None,
|
256
216
|
ignore_case: Optional[pulumi.Input[Optional[bool]]] = None,
|
257
217
|
ignore_not_found: Optional[pulumi.Input[Optional[bool]]] = None,
|
258
218
|
name: Optional[pulumi.Input[str]] = None,
|
@@ -260,69 +220,12 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
260
220
|
type: Optional[pulumi.Input[Optional[str]]] = None,
|
261
221
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetEntityResult]:
|
262
222
|
"""
|
263
|
-
Use this data source to
|
264
|
-
|
265
|
-
### Example: Filter By Account ID
|
266
|
-
|
267
|
-
The default behaviour of this data source is to retrieve entities matching the specified parameters (such as `name`, `domain`, `type`) from NerdGraph with the credentials specified in the configuration of the provider (account ID and API Key), filter them by the account ID specified in the configuration of the provider, and return the first match.
|
268
|
-
|
269
|
-
This would mean, if no entity with the specified search parameters is found associated with the account ID in the configuration of the provider, i.e. `NEW_RELIC_ACCOUNT_ID`, an error is thrown, stating that no matching entity has been found.
|
270
|
-
|
271
|
-
```python
|
272
|
-
import pulumi
|
273
|
-
import pulumi_newrelic as newrelic
|
274
|
-
|
275
|
-
# The entity returned by this configuration would have to
|
276
|
-
# belong to the account_id specified in the provider
|
277
|
-
# configuration, i.e. NEW_RELIC_ACCOUNT_ID.
|
278
|
-
app = newrelic.get_entity(name="my-app",
|
279
|
-
domain="APM",
|
280
|
-
type="APPLICATION")
|
281
|
-
```
|
282
|
-
However, in order to cater to scenarios in which it could be necessary to retrieve an entity belonging to a subaccount using the account ID and API Key of the parent account (for instance, when entities with identical names are present in both the parent account and subaccounts, since matching entities from subaccounts too are returned by NerdGraph), the `account_id` attribute of this data source may be availed. This ensures that the account ID in the configuration of the provider, used to filter entities returned by the API is now overridden by the `account_id` specified in the configuration; i.e., in the below example, the data source would now return an entity matching the specified `name`, belonging to the account with the ID `account_id`.
|
283
|
-
```python
|
284
|
-
import pulumi
|
285
|
-
import pulumi_newrelic as newrelic
|
286
|
-
|
287
|
-
# The entity returned by this configuration, unlike in
|
288
|
-
# the above example, would have to belong to the account_id
|
289
|
-
# specified in the configuration below, i.e. 654321.
|
290
|
-
app = newrelic.get_entity(name="my-app",
|
291
|
-
account_id="654321",
|
292
|
-
domain="APM",
|
293
|
-
type="APPLICATION")
|
294
|
-
```
|
295
|
-
The following example explains a use case along the lines of the aforementioned; using the `account_id` argument in the data source to allow the filtering criteria to be the `account_id` specified (of the subaccount), and not the account ID in the provider configuration.
|
296
|
-
|
297
|
-
In simpler terms, when entities are queried from the parent account, entities with matching names are returned from subaccounts too, hence, specifying the `account_id` of the subaccount in the configuration allows the entity returned to belong to the subaccount with `account_id`.
|
298
|
-
### Query for an OTEL entity
|
299
|
-
|
300
|
-
```python
|
301
|
-
import pulumi
|
302
|
-
import pulumi_newrelic as newrelic
|
303
|
-
|
304
|
-
app = newrelic.get_entity(name="my-otel-app",
|
305
|
-
domain="EXT",
|
306
|
-
type="SERVICE",
|
307
|
-
tags=[newrelic.GetEntityTagArgs(
|
308
|
-
key="accountID",
|
309
|
-
value="12345",
|
310
|
-
)])
|
311
|
-
```
|
312
|
-
|
313
|
-
### Query for an entity by type (AWS Lambda entity in this example)
|
314
|
-
|
315
|
-
```python
|
316
|
-
import pulumi
|
317
|
-
import pulumi_newrelic as newrelic
|
318
|
-
|
319
|
-
app = newrelic.get_entity(name="my_lambda_trace",
|
320
|
-
type="AWSLAMBDAFUNCTION")
|
321
|
-
```
|
322
|
-
|
223
|
+
Use this data source to access information about an existing resource.
|
323
224
|
|
324
225
|
:param str account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
|
325
226
|
:param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
|
227
|
+
:param str entity_tags: A JSON-encoded string, comprising tags associated with the entity fetched.
|
228
|
+
* See the **Additional Examples** section below, for an illustration depicting the usage of `jsondecode` with the attribute `entity_tags`, to get the tags associated with the entity fetched.
|
326
229
|
:param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
|
327
230
|
:param bool ignore_not_found: A boolean argument that, when set to true, prevents an error from being thrown when the queried entity is not found. Instead, a warning is displayed. Defaults to `false`.
|
328
231
|
|
File without changes
|
{pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/__init__.py
RENAMED
File without changes
|
{pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/_inputs.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_group.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/get_user.py
RENAMED
File without changes
|
{pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/group.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/outputs.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/provider.py
RENAMED
File without changes
|
{pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/py.typed
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/user.py
RENAMED
File without changes
|
{pulumi_newrelic-5.26.0a1717726440 → pulumi_newrelic-5.26.0a1718085513}/pulumi_newrelic/workflow.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|