Url Map
Provides a URL Map used by the HTTPS load balancer
Code
const bucketName = "mybucketname";
provider.storage.makeBucket({
name: bucketName,
});
provider.compute.makeBackendBucket({
name: "backend-bucket",
properties: () => ({
bucketName,
}),
});
const urlMap = provider.compute.makeUrlMap({
name: "url-map",
dependencies: { service: "backend-bucket" },
});
Examples
Properties
Dependencies
Used By
List
List all Url Maps with the UrlMap type
gc l -t UrlMap
Listing resources on 1 provider: google
✓ google
✓ Initialising
✓ Listing 2/2
┌────────────────────────────────────────────────────────────────────────────────┐
│ 1 UrlMap from google │
├──────────┬──────────────────────────────────────────────────────────────┬──────┤
│ Name │ Data │ Our │
├──────────┼──────────────────────────────────────────────────────────────┼──────┤
│ url-map │ id: 1187115894224057828 │ Yes │
│ │ creationTimestamp: 2021-06-30T03:44:27.793-07:00 │ │
│ │ name: url-map │ │
│ │ description: Managed By GruCloud │ │
│ │ selfLink: https://www.googleapis.com/compute/v1/projects/gr… │ │
│ │ defaultService: https://www.googleapis.com/compute/v1/proje… │ │
│ │ fingerprint: AFWyLkZ6QVA= │ │
│ │ kind: compute#urlMap │ │
│ │ │ │
└──────────┴──────────────────────────────────────────────────────────────┴──────┘
List Summary:
Provider: google
┌───────────────────────────────────────────────────────────────────────────────┐
│ google │
├────────────────────┬──────────────────────────────────────────────────────────┤
│ UrlMap │ url-map │
└────────────────────┴──────────────────────────────────────────────────────────┘
1 resource, 2 types, 1 provider
Command "gc l -t UrlMap" executed in 3s