diff options
-rw-r--r-- | statuscake/resource_statuscaketest.go | 3 | ||||
-rw-r--r-- | website/docs/r/test.html.markdown | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/statuscake/resource_statuscaketest.go b/statuscake/resource_statuscaketest.go index b062456..d8604e6 100644 --- a/statuscake/resource_statuscaketest.go +++ b/statuscake/resource_statuscaketest.go | |||
@@ -34,6 +34,9 @@ func resourceStatusCakeTest() *schema.Resource { | |||
34 | Update: UpdateTest, | 34 | Update: UpdateTest, |
35 | Delete: DeleteTest, | 35 | Delete: DeleteTest, |
36 | Read: ReadTest, | 36 | Read: ReadTest, |
37 | Importer: &schema.ResourceImporter{ | ||
38 | State: schema.ImportStatePassthrough, | ||
39 | }, | ||
37 | 40 | ||
38 | Schema: map[string]*schema.Schema{ | 41 | Schema: map[string]*schema.Schema{ |
39 | "test_id": { | 42 | "test_id": { |
diff --git a/website/docs/r/test.html.markdown b/website/docs/r/test.html.markdown index 6c65f10..0f99fb4 100644 --- a/website/docs/r/test.html.markdown +++ b/website/docs/r/test.html.markdown | |||
@@ -63,3 +63,11 @@ The following arguments are supported: | |||
63 | The following attribute is exported: | 63 | The following attribute is exported: |
64 | 64 | ||
65 | * `test_id` - A unique identifier for the test. | 65 | * `test_id` - A unique identifier for the test. |
66 | |||
67 | ## Import | ||
68 | |||
69 | StatusCake test can be imported using the test id, e.g. | ||
70 | |||
71 | ``` | ||
72 | tf import statuscake_test.example 123 | ||
73 | ``` \ No newline at end of file | ||