Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage 2 - Feature batch 1 #39

Closed
wants to merge 53 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
5fac929
Merge pull request #63 from pontovinte/feature/azure_cloud_service
elXaptation Jul 13, 2022
64dcf1b
Changing datasource names.
pontovinte Jul 23, 2022
874a870
Merge pull request #67 from pontovinte/docs/stage2-prep
elXaptation Jul 20, 2022
b9d4266
Merge pull request #65 from pontovinte/feature/google_cloud
pontovinte Jul 23, 2022
9659ca0
Changing code source.
pontovinte Jul 23, 2022
9995443
Adding interfaces datasource.
pontovinte Jul 24, 2022
ed555e4
Fix interfaces datasource.
pontovinte Jul 25, 2022
4ea6664
Fix azure Request Express Connection resource.
pontovinte Jul 25, 2022
4dc0f58
Add Importer config to Interfaces resource.
pontovinte Jul 25, 2022
7a7a2e5
Add activity log datasource.
pontovinte Jul 25, 2022
d1087a6
Add Link Aggregation Groups client, resource and datasource.
pontovinte Jul 25, 2022
b6a70c8
Add Outbound Cross Connect client, resource and datasource.
pontovinte Jul 25, 2022
4d468f4
Building Provider function mappings: Azure, GCP, LAG and OCC.
elXaptation Jul 26, 2022
94fbd51
Adding Docs for FeatureBatch1 (GCP/AZR/LAG/OCC). Templates, Example P…
elXaptation Jul 26, 2022
6d3366d
Fix provider erros.
pontovinte Jul 29, 2022
7c62d10
Updating FB1 docs examples
elXaptation Aug 2, 2022
9cd7964
Adding activity log data-source function and documentation
elXaptation Aug 2, 2022
12be10f
Fix Google services, rename resources and datastore.
pontovinte Aug 18, 2022
0002828
Merge branch 'feature/google-service' of github.com:PacketFabric/terr…
pontovinte Aug 18, 2022
7ae5acf
Update AWS Cloud Router Example User with new 0.2.0 version (#46)
rjouhann Aug 19, 2022
f741358
Fix Issue #65: Error plugin did not respond.
pontovinte Aug 21, 2022
3647043
Merge branch 'feature/google-service' of github.com:PacketFabric/terr…
pontovinte Aug 21, 2022
ef00352
Fix Issue #62: Interface is nil, not int.
pontovinte Aug 21, 2022
ff6662e
Fix Issue #54: src-svlan should be optional.
pontovinte Aug 21, 2022
a57da0a
Fix Issue #54: src-svlan should be optional for Google and Azure reso…
pontovinte Aug 21, 2022
de7efde
Fix Issue #59: packetfabric_interface data source missing.
pontovinte Aug 21, 2022
58a142e
Fix Issue #52: longhaul_type must be specified for a longhaul virtual…
pontovinte Aug 21, 2022
96f0d7c
Fix Issue #30: Cloud router creation with 2 regions.
pontovinte Aug 22, 2022
f5b323b
Fix Cloud router CRUD with multiple regions.
pontovinte Aug 22, 2022
30febcb
Fix Issue #49: Provider produced inconsistent result after apply.
pontovinte Aug 22, 2022
e1b13ef
Fix Issue #55: packetfabric_cs_google_dedicated_connection resource m…
pontovinte Aug 22, 2022
9964797
Docs schema edits2 (#67)
Aug 22, 2022
283accc
Fix Issue #75: https://github.com/PacketFabric/terraform-provider-pa…
pontovinte Aug 23, 2022
c881410
Changing resources naming and removing duplicated ones.
pontovinte Aug 23, 2022
941aafc
Fix Issue: #66: OutboundCrossConnect not found.
pontovinte Aug 23, 2022
04c8b4d
Fix #71: Change delete URI.
pontovinte Aug 24, 2022
a3f3ad0
Fix Issue #69: Interface conversion issue.
pontovinte Aug 23, 2022
34b97ed
Fix #66: Remove warning after resource create.
pontovinte Aug 24, 2022
b78b533
Fix #64: Change AzureComponents from int to string.
pontovinte Aug 24, 2022
6ecc06c
Fix #54: src_svlan should be optional.
pontovinte Aug 24, 2022
1bd7068
Adding new use case examples for v0.2.0 (#73)
rjouhann Aug 24, 2022
d5b46eb
Use cases v0.2.0 updates (#85)
rjouhann Aug 24, 2022
dc73c98
Use cases v0.2.0 updates2 (#86)
rjouhann Aug 24, 2022
4324dd3
Docs Generation for v0.2.0 (second try)
elXaptation Aug 24, 2022
7082c3b
Fix issue #92: Add Azure vlans.
pontovinte Aug 25, 2022
29c9a28
Fix issue #83: Fix delete for Google/Aws/Azure services.
pontovinte Aug 25, 2022
1afaffb
Fix issue #90: Added missing field.
pontovinte Aug 25, 2022
966e6ac
Fix issue #98: Fix Aws/Azure/Google resources delete.
pontovinte Aug 25, 2022
91d831a
Fix #89: Delete hosted cloud services.
pontovinte Aug 26, 2022
dee6385
Fix parsing Azure components fields.
pontovinte Aug 26, 2022
68ca28c
Fix #58: Run make tests functional. (#82)
pontovinte Aug 26, 2022
dedc0fc
Fix issue-93 packetfabric_link_aggregation_group (#99)
elXaptation Aug 26, 2022
57bd847
Merge branch 'dev' into feature/google-service
pontovinte Aug 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ terraform.tfstate.backup
terraform.tfstate.d/

# Secret
secret*.tfvars
secret*.tfvars
secret.json
65 changes: 65 additions & 0 deletions docs/data-sources/packetfabric_activitylog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "packetfabric_activitylog Data Source - terraform-provider-packetfabric"
subcategory: ""
description: |-

---

# packetfabric_activitylog (Data Source)



## Example Usage

```terraform
terraform {
required_providers {
packetfabric = {
source = "packetfabric/packetfabric"
version = "~> 0.0.1"
}
}
}
provider "packetfabric" {
host = var.pf_api_server
token = var.pf_api_key
}


data "packetfabric_activitylog" "current" {
filter {
Copy link
Contributor

@rjouhann rjouhann Aug 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The filter doesn't work, we should remove it for now.

│ Error: Unsupported block type
│ 
│   on main.tf line 56, in data "packetfabric_activitylog" "current":
│   56:   filter {
│ 
│ Blocks of type "filter" are not expected here.
╵

user = "alice"
}
}

output "my-activity-logs" {
value = packetfabric_activitylog.current
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be value = data.packetfabric_activitylog.current

}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `activity_logs` (Block List) The active logs. (see [below for nested schema](#nestedblock--activity_logs))

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedblock--activity_logs"></a>
### Nested Schema for `activity_logs`

Optional:

- `category` (String) The log Category.
- `event` (String) The log Event.
- `level` (Number) The log level.
- `log_uuid` (String) The log UUID.
- `message` (String) The log Message.
- `time_created` (String) The log time created.
- `user` (String) The log User.


92 changes: 39 additions & 53 deletions docs/data-sources/packetfabric_aws_cloud_router_connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
page_title: "packetfabric_aws_cloud_router_connection Data Source - terraform-provider-packetfabric"
subcategory: ""
description: |-

---

# packetfabric_aws_cloud_router_connection (Data Source)



## Data Example
## Example Usage

```terraform
[
Expand Down Expand Up @@ -56,68 +56,52 @@ description: |-

### Read-Only

- `packetfabric_aws_cloud_connections` (List of Object) (see [below for nested schema](#nestedatt--packetfabric_aws_cloud_connections))
- `cloud_connections` (List of Object) (see [below for nested schema](#nestedatt--cloud_connections))
- `id` (String) The ID of this resource.

<a id="nestedatt--packetfabric_aws_cloud_connections"></a>
### Nested Schema for `packetfabric_aws_cloud_connections`
<a id="nestedatt--cloud_connections"></a>
### Nested Schema for `cloud_connections`

Read-Only:

- `account_uuid` (String) The UUID of the PacketFabric contact that will be billed.
Example: a2115890-ed02-4795-a6dd-c485bec12345
- `bgp_state` (String) The status of the BGP session
Enum: established, configuring, fetching, etc.
- `cloud_circuit_id` (String) The unique PF circuit ID for this connection.
Example: \"PF-AP-LAX1-1002\"
- `cloud_provider` (Set of Object) (see [below for nested schema](#nestedobjatt--packetfabric_aws_cloud_connections--cloud_provider))
- `cloud_provider_connection_id` (String) The cloud provider specific connection ID, eg. the Amazon connection ID of the cloud router connection.
Example: dxcon-fgadaaa1
- `cloud_router_circuit_id` (String) The circuit ID of the cloud router this connection is associated with.
Example: PF-L3-CUST-2001
- `cloud_settings` (Set of Object) (see [below for nested schema](#nestedobjatt--packetfabric_aws_cloud_connections--cloud_settings))
- `connection_type` (String) The type of the connection.
Enum: cloud_hosted, cloud_dedicated, ipsec, packetfabric
- `customer_uuid` (String) The UUID for the customer this connection belongs to
- `deleted` (Boolean) Whether or not the connection has been fully deleted.
- `description` (String) The description of this connection.
- `nat_capable` (Boolean) Indicates whether this connection supports NAT
- `pending_delete` (Boolean) Whether or not the connection is currently deleting.
- `pop` (String) Point of Presence for the cloud provider location
Example: LAX1
- `port_circuit_id` (String) The circuit ID of the port to connect to the cloud router.
Example "PF-AE-1234"
- `account_uuid` (String)
- `bgp_state` (String)
- `cloud_circuit_id` (String)
- `cloud_provider` (Set of Object) (see [below for nested schema](#nestedobjatt--cloud_connections--cloud_provider))
- `cloud_provider_connection_id` (String)
- `cloud_router_circuit_id` (String)
- `cloud_settings` (Set of Object) (see [below for nested schema](#nestedobjatt--cloud_connections--cloud_settings))
- `connection_type` (String)
- `customer_uuid` (String)
- `deleted` (Boolean)
- `description` (String)
- `nat_capable` (Boolean)
- `pending_delete` (Boolean)
- `pop` (String)
- `port_circuit_id` (String)
- `port_type` (String)
- `service_class` (String) The service class of the connection.
Enum: metro, longhaul
- `service_provider` (String) The service provider of the connection.
Enum: aws, azure, packet, google, ibm, salesforce, webex
- `service_type` (String) The type of connection, this will currently always be cr_connection.
Enum: cr_connection
- `site` (String) Region short name
Example: us-west-1
- `speed` (String) The speed of the connection.
Enum: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps
- `state` (String) The state of the connection
Enum: Requested, Active, Inactive, PendingDelete
- `time_created` (String) Date and time of connection creation
- `time_updated` (String) Date and time connection was last updated
- `user_uuid` (String) The UUID for the user this connection belongs to
- `uuid` (String) The UUID of the connection.

<a id="nestedobjatt--packetfabric_aws_cloud_connections--cloud_provider"></a>
### Nested Schema for `packetfabric_aws_cloud_connections.cloud_provider`
- `service_class` (String)
- `service_provider` (String)
- `service_type` (String)
- `site` (String)
- `speed` (String)
- `state` (String)
- `time_created` (String)
- `time_updated` (String)
- `user_uuid` (String)
- `uuid` (String)

<a id="nestedobjatt--cloud_connections--cloud_provider"></a>
### Nested Schema for `cloud_connections.cloud_provider`

Read-Only:

- `pop` (String) Point of Presence for the cloud provider location
Example: LAX1
- `site` (String) Region short name
Example: us-west-1
- `pop` (String)
- `site` (String)


<a id="nestedobjatt--packetfabric_aws_cloud_connections--cloud_settings"></a>
### Nested Schema for `packetfabric_aws_cloud_connections.cloud_settings`
<a id="nestedobjatt--cloud_connections--cloud_settings"></a>
### Nested Schema for `cloud_connections.cloud_settings`

Read-Only:

Expand All @@ -129,3 +113,5 @@ Read-Only:
- `public_ip` (String)
- `vlan_id_cust` (Number)
- `vlan_id_pf` (Number)


This file was deleted.